• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Unix question: how do i...

spanky

Lifer
hello all,

i have a question, which i hope has a fairly simple solution. is there a Unix command that is similar to the "deltree" command from windows? basically, what i want to do is to be able to delete a directory, which also has other files and/or directories within it. when i use the "rm" command, it tells me that the dir is not empty. is there an easy way to just blow it away in a single command? i would appreciate any suggestion you might have. thank you.


-spanky
 


<< rm -R dir_name_here. So an example of what you DONT want to do: rm -r /
don't break your box now 🙂

silver
>>




so "rm -r /" is the equivalent of "format c:" eh? thanx for your help 🙂

10 for u!
 
If you're sure you're deleting the right directory, you may want to say "rm -rf <dirname>" to avoid possible interrogations about deleting some of the files. On some unix systems the default configuration for "rm" is to ask permission before deleting any file. In this case -f (force) is really needed unless you want to press "y" a hundred times.
 


<< If you're sure you're deleting the right directory, you may want to say "rm -rf <dirname>" to avoid possible interrogations about deleting some of the files. On some unix systems the default configuration for "rm" is to ask permission before deleting any file. In this case -f (force) is really needed unless you want to press "y" a hundred times. >>



thank you Gandalf 🙂
 
Back
Top