In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "the usage of mkdir command of Linux". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the usage of the mkdir command of Linux.
Mkdir (create a new directory or folder)
Format:
Mkdir [- option] directory
[- option]:
-the parent directory of the target directory created by pmam Murphy does not exist. The parent directory is created directly without error.
Each directory created will print a message.
-mmam Mustang ModeMod sets the directory attribute.
1. Create a directory testdir1 under the current path
Method (1), establish the folder of the relative path: that is, it does not involve the specific content of the path
Command: mkdir QQ or mkdir. / PP
Method (2), establish the folder of absolute path: it is composed of specific path and folder
Mkdir / etc/sysconfig/network/aa
2. Create a target directory where the parent directory does not exist
There is no directory a under the current path, of course, there is no directory b under directory a, but the task is to create a subdirectory c under subdirectory b under directory a; admittedly, we can mkdir a first, then enter directory a, then mkdir b, and then enter directory b. Don't bother. It's all wasted.
The parameter-p that the Linux system has prepared for us.
Mkdir-p / a/b/c/d
3. Create a directory with personality (attributes)
Use the command to create a read-only directory mkdir-m 444 testdir2
At this point, I believe you have a deeper understanding of "Linux's mkdir command usage". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue 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.