rmdir Linux Commands
What is Linux rmdir Command?
rmdir COMMAND:rmdir command is used to delete/remove a directory and its subdirectories.
rmdir [options..] Directory
||Allow users to remove the directory dirname and its parent directories which become empty.
- To delete/remove a directory
rmdir command will remove/delete the directory tmp if the directory is empty.
- To delete a directory tree:
This command recursively removes the contents of all subdirectories of the tmp directory, prompting you regarding the removal of each file, and then removes the tmp directory itself.