Does anyone know how to remove a file with the name of "-a"? I try the
following but none works.
> rm -a
> rm \-a
> rm '-a'
> rm "-a"
Thanks a lot.
s*****d 发帖数: 258
2
rm -- -a
【在 z*y 的大作中提到】 : Does anyone know how to remove a file with the name of "-a"? I try the : following but none works. : > rm -a : > rm \-a : > rm '-a' : > rm "-a" : Thanks a lot.
T********r 发帖数: 6210
3
a universal solution: rm ./-a
【在 z*y 的大作中提到】 : Does anyone know how to remove a file with the name of "-a"? I try the : following but none works. : > rm -a : > rm \-a : > rm '-a' : > rm "-a" : Thanks a lot.