GO KALI FREE
File Management

rmdir Linux Command

Removes an empty directory. Safer than rm -r for removing directories.

What does rmdir do?

Removes an empty directory. Safer than rm -r for removing directories.

Syntax

rmdir directory_name

Practical example

rmdir emptydir

Related File Management

rm

Removes (deletes) files or directories. Use -rf for recursive force delete.

cat

Displays the entire contents of a file on the terminal.

mv

Moves or renames files and directories.

less

Views file contents page by page with forward and backward navigation.

cp

Copies files or directories from one location to another.

more

Views file contents one screen at a time (forward-only navigation).