1. 程式人生 > >linux 命令---持續更新

linux 命令---持續更新

linux下刪除資料夾的命令

使用rm -rf 目錄名字 命令即可

-r 就是向下遞迴,不管有多少級目錄,一併刪除
-f 就是直接強行刪除,不作任何提示的意思

eg

刪除資料夾例項:rm -rf /var/log/httpd/access
將會刪除/var/log/httpd/access目錄以及其下所有檔案、資料夾

刪除檔案使用例項:rm -f /var/log/httpd/access.log
將會強制刪除/var/log/httpd/access.log這個檔案