Name
rmdir — stdin stdout - file -- opt --help --version
Synopsis
rmdir [options]directories
The rmdir (remove
directory) command deletes one or more empty directories you
name:
$ rmdir /tmp/junk
Useful options
|
|
If you supply a
directory path (not just a simple directory name), delete
not only the given directory, but the specified parent
directories automatically, all of which must be empty. So
|
To delete a nonempty directory and its contents, use
(carefully) rm
-r directory. Use
rm -ri to delete interactively,
or rm -rf to annihilate without
any error messages or confirmation.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access