1、目錄權(quán)限修改 [root@localhost ~]# chmod 777 /home/user 注:僅把/home/user目錄的權(quán)限設(shè)置為rwxrwxrwx [root@localhost ~]# chmod -R 777 /home/user 注:表示將整個(gè)/home/user目錄與其中的文件和子目錄的權(quán)限都設(shè)置為rwxrwxrwx2、文件刪除 刪除文件夾實(shí)例: rm -rf /var/log/httpd/access 將會(huì)刪除/var/log/httpd/access目錄以及其下所有文件、文件夾 刪除文件使用實(shí)例: rm -f /var/log/httpd/access.log 將會(huì)強(qiáng)制刪除/var/log/httpd/access.log這個(gè)文件
亂碼文件刪除:
[root@vhost plugins]# ls -li
1829688 drwxr-xr-x 2 root root 4096 2月 1 12:20 -?+????? v1.17.02
[root@vhost plugins]# find ./ -inum 1829688 -PRint -exec rm {} -rf /; 3、文件打包命令 zip -r myfile.zip ./* 打包當(dāng)前目錄下的所有文件包括子目錄,文件名為myfile.zip 4、重啟Nginx /etc/init.d/nginx restart
新聞熱點(diǎn)
疑難解答
圖片精選