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 how to create a folder command in linux, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
The linux create folder command is mkdir, and the syntax is [mkdir (option) (parameter)], where Z sets the security context, which is valid when using SELinux, and version displays version information.
Mkdir create folder command in Linux
Grammar
Mkdir (option) (parameter)
Option
-Z: sets the security context, which is valid when using SELinux
-m or-- mode sets the permissions of the directory while establishing the directory
-p or-- parents if the upper directory of the directory to be created has not been created yet, the upper directory will be created as well
-- version displays version information.
Parameters.
Directory: specifies the list of directories to be created, separated by spaces.
Common examples
1. Create multiple folders under the current folder
2. Specify an absolute path to create a xxx folder, while the current path creates a vvv folder (for example, you can also create multiple absolute paths at the same time)
3. Create a subdirectory test under the directory / qwd, and only the file owner has read, write and execute permissions, and others do not have access.
Mkdir-m 700 / qwd/test
4. Establish the ttt directory under / qxc and qxc in the current directory. The permissions are set to read, write and execute for the file master. Users in the same group can read and execute, and other users do not have the right to access them.
Mkdir-p-m 750 qxc/ttt
The above is all the contents of the article "how to create a folder in linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more 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.