Debian Linux Delete Directory Command

by on August 19, 2010 · 0 comments· last updated at January 19, 2011

I am new to Debian Linux and bash shell command line. How do I delete or remove a directory using bash prompt?

You need to use the rmdir command to remove the DIRECTORY(ies), if they are empty. Open a command-line terminal (select Applications > Accessories > Terminal), and then type the following command to remove a directory called foo:
$ rmdir foo
To remove all directories and subdirectories use the rm command as follows:
$ rmdir bar
If you need assistance with Debian Linux rmdir command-line options, turn to the man page first. It will give you detailed information, parameters and switches for rmdir command:
$ man rmdir



You should follow me on twitter here or grab rss feed to keep track of new changes.

Featured Articles:

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <kbd> <blockquote> <pre> <a href="" title="">

Tagged as: , , , , , , , , , ,

Previous Faq:

Next Faq: