Home  >  Article  >  Operation and Maintenance  >  Various ways to delete files in linux

Various ways to delete files in linux

王林
王林Original
2019-12-07 14:39:563863browse

Various ways to delete files in linux

rm File name (function: delete file)

Prompt: whether to delete the file, enter yes

Various ways to delete files in linux

rm * (Function: delete all files under this path)

Various ways to delete files in linux

Online learning video sharing: linux video Tutorial

rm -f File name (Function: Delete the file without asking whether to delete it)

Various ways to delete files in linux

## rm -r Folder (function: delete folder recursively)

Various ways to delete files in linux

rm -rf File or directory (function: delete file recursively) Delete directory, most commonly used)

Various ways to delete files in linux

Recommended related articles and tutorials:

linux tutorial

The above is the detailed content of Various ways to delete files in linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to check cpu in linuxNext article:How to check cpu in linux