Home  >  Article  >  Operation and Maintenance  >  What is rm -rf/*?

What is rm -rf/*?

藏色散人
藏色散人Original
2019-09-02 11:31:3445301browse

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 [选项] 文件名… ”

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!

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