Home
Cloud
Big Data
CI
Install
Samples
Java
Ubuntu
Maven
Archive
Linux-Ubuntu
|
rmdir -- remove directories
Notes
Examples
Notes
rmdir directory ...
The
rmdir
command removes the provided list of directories (they are removed in the order given).
A directory must be empty to be removed by the
rmdir
command.
You must enter all sub-directories before their parent directory so they all could be removed.
Examples
Removing a directory:
$ rmdir folder1
The folder must be empty, otherwise, you will get this error: "
rmdir: folder: Directory not empty
".
Removing a directory and its sub-directories:
$ rmdir folder/folder1 folder/folder2 folder
© 2010-2022
mti
tek