tool
rm
rm is a command-line utility in Unix-like operating systems (including Linux and macOS) used to remove files and directories. It permanently deletes specified items from the filesystem, with options to handle recursive deletion of directories and force removal without prompts. As a core system tool, it is essential for file management and cleanup tasks in terminal environments.
Also known as: remove, delete, del, rmdir (for directories), unlink
🧊Why learn rm?
Developers should learn rm for efficient file and directory deletion in command-line workflows, such as cleaning up temporary files, removing old project artifacts, or managing system logs. It is particularly useful in scripting and automation where batch deletions are needed, but caution is required as deletions are irreversible without special recovery tools.