In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 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 the mkdir command to create a folder 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.
I. the right to use the mkdir command
All users can use the mkdir command on the terminal to create a folder or directory in a folder with permissions.
Second, the format of mkdir command
Format: mkdir [options] DirName
Third, mkdir command function
The mkdir command enables you to create a folder or directory named after DirName (the specified file name) at a specified location. The user who wants to create a folder or directory must have write access to the parent folder of the created folder (click here for Linux file-folder permissions). Also, the folder (directory) created cannot have the same name as the file name in its parent directory (that is, the parent folder), that is, it cannot have the same name (case-sensitive) in the same directory.
Fourth, mkdir command options description
There are generally two options in the command:
-m is used to set access to the newly created directory, or it can be set with the chmod command.
-p create an upper-level folder (or directory) when needed, and if the folder (or directory) already exists, it is not considered an error.
5. Examples of using mkdir command
Example 1: create a folder named "it.dengchao.org" under / home/cc/.
Use the following command.
Mkdir / home/cc/it.dengchao.org example 2: create a folder named "it.dengchao.org" under / home/cc/ and assign permissions to the folder, with permissions of 777.
Mkdir 777 / home/cc/it.dengchao.org
This is how to use the mkdir command to create a folder in the Linux shared by the editor. If you happen to have similar doubts, please 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.