RMDIR Command is used to Delete the empty directory.


abhisharmaofficial.blogspot.com

If your are in Desktop directory and you want to delete the directory aman. So type the following command.

 $ rmdir aman

If you want to delete the two or more directory Simultaneous. Type the following command.

/Desktop$ rmdir Desktop/aman Desktop/abhi

In this case the directories aman and abhi will be delete from the Desktop directory.

Note that Desktop directory will not be deleted.

Note that the all the directories must be empty to perform the rmdir command.


abhisharmaofficial.blogspot.com

If you want to delete above type of directories in a one command, type the following command.

$ rmdir software/adce software/mdce software/dcap software

Note : You can also use -p option with rmdir for remove all the directories even they have not empty.

abhisharmaofficial.blogspot.com
For removing above type of directories structure type this command ;

$ rmdir -p Software/ADCE Software/MDCE Software/DCAP


Your feedback is very important for us :)