標記一下
[root@lvsmaster ~]# ll
總用量 44
drwxr-xr-x. 3 root root 4096 5月 29 07:26 」
-rw-------. 1 root root 1372 5月 28 07:37 anaconda-ks.cfg
-rw-r--r--. 1 root root 18796 5月 28 07:37 install.log
-rw-r--r--. 1 root root 4877 5月 28 07:35 install.log.syslog
-rw-r--r--. 1 root root 795 10月 25 15:02 sys.sh
莫名其妙出現這樣的目錄
drwxr-xr-x. 3 root root 4096 5月 29 07:26 」
怎樣刪除呢?只能通過節點去刪除特殊字元或者亂碼檔案
[root@lvsmaster ~]# ll -i
總用量 44
5636107 drwxr-xr-x. 3 root root 4096 5月 29 07:26 」
5636105 -rw-------. 1 root root 1372 5月 28 07:37 anaconda-ks.cfg
5636098 -rw-r--r--. 1 root root 18796 5月 28 07:37 install.log
5636099 -rw-r--r--. 1 root root 4877 5月 28 07:35 install.log.syslog
5636138 -rw-r--r--. 1 root root 795 10月 25 15:02 sys.sh
[root@lvsmaster ~]# find ./ -inum 5636107 |xargs rm -rf
或者使用
[root@lvsmaster ~]# find ./ -inum 5636107 -print -exec rm {} -rf ;
[root@lvsmaster ~]# ll
總用量 40
-rw-------. 1 root root 1372 5月 28 07:37 anaconda-ks.cfg
-rw-r--r--. 1 root root 18796 5月 28 07:37 install.log
-rw-r--r--. 1 root root 4877 5月 28 07:35 install.log.syslog
-rw-r--r--. 1 root root 795 10月 25 15:02 sys.sh
對於一些比較簡單的字元或者亂碼字元可以用rm *的方式刪除需要刪除的檔案
如果帶有-a符號的目錄或者檔案,可以 rm -- -a或者rm ./-a
Linux下刪除亂碼或特殊字元檔案
今天遇到乙個問題,乙個檔名是 mxv9.log 直接用rm刪除的時候就報錯,如下 localhost rm mxv9.log rm illegal option m rm illegal option x rm illegal option v rm illegal option 9 rm ille...
Linux下Shell傳送附件郵件 中文亂碼
shell傳送郵件最普通的是mail。但是mail好像沒有附件的功能 因此使用了mutt。直接上demo echo 正文 mutt s 標題 a 附件路徑 adress1 adress2 多個接收人用空格隔開。很簡單 不再解釋。但是這時出現了乙個問題 中文亂碼。我的解決方案是 修改mutt的配置檔案...
Linux下TOMCAT中日誌出現中文亂碼
紅帽子as4,其中tomcat為6.0。結果tomcat中日誌出現中文亂碼 解決方法修改i18n 最後的配置為 root linux etc more etc sysconfig i18n lang zh cn.utf 8 supported zh cn.utf 8 zh cn zh sysfont...