LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-16-2005, 08:56 AM   #1
linuxmandrake
Member
 
Registered: Sep 2004
Distribution: debian sarge 64bit (AMD)
Posts: 709

Rep: Reputation: 30
cant delete directory


[root@localhost ~]# rm -d /root/.transgaming/
rm: cannot remove directory `/root/.transgaming/': Is a directory
There are no files inside the folder
why?
 
Old 08-16-2005, 09:05 AM   #2
abattoir
Member
 
Registered: Feb 2005
Distribution: Kubuntu 6.10
Posts: 313

Rep: Reputation: 30
pls. try
Code:
rm -r -f /root/.transgaming

Last edited by abattoir; 08-16-2005 at 09:07 AM.
 
Old 08-16-2005, 09:09 AM   #3
sarajevo
Member
 
Registered: Apr 2005
Distribution: Debian, OpenBSD,Fedora,RedHat
Posts: 228
Blog Entries: 1

Rep: Reputation: 31
hi,
try rm -rf foldername or directoryname
it will works.

but be very carefully with command rm
for example rm -rf * will remove all files and directories on your computer(of course if you run it as root)

I hope this help

PS: be very carefully when you use rm command because if you use it on wrong way you will
 
Old 08-16-2005, 11:10 AM   #4
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
The command to remove empty directories is "rmdir"
 
Old 08-16-2005, 12:14 PM   #5
Vgui
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496

Rep: Reputation: 31
The folder may "appear" empty, but really there are probably hidden dot files. Go into the .transgaming folder and do a
Code:
ls .*
And I imagine a few .directories will popup.
As everyone said, rm -rf will do the recursive force remove trick.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
shell script: delete all directories named directory.# except directory.N brian0918 Programming 3 07-13-2005 07:54 PM
how can i delete an directory?? vito_huang Linux - Newbie 4 12-16-2004 03:15 AM
Delete directory mfo6463 Linux - Newbie 8 04-20-2004 06:04 PM
how to delete a directory master Linux - Newbie 2 03-27-2004 07:47 PM
How do you delete a directory? R4z0r Linux - Newbie 1 12-25-2002 12:16 PM


All times are GMT -5. The time now is 05:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration