linux环境下删除包含特殊字符的文件或目录 ls -liUse find command as follows to delete the file if the file has inode number 4063242: $ find . -inum 4063242 -deleteOR$ find . -inum 4063242 -exec rm -i {} \;…
解决这个问题的一个方法就是在要删除的文件的前边加上"./" # rm ./-slow_query_130103.txt.gz To remove a file whose name starts with a `-', for example `-foo', use one of these commands: rm -- -foo rm ./-foo dd…