In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces what the linux delete folder commands are, the article is very detailed, has a certain reference value, interested friends must read it!
Linux delete folder command: 1, rmdir command, use "rmdir [- p] folder name" to delete the empty specified folder; 2, rm command, use "rm-rf folder name" to delete the specified folder.
Linux delete folder
1. Use the rmdir command
The Linux rmdir command deletes empty directories.
Grammar
Rmdir [- p] dirName
Parameters:
-p is deleted when the subdirectory is deleted so that it is also empty.
Example
Delete the subdirectory named AAA under the working directory:
Rmdir AAA
2. Use the rm command
The Linux rm (English spelling: remove) command is used to delete a file or directory.
Grammar
Rm [options] name...
Parameters:
-I ask for confirmation one by one before deletion.
-f even if the original file attribute is set to read-only, it will be deleted directly without confirmation one by one.
-r delete the directory and the following files one by one.
Example:
Rm-rf / var/log/httpd/access
The / var/log/httpd/access directory and all files and folders under it will be deleted
The above is all the contents of the article "what are the linux commands to delete folders?" Thank you for your reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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.