Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
How to delete a file named -x
Name: pkm_icf Date: June 18, 2002 at 03:20:20 Pacific
Name: frank Date: June 18, 2002 at 03:53:13 Pacific
Reply:
hi,
a lot of possibility depending on which os. you can do rm - -x rm -i * {and confirm only the -x file }
No RISK no fun
Regards Frank
0
Response Number 2
Name: frank Date: June 18, 2002 at 03:54:36 Pacific
Reply:
Hi again,
only to make sure that you see the amount of spaces.
rm SPACE - SPACE -x
Regrads Frank
0
Response Number 3
Name: LANkrypt0 Date: June 18, 2002 at 06:37:43 Pacific
Reply:
Taken directly from the man pages of rm > man rm
Users often wonder how to deal with filenames that begin with ``-'', since arguments that begin with ``-'' are usually treated as flags. The special argument ``--'' tells programs not to interpret following arguments as flags. (This is also the case for most system utilities.) Thus, to delete a file named ``-foo'', type: rm -- -foo
Summary: While playing around with other commands, I managed to create a file named -l. when I do rm -l, of course it thinks that -l is an argument. I can't figure out how to remove it? I'm using /bin/sh. Her...
Summary: How to obtain a process name (note: name, not id) from the current processes are running on the sys ? say, if we use ps -ef then the last argument is always the process name rite ? if so, then how to ...