mk90.commands
Command rmdir
Remove an empty directory.
Synopsis
rmdir pathOrdinary invocation: foreground child, PID 3; the shell waits. Not an allowed pipe producer.
Parameters
| Parameter | Meaning |
|---|---|
path | An existing empty directory on a writable volume. |
Description
Checks that the directory has no children, is not the current directory or one of its ancestors, and is not a volume root. Removes the inode in a metadata commit.
Examples
cd /
rmdir /mnt/smp1/work/src
rmdir /mnt/smp1/workLimits and side effects
- No recursive deletion and no confirmation prompt. Use RM for regular files.
Status and diagnostics
Success is status 0. Relevant status codes: 5, 6, 8, 10, 12, 14, 15, 18. See the diagnostic reference.
See also
mkdir · rm · cd · Shell syntax