linux中一些特殊的中文文件不能删除问题

例:

[root@iZ2zecl4i8oy1rvs00dqzeZ tmp]# ls |tail -1
,'双..','xx..以上xxx','出xx0元.#r用',1000.00,0),(1509011,241,'
[root@iZ2zecl4i8oy1rvs00dqzeZ tmp]# echo "rm -rf `ls |tail -1 ` " rm -rf ,'双..','xx..以上xxx','出xx0元.#r用',1000.00,0),(1509011,241,'
[root@iZ2zecl4i8oy1rvs00dqzeZ tmp]# echo "rm -rf `ls |tail -1 ` " |bash bash: line 1: syntax error near unexpected token `)' bash: line 1: `rm -rf ,','双..','xx..以上xxx','出xx0元.#r用',1000.00,0),(1509011,241,','

[root@iZ2zecl4i8oy1rvs00dqzeZ tmp]# ls -i |tail -1 537083 ,'双..','xx..以上xxx','出xx0元.#r用',1000.00,0),(1509011,241,'
[root@iZ2zecl4i8oy1rvs00dqzeZ tmp]# find ./ -inum 537083 -exec rm {} \;

 

如上,可通过ls -i 找到其inode节点,间接删除文件

posted @ 2018-10-19 14:33  叮伱格斐呃  阅读(965)  评论(0编辑  收藏  举报
Live2D