terminal.cab

All commands

rmdir

Topic: Files and folders

Program: rmdir

Removes empty directories.

Package: core-files

Usage

rmdir [OPTION]... DIRECTORY...

Description

Remove each DIRECTORY, but only if it is empty.

Options in the simulator

2 more options of the real program, not in the simulator yet
  • --ignore-fail-on-non-empty not in the simulator yet

    Explanation to come

  • --version not in the simulator yet

    On a real system it prints the version of the program.

Examples

From the lesson Deleting without regrets
mkdir old
rmdir old
rmdir Documents
rmdir: failed to remove 'Documents': Directory not empty

Try it in the terminal

From the command of the day: rmdir
rmdir old
rmdir Documents
rmdir: failed to remove 'Documents': Directory not empty

Try it in the terminal

Where you learn it

Lessons

Command of the day

All commands