Linux Command of Learning - send a command every day -mkdir
mkdir command to create a directory of the specified name, requiring the user who created the directory to have write permissions in the current directory, and the specified directory name cannot be a directory that is already in the current directory.
1. command format:
mkdir [ options ] Catalogue ...
2. command function:
throughmkdircommand can be implemented at the specified location to create a DirName (the specified file name)the named folder or directory. The user who creates the folder or directory must have write permissions to the parent folder of the folder that is created. Also, the folders that are created(Catalogue)cannot be associated with its parent directory(that is, the parent folder)the name of the file in the same directory cannot have the same name(Case Sensitive).
3. Command parameters:
Command |
Parameters |
Function |
Mkdir |
-M |
-M,--mode=Mode,Set Permissions<Mode> (similarchmod), but notrwxrwxrwxminusumask |
-P |
-p, --parents can be a path name. At this point, if some directories in the path do not already exist , , ; |
-v |
-v, --verbose every time you create a new directory, it displays information |
--HELP&NBSP; |
display this help message and exit |
--version |
Output version information and exit |
4. Command instance:
Example 1 : In the root directory, create a name called School the directory
[Email protected]/]# Mkdir/school
[Email protected]/]# Ls-ld/school
Drwxr-xr-x 2 root root 4096 5 18:56/school
Example 2 : Creating a directory /student/boy
[Email protected] ~]# mkdir-p/student/boy
[Email protected] ~]# Ls-ld/student/boy
Drwxr-xr-x 2 root root 4096 5 18:54/student/boy
--------------------------------------------------------------------------------------------------------------- -------
If any of the above is incorrect, please criticize
--------------------------------------------------------------------------------------------------------------- -------
What the landlord wants to say:
To : Linux 0 Basic students
My name heavenfish, my goal is high salary! Paid! Paid!
but 0 basic I learn to feel difficult, but I am not afraid of difficult, I spend ten hours a day to study, I am not afraid of unsuccessful! The way to use the blog to motivate their learning interests and motivation, and I hope that the same as I 0 basic students work together to achieve their high-paying dream.
The direction of my efforts is:
1. Learn an operating system:Linux
2. learn a language:Java (studied C at university, but not learning)
3, Learn a technology:HDFS and eco-circle!!!!
This article is from the Linux learning blog, so be sure to keep this source http://heavenfish.blog.51cto.com/9841104/1953776
Linux command Learning-send a command every day-mkdir