Skip to content
masterclass Buddy

Linux & Shell · Command

rm

rm removes named files. Use -r for directories and their contents, and use interactive options when you want confirmation.

Last updated

Syntax

rm [OPTION]... [FILE]...

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • unlink(1)
  • unlink(2)
  • rmdir(2)
  • chattr(1)
  • shred(1)

Source: rm(1) - Linux manual page. Checked 2026-11-03.