In order to run programs, the shell parses a command line into words. The words can be understood as a mixture of options and arguments. The following are some essential guidelines:
- Options come first. They are preceded by - or --. There are two formats: -l and --word. There are two species of options: options with no arguments and options with arguments. A couple of examples of options without arguments involve using -V to show a version or using --version to show the version. An example of an option with arguments is -m module, where the -m option must be followed by a module name.
- Short format (single-letter) options with no arguments can be grouped behind a single -. We might use -bqv to combine the -b -q -v options ...