mk90.commands

Command rm

Delete one regular file.

Synopsis

rm file

Ordinary invocation: foreground child, PID 3; the shell waits. Not an allowed pipe producer.

Parameters

ParameterMeaning
fileExisting regular file on a mounted writable volume.

Description

Removes the directory entry in a metadata commit. There is no extra confirmation. Data sectors can be reused when no metadata generation or open reader still references them.

Examples

rm /mnt/smp1/old.txt

Limits and side effects

  • No recursive deletion, wildcard expansion, trash or secure erasure. It does not remove directories.

Status and diagnostics

Success is status 0. Relevant status codes: 1, 2, 3, 4, 5, 6, 8, 9, 14, 15, 18. See the diagnostic reference.

See also

rmdir · cp · Shell syntax