Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-16-2005, 07:56 AM   #1
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
Old 08-16-2005, 08:05 AM   #2
Registered: Feb 2005
Distribution: Kubuntu 6.10
Posts: 313

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

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

Rep: Reputation: 31
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, 10:10 AM   #4
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, 11:14 AM   #5
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
ls .*
And I imagine a few .directories will popup.
As everyone said, rm -rf will do the recursive force remove trick.


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 06:54 PM
how can i delete an directory?? vito_huang Linux - Newbie 4 12-16-2004 02:15 AM
Delete directory mfo6463 Linux - Newbie 8 04-20-2004 05:04 PM
how to delete a directory master Linux - Newbie 2 03-27-2004 06:47 PM
How do you delete a directory? R4z0r Linux - Newbie 1 12-25-2002 11:16 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:40 AM.

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