rm

From Juneday education
Jump to: navigation, search


rm - remove files or directories.

On this page we only give you a short introduction with a few examples. We encourage you to read the manual (man rm).

Description

rm is a UNIX command (short for "remove") used for removing files, directories, links etc from the filesystem. It resembles the old DOS command del. Wikipedia has more information: Read about rm on wikipedia .

Example usage

$ ls file_name.txt
file_name.txt
$ rm file_name.txt
$ ls file_name.txt
ls: cannot access file_name.txt: No such file or directory