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--
Editor to share with you the use of linux mkdir command to create a directory, I hope you will learn a lot after reading this article, let's discuss it together!
The mkdir command is an abbreviation for "make directories" and is used to create directories.
Note: by default, if the directory you want to create already exists, the prompt already exists and does not continue to create the directory. So when creating a directory, make sure that the newly created directory does not have the same name as the files in its directory. The mkdir command can also create multiple directories at the same time, isn't it powerful?
Syntax format: mkdir [parameters] [directory]
Common parameters:
-p Recursive create multi-level directory-m set the permissions of the directory while establishing the directory-z set the security context-v display the creation process of the directory
Reference example
Under the working directory, create a subdirectory called dir:
[root@linuxcool ~] # mkdir dir
Create a subdirectory dir under the directory / usr/linuxcool, and the file owner has read, write and execute permissions, but no one else has access to it.
[root@linuxcool] # mkdir-m 700 / usr/linuxcool/dir
Create a subdirectory dir1,dir2,dir3 at the same time:
[root@linuxcool ~] # mkdir dir1 dir2 dir3
Recursively create a directory:
[root@linuxcool] # mkdir-p linuxcool/dir has finished reading this article. I believe you have some understanding of creating a directory using linux's mkdir command. You want to know more about it. Welcome to follow the industry information channel. Thank you for your 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.