LinuxQuestions.org
Review your favorite Linux distribution.
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 03-14-2003, 01:10 AM   #1
eastj1974
Member
 
Registered: Feb 2003
Location: Los Angeles
Distribution: Red Hat 8.0
Posts: 68

Rep: Reputation: 15
Question The Directory That Won't GO AWAY


I'm using grip to rip and encode some cds. I created a default path with a wrong directory name. Grip created a directory under that name. I removed the directory using the rm -fr command. However, when i use ls the command, it still displays that directory. When I try to navigate into the directory, i get the following error: "No Such File Or Directory". Does anybody know how I can wipe this off my hard drive so the ls command doesn't display this directory? Any help would be greatly appreciated.
 
Old 03-14-2003, 01:49 AM   #2
Freestone
Member
 
Registered: Jan 2003
Location: Brighton, Michigan
Distribution: FC5
Posts: 114

Rep: Reputation: 15
I have found that sometimes the rm -fr doesn't do the trick.

A simple solution I found may work for you.

Lets say the directory is /music---

At a command line type: rm -r /temp

For some reason that 'f' in rm -fr /directory screws things up.

I hope that helps!!


Freestone
 
Old 03-14-2003, 01:52 AM   #3
Freestone
Member
 
Registered: Jan 2003
Location: Brighton, Michigan
Distribution: FC5
Posts: 114

Rep: Reputation: 15
I totatlly screwed that up!

I was thinking about two different directories and typed one of them!


" Lets say the directory is /music---

At a command line type: rm -r /temp"

is what I typed. I meant to type the following:

Lets say the directory is /music---

At a command line type: rm -r /music


Sorry about that!!!!


Freestone
 
Old 03-14-2003, 02:01 AM   #4
eastj1974
Member
 
Registered: Feb 2003
Location: Los Angeles
Distribution: Red Hat 8.0
Posts: 68

Original Poster
Rep: Reputation: 15
I tried, but it didn't work

i tried to rm -r the directory as it errored 'No such file or directory'. I even tried find / -name 'music' but it couldn't find the file. I don't think the directory exists. However, when i use the ls command, it pops up. I did a restart thinking it was just caught in memory, but it still shows up. Any other suggestions. Greatly appreciated.
 
Old 03-14-2003, 04:01 AM   #5
Freestone
Member
 
Registered: Jan 2003
Location: Brighton, Michigan
Distribution: FC5
Posts: 114

Rep: Reputation: 15
Open up a file manager, either Nautilus or Konqueror, and browse to the directory. Select 'View' in your toolbar in Konqueror and check Show Hidden
Files or in Nautilus click 'Edit'>Preferences>Icon & List---Show Options...check the box to show hidden files. Check to see if it is visible
in the browser. If it is, right click and select 'Move to Trash' or 'Delete'.

Is the directory empty? If so you can use this command:

rmdir /name/of/directory

You can also check the man page:

man rm
or
man rmdir

Let us know what happens.

Freestone
 
Old 03-14-2003, 05:27 AM   #6
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
What is the name of this directory you created?
 
Old 03-14-2003, 04:12 PM   #7
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
At command line, type as root:

rmdir <directory name>

man rmdir for options to pass to the command (I can't remember them all). However, if the directory is not empty, it will bitch at you so you'll have to pass a command like

--ignore-on-non-empty

or something like that. I just did this last night and had to read the man page for it, but I can't remember the exact wording of the "--ignore..." option. Hope this helps.
 
Old 03-15-2003, 01:41 PM   #8
eastj1974
Member
 
Registered: Feb 2003
Location: Los Angeles
Distribution: Red Hat 8.0
Posts: 68

Original Poster
Rep: Reputation: 15
Talking IT Worked

Thanks for the help. I so used to using the konsole to type in commands. I forgot I could use konquer. I saw it there and moved it to the trash. That worked! Thanks.
 
  


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
Fedora Directory Server sync Active Directory paul_mat Linux - Networking 8 03-08-2007 10:51 AM
shell script: delete all directories named directory.# except directory.N brian0918 Programming 3 07-13-2005 06:54 PM
Automatically Copying files from the ftp directory into the html directory swatward Linux - General 3 04-17-2005 10:55 PM
How to rsynce the actual directory path instead of just the directory at the end of Niceman2005 Linux - General 5 04-08-2005 07:58 PM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 03:04 AM

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

All times are GMT -5. The time now is 04:47 AM.

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