Linux delete files and folders command

command Detailed
rm Quanpin remove, its function is to delete one or more files or directories.
Example:
rm file1 —— delete file1 file
rm -r dir1 —— delete the folder dir (where -r means downward recursion, no matter how many levels there are, delete them together)
rm -rf dir1 —— delete the folder dir1 forcefully ( -f means to delete forcibly directly without any prompt)

Guess you like

Origin blog.csdn.net/qq_41800366/article/details/106098872