In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Xiaobian to share with you what the linux delete folder command is, I hope you read this article after the harvest, let us discuss it together!
Linux Delete Folder Command
Linux delete directory is very simple, many people are still accustomed to using rmdir, but once the directory is not empty, they fall into deep distress, now use rm -rf command.
Direct rm is OK, but you need to add two parameters-rf, that is: rm -rf directory name
Delete directories, files rm(remove)
Function Description: Delete files or directories.
Grammar:
rm [-dfirv][--help][--version][file or directory...]
Supplementary note: execute rm command to delete files or directories. If you want to delete directories, you must add parameter "-r", otherwise only files will be deleted by default.
Parameters:
-d or-directory directly delete the hard connection data of the directory to be deleted to 0, delete the directory.
-f or-force Forces deletion of files or directories.
-i or-interactive Ask users before deleting existing files or directories.
-r or-R or-recursive Recursive processing, all files and subdirectories under the specified directory are processed together.
-v or-verbose shows instruction execution.
1. delete folder
de>rm -rf fileNamede>
- Delete folder instance:
rm -rf /var/log/httpd/access
The/var/log/httpd/access directory and all files and folders under it will be deleted.
Need to remind is: use this rm-rf time must be extra careful, linux does not recycle bin
2. delete files
de>rm -f fileNamede>
Be careful when using rm-rf, linux has no recycle bin
After reading this article, I believe you have a certain understanding of what the linux delete folder command is. If you want to know more about it, welcome to pay attention to the industry information channel. Thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.