Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

am

am (from Latin amove — to remove) deletes files and directories. It is the core Vesper Linux replacement for GNU rm.

Usage

am [-r] [-f] FILE...

Flags

  • -r — remove non-empty directories with their contents recursively.
  • -f — force removal; ignores nonexistent files and suppresses error output when a target does not exist.

Examples

Delete a single file:

am note.txt

Recursively force delete a directory:

am -r -f target_dir/

Delete multiple files at once:

am file1.txt file2.txt file3.txt