Thursday, March 12, 2009

Linux Tips: Removing Directory

rmdir command

Remove folder(s), if they are empty.

SYNTAX
rmdir [options]... folder...

OPTIONS
--ignore-fail-on-non-empty
ignore each failure that is solely because the directory is non-empty

-p, --parents remove explicit parent directories if being emptied

--verbose output a diagnostic for every directory processed

--help display this help and exit

--version output version information and exit

Related Linux Bash commands:

ls - List information about files (use ls-al to see if they are empty)
rm - Remove files (rm -rf will recursively remove folders and their contents)

No comments:

Hack the Box Blue

https://arcy24.medium.com/hack-the-box-blue-f5ae5b602a5c