How to delete the following file
Cameron Simpson
cs at zip.com.au
Tue Sep 12 01:20:07 UTC 2006
On 11Sep2006 10:47, Calvin Webster <cwebster at ec.rr.com> wrote:
| I was able to recreate your file name and remove it as follows:
| (one single line each)
|
| Create:
| touch '\-l `cap_to_path 0x34c23d0b 0x00008e9f 0x30298894 0xd1e6f358
| 0x030d8181 0x700400f9 0x0d818119 0x0006ff03`'
I think you have confused yourself. You have created a file whose name
commences with a backslash, not a dash.
The issue is that the file name commences with a dash, and thus
resembles an option.
The suggestions involving "--" (the "no more options" option) solve the
problem. The other workaround is to use a name not commencing with a
dash, such as the full pathname or "./the-filename-here".
For example, one easy way is:
- check that there's just the one filename:
ls -ld ./-*
- if that listed only one file, then:
rm ./-*
Very easy, and applicable for commands that don't support the "--"
option (and in contexts where the "--" option is not easy to use - rare
but occasionally encountered).
Cheers,
--
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/
An unbreakable toy is useful for breaking other toys. - Van Roy
More information about the redhat-list
mailing list