In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "the usage of the Linux basic command mkdir". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the usage of the basic Linux command mkdir.
Mkdir
If the directory does not exist, then create the directory.
The scope of this command: RedHat, RHEL, Ubuntu, CentOS, SUSE, openSUSE, Fedora.
1. Grammar
Mkdir [options] dir
2. List of options
Option
Description
-- version
Display command version information
-- help
Show help documentation
-m |-- mode=MODE
Set the permissions of the directory
-p |-- parents
When creating a multi-tier directory, if the parent directory does not exist, create the parent directory first
-v |-- vervose
Show execution process
3. Examples
1) create a directory with maximum permissions
[root@localhost weijie] # mkdir-m 777 test
[root@localhost weijie] # ls-l
Total consumption 360
-rw-r--r-- 1 root root 0 September 7 09:11 1.c
-rw-r--r-- 1 root root 358400 September 7 15:46 my.iso
Drwxrwxrwx 2 root root 4096 September 10 11:33 test
2) create a directory and its parent directory
[root@localhost weijie] # mkdir-v test01/test / / directory test01 does not exist and cannot create a test directory under it
Mkdir: unable to create directory "test01/test": there is no such file or directory
[root@localhost weijie] # mkdir-p-v test01/test / / use the option-p. When directory test01 does not exist, create test01 first.
Mkdir: directory "test01" has been created
Mkdir: directory "test01/test" has been created
You have new mail in / var/spool/mail/root
At this point, I believe you have a deeper understanding of "the use of the Linux basic command mkdir". 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.