LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-31-2005, 06:28 PM   #1
stefaandk
Member
 
Registered: Jun 2005
Distribution: Centos
Posts: 215

Rep: Reputation: 30
deleting a file called --nostop


I've accidently put some paramaters in the reverse order and ended up with a file that's called '--nostop'

Now due to the hyphens I can't remove the file as the hyphens are always considered an option in things like rm.

I suppose an rm -rf * on this dir might do the trick but then I'll have to copy all other files out of here first.

Even when putting this name between quotes I can't get rid of it, so any tips?

Thx
 
Old 07-31-2005, 06:32 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Try
Code:
 rm ./--nostop
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the Linux file system called? gooshto Linux - Newbie 7 11-23-2005 07:14 PM
Which config file is called for wireless pcmcia Wolfgang67 Slackware 1 07-04-2004 04:21 AM
php only runs when file is called directly pnh73 Linux - Networking 2 02-20-2004 11:54 AM
delete a file called -n chris2000g Linux - Newbie 5 12-06-2003 08:18 AM
In which file the syslogd is called? zhu_liheng Linux - Newbie 2 10-01-2003 09:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration