Linux System Administration
Basic Commands
rmdir (ReMove DIRectory)
This command will remove an
empty
directory.
rmdir temp
If the directory is not empty, then pass the parameters r (recursive) and f (force) to the rm command.
The f parameter will force the removal, never inquiring if you want to remove any subsequent files or directories.
The r parameter will remove travel down any directories within the directory and remove all the files.
rm -rf dir_name
Prev
Page 9
Next