Man-k mkdir means to query mkdir related instructions, similar functions such as apropos mkdir, will list three instructions with mkdir;
The man command after its display explains a numeric parameter that indicates the specific range of positioning:
The number "1" represents a user command
The number "2" indicates a system call
The number "3" represents the C library function
The number "4" indicates a device or special file
The number "5" represents the file format and rules
The number "6" means games and other
The number "7" represents macros, packages, and other miscellaneous
The number "8" indicates system administrator-related commands
Title Meaning
Name and purpose of the name Command (summary)
Synopsis Command Syntax (abstract)
Description Full Description
Environment variables used by the environment command
Author Author
File List of files that are important to the command
See also where to view related information
Diagnostics possible errors and warnings
Bugs errors, drawbacks, warnings
Options: Command options are available in two forms: Long option (-) and short option (-)
Long options: Use--boot, followed by complete words, such as--help
Short options: With-boot, followed by a single character, such as-a
Multiple short options can be combined, for example:-h-l-A = =-hla
However, long options can not be combined, such as--help can not be followed by another word.
Options can also have their own parameters, which can be called arguments, (note that between options and options, between options and parameters, there must be spaces between parameters and Parameters!) Also, the symbols used for the options and parameters of the command have the corresponding meanings:
1. The items in square brackets are optional;
2. Items that are not in square brackets or in curly braces are mandatory (there are also <>, but I have not seen them);
3. Black body (or bold)? ) words must be typed exactly as they are, which may be command names, flags, and literal characters;
4. Italics must be replaced with an appropriate value (the system that does not display italics is usually replaced with an underscore), as in the case of variables, it is necessary to add the appropriate values according to the circumstances;
5. Follow the ellipsis (...). ) parameters can be repeated multiple times;
6. If a separate option and a parameter are combined, then the option and parameter must be used simultaneously;
7. Two or more items separated by the | (vertical bar) character, indicating that you can select one from this list.
For example, [A|b] indicates that A and B can be selected or not, and {a|b} indicates that A and B must be selected.
To print the man manual, take mkdir as an example:
Man-t mkdir > Mkdir_man.ps
You can print PS directly and plan to send it to someone else and convert it to PDF:
Ps2pdf mkdir_man.ps Mkdir_man.pdf
The mkdir command is created recursively:
MKDIR-VP Scf/{lib/,bin/,doc/{info,product},logs/{info,product},service/deploy/{info,product}}
Output:
[Email protected] test]# MKDIR-VP Scf/{lib/,bin/,doc/{info,product},logs/{info,product},service/deploy/{info, Product}}
mkdir: The directory "SCF" has been created
mkdir: The directory "Scf/lib" has been created
mkdir: The directory "Scf/bin" has been created
mkdir: The directory "Scf/doc" has been created
mkdir: The directory "Scf/doc/info" has been created
mkdir: The directory "Scf/doc/product" has been created
mkdir: The directory "Scf/logs" has been created
mkdir: The directory "Scf/logs/info" has been created
mkdir: The directory "Scf/logs/product" has been created
mkdir: The directory "Scf/service" has been created
mkdir: The directory "Scf/service/deploy" has been created
mkdir: The directory "Scf/service/deploy/info" has been created
mkdir: The directory "Scf/service/deploy/product" has been created
[Email protected] test]# tree scf/
scf/
|--bin
|--doc
| |--Info
| '--product
|--Lib
|--logs
| |--Info
| '--product
'--Service
'--Deploy
|--Info
'--product
Directories, 0 files
MKDIR-PV (recursive creation, display of created files)
Reference http://www.cnblogs.com/peida/archive/2012/10/25/2738271.html
The tar command can be consulted:
Http://www.cnblogs.com/peida/archive/2012/11/30/2795656.html
This article is from the "Cloud Light Breeze" blog, please be sure to keep this source http://htlbydgod.blog.51cto.com/9829379/1630703
Man mkdir Tree's understanding