Re: How to delete the following file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11Sep2006 10:47, Calvin Webster <cwebster@xxxxxxxxx> 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@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

An unbreakable toy is useful for breaking other toys.   - Van Roy

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux