In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Linux
Linux, whose full name is GNU/Linux, is a set of Unix-like operating system that is free to use and spread freely. It is a multi-user, multi-task, multi-thread and multi-CPU operating system based on POSIX and Unix. With the development of the Internet, Linux has received support from software enthusiasts, organizations and companies all over the world. In addition to maintaining a strong momentum of development in servers, it has made great progress in personal computers and embedded systems. Users can not only intuitively obtain the implementation mechanism of the operating system, but also modify and improve Linux according to their own needs to maximize meet the needs of users.
1. Rm directly is fine, but add two parameters-rf: rm-rf directory name
-r is recursive downwards, and no matter how many directories there are, delete them as well.
-f means to delete directly and forcibly without giving any prompt.
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
2. Use the rmdir command
The Linux rmdir command deletes the empty directory.
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
In the BBB directory under the working directory, delete the subdirectory named Test. If the BBB directory becomes empty after the Test is deleted, the BBB will also be deleted.
Rmdir-p BBB/Test
These are the details of how to delete the folder in linux. Please follow other related articles for more information.
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.