1、刪除文件夾實例:
rm -rf /var/log/httpd/access
將會刪除/var/log/httpd/access目錄以及其下所有文件、文件夾
2、刪除文件使用實例:
rm -f /var/log/httpd/access.log
將會強制刪除/var/log/httpd/access.log這個文件
注意事項:使用這個rm -rf的時候一定要格外小心,linux沒有回收站的
1、刪除文件夾實例:
rm -rf /var/log/httpd/access
將會刪除/var/log/httpd/access目錄以及其下所有文件、文件夾
2、刪除文件使用實例:
rm -f /var/log/httpd/access.log
將會強制刪除/var/log/httpd/access.log這個文件
注意事項:使用這個rm -rf的時候一定要格外小心,linux沒有回收站的