To remove a directory, the syntax is “rmdir dirname” with dirname being the name of the directory you want to remove.
rmdir –p dir1/dir2/dir3 will remove the specified tree of directories, starting with dir3
rmdir –r dirname will remove the specified directory and the files inside
Previous Home Next