Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
rm 也可以用于目录吗?我知道 -r 意味着递归,但就功能而言,这两个命令有何不同?
没有-r,rm只会删除命名文件(而不是目录)。正如你所说,它是递归的,将-r删除命名目录中和下的文件和目录。
-r
rm