blog » linux常用技巧 » rm删除带特殊字符文件名

rm删除带特殊字符文件名

 

群中的朋友有个--开始的文件名的文件.查了一下chinaunix.net有如下的记录.现记下来.呵呵

对于含有“-”的文件名,
可用rm加“--”参数方法,如“---”:
rm -- ---

对于含有其它特殊字符的文件名,如<>!*等,可用
“\”转义符或“”双引号引起控制
如名为“>”或“*”
rm \>
rm “*”

RSS 2.0 | leave a response | trackback

17fav 收藏本文

Sorry, the comment form is closed at this time

Sorry, the comment form is closed at this time

收藏 & 分享

Powered by 17fav.com