Skip to main content
IBM 
ShopSupportDownloads
IBM HomeProductsConsultingIndustriesNewsAbout IBM
IBM : developerWorks : Linux : Education - Tutorials
LPI certification 101 exam prep, Part 1
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPrevious
Next Section
4. Creating links and removing files
  


rm and directories page 13 of 13


Or, you can use the recursive force options of the rm command to tell rm to remove the directory you specify, as well as all objects contained in the directory:


$ rm -rf mydir

Generally, rm -rf is the preferred method of removing a directory tree. Be very careful when using rm -rf, since its power can be used for both good and evil. :)


Next Section
Main menuSection menuFeedbackPrevious
PrivacyLegalContact