Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of deleting Files in linux

Shulou Source: shulou.com Published: 2022-06-03 02:07:37 10月01日 Update

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.

Tags: Files commands things contents instances that is general beginning articles more directories methods Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Shulou Technology Docker MariaDB Linux