rmdir Linux Command
Removes an empty directory. Safer than rm -r for removing directories.
What does rmdir do?
Removes an empty directory. Safer than rm -r for removing directories.
Syntax
rmdir directory_namePractical example
rmdir emptydirRelated File Management
rmRemoves (deletes) files or directories. Use -rf for recursive force delete.
catDisplays the entire contents of a file on the terminal.
mvMoves or renames files and directories.
lessViews file contents page by page with forward and backward navigation.
cpCopies files or directories from one location to another.
moreViews file contents one screen at a time (forward-only navigation).