How to remove this file?
There's a file named "-X", I can not remove it, please help!
I already tried these: rm -rf -X rm -rf "-X" rm -rf \-X rm -rf "-"X rm -rf /-\X rm -rf /-/X |
Oh, I get it,
rm -- -X |
'rm *X' maybe?
regards, ...drkstr |
yeah, rm -- -X
is the way soule |
The other classic is the files that Emacs creates when you exit in a hurry:
#myfile# Those are fun to try to delete :p |
Quote:
rm # (tab) immediately gave this rm \# Dennisk |
Yeah, ain't Bash completion grand? :p
|
You can usually -- usually! -- remove files like that with
rm ./-X Now, that's sh and ksh but it ought to work in any sh-like shell... |
Quote:
$ rm "#myfile#". |
Quote:
|
really?
the man page says it quite plainly |
All times are GMT -5. The time now is 10:06 PM. |