> Is there a command to delete all files and subdirectories within a
> directory. For example, I have the directory apps in my home directory.
> Lets says apps has 7 files and 2 directories.  With one command, how can
> I delete the apps directory and all its contents.  I looked at the man
> page but didn't see anything helpful.  Thanks.

 rm -fr /home/apps

...or to remove anything inside /home/apps but leave /home/apps standing

 rm -fr /home/apps/*

----------------------------------------------------------------------------
Orn Einar Hansen                         [EMAIL PROTECTED]
                                          [EMAIL PROTECTED]
                                        voice+fax; +46 035 217194


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .

Reply via email to