O'Reilly logo

SAMS Teach Yourself Unix in 10 Minutes by Robert Shimonski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The rmdir Command

The rmdir command will delete an empty directory. What this means is that the directory you want to remove cannot contain any data within it.

To remove a directory, do the following:

1.
Decide which directory, or directories, you want out of your way.
2.
Issue the rmdir command as rmdir <directory>.

Don't Forget! You Can Do Many At Once! Don't forget that you can remove multiple directories at one time. As with most file management commands, specify the directories in sequence and they will be removed. For example, if you wanted to remove “test” and “test1,” the two directories could be removed with one issuance of the rmdir

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required