Composition terminal command format
Article Directory
learning target
- To know the format of the command terminal
1. Terminal Command Format Description
command [-options] [parameter]
Description of each message:
- command: command name, such as: ls, pwd
- [-Options]: option, you can have zero, one or more options, several options can be combined, such as using the -r option is.
- [Parameter]: parameter can have zero, one or more parameters, such as: touch filename, directory name mkdir, CD target directory (path), the files and directory names are parameters.
- []: Optional representatives
2. Summary
- Terminal Command Complete Format: Options command name (optional) parameter (optional)
- Options: used to adjust the command functions, such as: -r option to adjust the cp command function.
- Options Options can be divided into short and long options
- Short format options: '-' followed by the single letter, for example: -r
- Long Format option: '-' followed by the word, such as: -help
- Parameters: command of the operation object, usually a file or folder name.
- For the command, its options and parameters under normal circumstances there is no order requirements, but scp command must first option is then to keep up with parameters.