1.1 How to input a command
This section explains how to input commands.
Synopsis
The following show the format for inputting a command:
command_name [option...]
Each item is explained below. Note that $ indicates the command prompt, and cmd indicates a command name.
command_name
Specify the file name of the command to be run.
When you run a command that specifies a path that contains a blank space, enclose the entire path in double quotation marks (""). For example:
-
Incorrect example: $ /opt/program path/bin/cmd
-
Correct example: $ "/opt/program path/bin/cmd"
(Note that the paths in the examples are different from the paths used in the actual product.)
Input format of options
Options always start with a hyphen (-). Option input formats include a format in which no option argument is specified and a format in which one option argument is specified.
-
The following format is used to specify no option argument:
$ cmd -option_flag
-
The following format is used to specify one option argument:
$ cmd -option_flag space_or_tab option_argument
- Legend:
-
option_flag: This is one half-width alphanumeric character. Characters are case sensitive (uppercase and lowercase characters are distinguished).
option_argument: This is an argument of the option flag.
Rules for specifying options
-
You cannot specify all the option flags together with a single hyphen (-). For example:
Incorrect example: $ cmd -abc
Correct example: $ cmd -a -b -c
-
Option arguments of an option flag that require arguments cannot be omitted.
-
A blank or tab space must be inserted between an option flag and its argument. For example:
Incorrect example: $ cmd -afile
Correct example: $ cmd -a file
-
The same option flag cannot be specified multiple times. For example:
Incorrect example: $ cmd -a 1 -a 2
-
If an option argument includes a blank space, all the option arguments must be enclosed in double quotation marks (""). For example:
Incorrect example: $ cmd -a file 1
Correct example: $ cmd -a "file 1"