How to delete files in linux
Introduction
When we try the linux system, we need to delete a file, we can try the rm
command to delete it quickly
This tutorial will teach you How to delete files in linux
Command Line
Delete the test.txt
file
rm -i test.txt
Parameter Description
parameter | Introduction |
---|---|
rm | Remove (unlink) the FILE(s). |
-i | prompt before every removal. |
operation result
rm: remove regular empty file 'test.txt'?
Important reminder
It is recommended to try -i to delete files to prevent direct deletion of files
Notice
If you have any questions in use, you can leave a message below, or submit issuse on github ♥