LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cant delete directory (https://www.linuxquestions.org/questions/linux-newbie-8/cant-delete-directory-353785/)

linuxmandrake 08-16-2005 07:56 AM

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?

abattoir 08-16-2005 08:05 AM

pls. try
Code:

rm -r -f /root/.transgaming

sarajevo 08-16-2005 08:09 AM

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 :cry:

Charred 08-16-2005 10:10 AM

The command to remove empty directories is "rmdir"

Vgui 08-16-2005 11:14 AM

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.


All times are GMT -5. The time now is 05:11 PM.