RMDIR - how to remove a non-empty directory??
How do you remove a non-empty directory without having to manually delete all of its contents??
|
rm -R /path/to/directory
rm -rf /path/to/directory Use with caution....... |
You always CAN use a gui tool like konqueror to do that, you know. You don't have to do EVERYTHING by the command line.
|
Quote:
|
what's wrong with using the command line??
|
Quote:
No, wait! That's what is right with the command line...:D |
Be EXTREMELY careful.
This is how (not that specific command) that I messed up my intire Linux install. had to reformat both hdd's. No backup did I have either. sigh... be warned!! titanium_geek |
ok, thanks!!
|
Quote:
|
#rm -rf / oops!
|
Quote:
|
:tisk: So you think. You actually may do that unintentionally. Several people have thought that, but did it anyhow. :eek:
When in root, sit on your hands a lot and resist the urge to hit enter. Read what you typed several times because once you hit that enter key, the commands get carried out as long as there is enough system left to perform them. |
Good tip. Thanks!
|
If it doesn't work, stick a -f in there. That's what I usually do! (In my mind -f stands for "just f***ing do it)! ;)
|
Language language!
|
All times are GMT -5. The time now is 11:57 PM. |