Unix / Linux / Ubuntu Articles

Submit Article
Home » Articles » Unix / Linux / Ubuntu » CommandsRSS Feeds

Remove a directory - rmdir

Posted By: Reggie Fischer     Category: Unix / Linux / Ubuntu     Views: 3882

This article explains about rmdir command with an example in unix.

rmdir command is used to remove a directory in unix.

• Can only remove if directory is empty.

Syntax of rmdir Command

rmdir dirName

Example of rmdir Command

rmdir myFolder
rmdir OfficeDocuments
rmdir: OfficeDocuments: Directory not empty


Didn't find what you were looking for? Find more on Remove a directory - rmdir Or get search suggestion and latest updates.

Reggie Fischer
Reggie Fischer author of Remove a directory - rmdir is from Frankfurt, Germany.
View All Articles

Related Articles and Code:

Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

No Comment Found, Be the First to post comment!