[Linux]目录相关命令

cd: 切换目录

cd ~: 切换到主目录(~代表主目录)

pwd: 显示当前目录

mkdir: 生成新目录

rmdir: 删除空目录

rm -r: 删除目录,即使目录非空

mv: 目录移动(如果源和目标在同一个父目录下,可以理解为改名)

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.