网站策划包括哪些内容,山东淄博网站建设的公司,成都高端网站建设公司哪家好,网络公司网站建设规划在linux下删除文件#xff0c;遇到特殊字符是一件非常头疼的事情。1. 如果文件名带 ‘-’ 或者‘--’这样的字符删除办法为#xff1a;rm -- 文件名如文件名为#xff1a;-pythontab.tgz如果用普通方法去删除#xff1a;1rm -pythontab.tgz结果错误#xff1a;rm: invalid…在linux下删除文件遇到特殊字符是一件非常头疼的事情。1. 如果文件名带 ‘-’ 或者‘--’这样的字符删除办法为rm -- 文件名如文件名为-pythontab.tgz如果用普通方法去删除1rm -pythontab.tgz结果错误rm: invalid option -- pythontabTry rm --help for more information.可以用1rm -- -pythontab.tgz则能成功删除。2. 删除包含其它特殊字符的文件对于含有其它特殊字符的文件名如!*等可用“”转义符或“”双引号引起控制如名为“”或“*”12[roottest]# rm [roottest]# rm “*”3. 删除系统打不出的乱码文件名(终极解决办法)系统中有一个文件名全是乱码的文件根本无从下手进行删除(系统打不出乱码符号)这时候我们可以使用inode号来删除之。1234[roottest]# ll -itotal 1469445217956913 -rw-r--r-- 1test test 4096 Nov 24 16:24 1?.txt[roottest]# find . -inum 17956913 -exec rm {} \;经过测试以上方法绝对可用http://www.qytang.comhttp://www.qytang.com/cn/list/28/610.htmhttp://www.qytang.com/cn/list/28/595.htmhttp://www.qytang.com/cn/list/28/583.htmhttp://www.qytang.com/cn/list/28/582.htmhttp://www.qytang.com/cn/list/28/576.htmhttp://www.qytang.com/cn/list/28/523.htmhttp://www.qytang.com/cn/list/28/499.htmhttp://www.qytang.com/cn/list/28/488.htmhttp://www.qytang.com/cn/list/28/466.htmhttp://www.qytang.com/cn/list/28/463.htmhttp://www.qytang.com/cn/list/28/458.htmhttp://www.qytang.com/cn/list/28/455.htmhttp://www.qytang.com/cn/list/28/447.htm