Mark As Completed Discussion

rmdir

rmdir is a command for Remove Directory. It removes the specified directory. It should be noted that the directory to be removed must be empty or the terminal will throw an error.

Syntax: rmdir[option]<directory name>

SNIPPET
1user@localhost:~$ rmdir BashTutorial
2user@localhost:~$ ls
3Documents Pictures Videos

rmdir

Another important thing to note is that when working with the command line, there is no undo option. Once you remove a directory, you won't be able to restore it. So be careful with what you delete!