In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the use of the mkdir command in Linux, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Linux common commands mkdir commands are mainly used to create directories.
Mkdir is used to create directories
Add that the mkdir command is used to create a directory. This command creates a directory named by dirname. If no pathname is added before the directory name, the directory specified by dirname is created under the current directory; if an existing path is given, a specified directory is created under that directory. When creating a directory, make sure that the newly created directory does not have the same name as the files in its directory.
Note: when creating files, do not store all files in the home directory, you can create subdirectories, through them to organize files more effectively. It is best to use a consistent naming method to distinguish between files and directories. For example, a directory name can start with an uppercase letter so that the directory name appears first in the directory list.
Files of similar type or use should be included in a subdirectory. For example, you should create a subdirectory that contains all database files, another subdirectory that contains spreadsheet files, a subdirectory that contains word processing documents, and so on. Directories are also files, they follow the same naming convention as ordinary files, and you can uniquely specify a directory using the full path.
Syntax mkdir (option) (parameter) option-Z: set the security context, which is valid when using SELinux;-m or-mode set the permissions of the directory while establishing the directory;-p or-- parents if the upper directory of the directory you want to establish is not currently established, it will also establish the upper directory;-- version displays version information. Parameter directory: specifies the list of directories to be created, separated by spaces.
The instance creates a subdirectory test under the directory / usr/meng, and only the file owner has read, write and execute permissions, and no one else has the right to access it
Mkdir-m 700 / usr/meng/test establishes the os_1 directory under bin and bin in the current directory. The permissions are set to read, write and execute for the file master, and can be read and executed for the same group of users. Other users do not have access.
Mkdir-Pmurm 750 bin/os_1 thank you for reading this article carefully. I hope the article "what is the use of mkdir commands in Linux" shared by the editor will be helpful to you. At the same time, I also hope that you will support us and follow the industry information channel. More related knowledge is waiting for you to learn!
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.