terminal.cab
No.
12
Date
Learning goal
Terminal Start, lesson 7
Level
2 of 3

Command of the day No. 12: rmdir

Purpose: Deletes a folder, but only when it is empty.

Syntax: rmdir folder

Example:

rmdir old
rmdir Documents
rmdir: failed to remove 'Documents': Directory not empty

Output from the simulator, as on a real Linux.

Options:

Try it in the terminal Share image

Fills in the command. Nothing runs until you press Enter.

Command of the day No. 12: rmdir. Purpose: Deletes a folder, but only when it is empty. Example: rmdir old; rmdir Documents. Caution: An empty folder is gone at once, without a question. Check first: ls -A folder: no output and no error means the folder is empty, hidden files included. Remember: rmdir refuses full folders: a built-in safety net.
The same card as an image, 1080 x 1350 pixels.

Today's card ยท All cards so far