Translations:Linux introduction/13/en

From Alliance Doc
Jump to navigation Jump to search

Deleting files

You can remove files using the rm command:

Question.png
[name@server ~]$ rm my_file

You can also recursively remove a directory:

Question.png
[name@server ~]$ rm -r my_directory

The (potentially dangerous!) -f option can be useful to bypass confirmation prompts and to continue the operation after an error.