rm command even as root
hi i'm trying to get rid of a file that i have on my desktop. it's actually a directory but whatever. here's what i get:
------------------------------------------------- chase@cacole chase]$ su Password: [root@cacole chase]# rm /home/chase/Desktop/zsnes-1.36/ rm: remove directory `/home/chase/Desktop/zsnes-1.36/'? y rm: cannot remove directory `/home/chase/Desktop/zsnes-1.36/': Is a directory --------------------------------------------------- Note that i'm a root as i try this and it still doesn't delete my directory. what's the problem? |
rmdir will delete empty directories
rm -rf will delete a directory with contents in it. |
Try becoming full root
su - |
In order to remove a directory you have to remove all the files in it first then use rmdir like trickykid said.
Note that 'rm -rf' is a dangerous command - make sure you're in the right directory before executing that one! :) |
Thank you all
|
All times are GMT -5. The time now is 02:57 PM. |