The rm command is a fundamental Linux utility used to delete files and directories from the file system.
Usage syntax: rm [options] [file]
Commonly Used Options
-r— Recursively deletes directories and their contents.-v— Verbose output; displays what is being processed.-f— Force removal without prompting for confirmation.-i— Interactive mode; prompts before every deletion.
⚠️ Safety Warnings
--no-preserve-root— Dangerous! Disables the safeguard for the root directory. Use with extreme caution.
Note: The rm command is permanent. There is no "recycle bin." Use it carefully.