Re: [Hampshire] how do I delete a file named -n

Etusivu
Lähettäjä: Hugo Mills
Päiväys:  
Vastaanottaja: Hampshire LUG Discussion List
Aihe: Re: [Hampshire] how do I delete a file named -n

Vastaa
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x56b6b100.hantslug.org.uk.30397': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Wed Jan 31 15:04:12 2007 GMT
gpg: using DSA key B2C27BC21C335860
gpg: Can't check signature: No public key
On Wed, Jan 31, 2007 at 02:43:59PM +0000, Will Davies wrote:
> I have managed to create a file named "-n" without the quotes. Any clues
> on how to delete it from the command line?
> I've tried
> rm -n
> rm "-n"
> rm '-n'
> rm `-n`


A third option is probably:

rm -- -n

(where the -- indicates "end of options")

Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 1C335860 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
         --- If you're not part of the solution, you're part ---         
                           of the precipiate.