Rmdir

From LQWiki
Jump to: navigation, search

rmdir is a command used to remove empty directories. Non-empty directories need to be emptied first. Another approach to removing non-empty directories is using the "rm -r" command.

Many people choose to alias the rmdir command to rd because that's what it was called in DOS. This is done differently depending on your shell:

  $ alias rd=rmdir     # For sh, ksh, bash, etc.
  $ alias rd rmdir     # For csh, tcsh, etc.

Provided by

Most (all?) Linux distributions incorporate this from the GNU Coreutils: man page

Related Commands

See Also

External links