Composition Linux terminal command format

Composition terminal command format


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
    1. Short format options: '-' followed by the single letter, for example: -r
    2. 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.
Published 698 original articles · won praise 929 · views 120 000 +

Guess you like

Origin blog.csdn.net/qq_35456045/article/details/104785198