Home > Article > Operation and Maintenance > Various ways to delete files in linux
rm
File name (function: delete file)
Prompt: whether to delete the file, enter yes
rm *
(Function: delete all files under this path)
Online learning video sharing: linux video Tutorial
rm -f
File name (Function: Delete the file without asking whether to delete it)
## rm -r Folder (function: delete folder recursively)
rm -rf File or directory (function: delete file recursively) Delete directory, most commonly used)
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!