Rmdir
Jump to navigation
Jump to 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
- link - Make hard links.
- ln - Make hard or soft links
- mkdir - Make directory nodes.
- mkfifo - Make a named pipe directory entry (aka fifo)
- mknod - Make a device node, or a socket node.
- readlink - Make a canonical name.
- unlink - Remove directory entries (other than for subdirectories)
See Also
External links
- Another rmdir man page