removing a directory
[root@localhost html]# rm -d guest
rm: remove directory `guest'? yes rm: cannot remove directory `guest': Is a directory [root@localhost html]# Theres probably an easy way to fix this, but its not working, and its a big file with a lot of tiny seperate files, so -r is annoying to do. Thanks, any help would be appreciated. --brad |
rm -rf dir/
|
rm -rf guest
|
ahh. thays easy, ty....
|
Use that command with care. Use it wrongly and you can hose your entire system.
|
rm -rf <name> means "remove <name>, and everything in <name> if it's a directory, recursively, and don't ask me to confirm anything."
rmdir <name> means "remove the directory <name>, but only if it's empty. To remove a directory and all its contents, the former is probably the easiest. But use sparingly. |
All times are GMT -5. The time now is 10:43 PM. |