我试图使用Unix命令rmdir
删除一个目录,但我一直收到一条消息:
pwd
/Users/jona/Documents/Unix-Practice
$ rmdir Unix-Practice
rmdir: Unix-Practice: No such file or directory
我这样做也是为了看看我是否需要在要删除的目录之上:
$ cd ..
$ pwd
/Users/jona/Documents
$ rmdir Unix-Practice
rmdir: Unix-Practice: Directory not empty
我是不是不恰当地使用了命令?
我正在学习这个指南http://cli.learncodethehardway.org/book/ex7.html,它告诉我如何使用rmdir
发布于 2014-01-29 05:20:46
您的目录似乎包含一些文件,当目录为空时,请使用rmdir
。
来自rmdir的手册页。
使用:rm -r Unix-Practice
删除带有文件的目录
https://stackoverflow.com/questions/21422717
复制相似问题