Debian Linux Delete Directory Command

by on August 19, 2010 · 0 comments· LAST UPDATED January 19, 2011

in

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

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 0 comments… add one now }

Leave a Comment

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

Previous Faq:

Next Faq: