What is rm -rf/*?

藏色散人
Release: 2019-09-02 11:31:34
Original
45325 people have browsed it

What is rm -rf/*?

rm -rf/*What is the meaning?

The "rm" command is used to delete unnecessary files. The function of this command is to delete one or more files or directories in a directory. It can also delete a directory and all files and subdirectories under it. For linked files, the link is simply broken and the original file remains unchanged.

Recommended: [Linux Tutorial]

What is rm -rf/*?

##rm -rf * means to delete all files in the current directory.

The general form of the "rm" command is:

“rm [选项] 文件名… ”
Copy after login

If the "-r" option is not used, rm will not delete the directory.

The meaning of each option of this command is as follows:

"-f" ignores non-existent files and forcibly deletes them without giving a prompt.

"-r" instructs rm to recursively delete all directories and subdirectories listed in the parameter.

“-i” performs interactive deletion.

Be careful when using the rm command. Because once a file is deleted, it cannot be recovered. To prevent this from happening, you can use the "i" option to confirm the files you want to delete one by one. If the user enters "y", the file will be deleted.

The above is the detailed content of What is rm -rf/*?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template