December 2002
Intermediate to advanced
1616 pages
39h 57m
English
Removes a directory
rmdir directory-list
The rmdir utility deletes empty directories from the filesystem by removing links to those directories.
The directory-list contains pathnames of empty directories that rmdir removes.
Refer to the rm utility with the -r option if you need to remove directories that are not empty, together with their contents.
The following command line deletes the empty literature directory from the working directory:
$ rmdir literature
The next command line removes the letters directory, using an absolute pathname:
$ rmdir /home/jenny/letters
Read now
Unlock full access