Contents
rm is a command-line utility for removing files and directories. It is one of the essential commands that every Linux user should be familiar with.
What is rm command used for?
rm command is used to remove objects such as files, directories, symbolic links and so on from the file system like UNIX. To be more precise, rm removes references to objects from the filesystem, where those objects might have had multiple references (for example, a file with two different names).
What is RM in Linux?
The rm command is used to delete files.
- rm -i will ask before deleting each file. …
- rm -r will recursively delete a directory and all its contents (normally rm will not delete directories, while rmdir will only delete empty directories).