Help - Search - Members - Calendar
Full Version: How Do I Delete A File That Begins With A '-' Char
Linuxhelp > Support > Technical Support
siliconeyes
Hi all,

I am facing a problem and would consider it a big favor if someone could help me with it. Recently I tried installing ksh, and so downloaded the sources from a site. I untarred the whole package, and it created a file named "------------ NOTICE -- LICENSED SOFTWARE -- SEE README FOR DETAILS --------".

My problem simply is, how do I delete this file?? Running a normal command like " rm ------------ NOTICE -- LICENSED SOFTWARE -- SEE README FOR DETAILS ------------"gives me the following error:

rm: unrecognized option `------------ NOTICE -- LICENSED SOFTWARE -- SEE README FOR DETAILS ------------'

I've tried putting it in double quotes, single quotes and everything else I can think of. Tried the -f switch but no luck.

Can someone please help?? This file is a real eyesore, especially so because I accidentally uncompressed the archive in my home directory.
Tikitorchbob
Try rm ./------------ NOTICE -- LICENSED SOFTWARE -- SEE README FOR DETAILS ------------
or rm -- ------------ NOTICE -- LICENSED SOFTWARE -- SEE README FOR DETAILS ------------
digitalturbulence
rm -- ./NOTICE\ --\ LICENSED\ SOFTWARE\ --\ SEE\ README\ FOR\ DETAILS\ --------

or

rm -- "------------ NOTICE -- LICENSED SOFTWARE -- SEE README FOR DETAILS --------"

or use midnight commander for this: mc
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.