The method of deleting Files in linux
Use the rm command to delete files under Linux. The specific usage is as follows:
Rm [options] file
Option description:
Command example:
1. Delete a.txt files routinely
[root] # rm a.txt
2. Forcibly delete the file.log file
[root] # rm-f file.log
3. Delete everything in the dirname directory
[root] # rm-R dir dirname
4. Delete files that start with-f
[root] # touch. /-f [root] # ls. /-f. Melody [root] # rm. /-f
Or use the
[root] # touch-f [root] # ls-f-f [root] # rm-f
These are the details of how to delete files in linux. Please follow other related articles for more information.