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 menuFeedbackPreviousNext
4. Creating links and removing files
  


rmdir page 12 of 13


To remove directories, you have two options. You can remove all the objects inside the directory and then use rmdir to remove the directory itself:


$ mkdir mydir
$ touch mydir/file1
$ rm mydir/file1
$ rmdir mydir

Main menuSection menuFeedbackPreviousNext
PrivacyLegalContact