In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you about how to use mkdir commands in Linux. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
Mkdir make directories create directory
Syntax format: mkdir [option] [directory] mkdir [option] [directory]
Note: the mkdir command and subsequent options and directories must have at least one space between each element.
Parameter options:-pmaewm
Mkdir-p ysg/test
When using mkdir to create multi-level directories, it is recommended to directly use only the-p parameter, which can avoid errors that "No such file or directory" has no files or directories, and will not affect existing directories.
Mkdir-m 777 test1
As you can see, the initial permission of the directory is 755, and the permission is changed to 777 using the-m parameter.
Case 1:
Create 1-100 directories ending in .txt in batches
Mkdir {1..100} .txt
Case 2:
Create a set of directories recursively under test and ysg
Mkdir-p test/ {1.. 5} .txt ysg/ {a.. e} .txt
Case 3:
Clone the data directory in the ysg directory
Tree-fi-- noreport data > > data.txt
Cd ysg
Mkdir-p cat / home/data.txt
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
The above is how the mkdir command shared by the editor is used in Linux. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are 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.