Untitled Document
rmdir Command

rmdir - command stands for remove directory .The rmdir utility removes the directory entry specified by each directory argument, provided the directory is empty. The rmdir command works only on directories owned by the user . A user won't be able to create or remove files and directories in other users directories .

Example 1 - Basic Example

Run below rmdir command to remove the directory logs

   rmdir logs      

Example 2 - Removing Multiple directories

Run below rmdir command to remove the 3 directories logs , output and scripts

   rmdir logs output scripts     
Untitled Document