Hitachi

uCosminexus Service Platform Reference Guide


2.2 Command Input Format

The following command input format is used:

command-name [argument...]

Each of these items is explained below. Note that $ and cmd denote the command prompt and a command name, respectively.

Command name

Specify the file name of the command to be executed.

To execute a command by specifying a path containing a space, you must enclose the entire path inside double quotation marks ("").

Arguments

Arguments include options. The input formats and specification rules for options are described below.

Option input formats

An option is a character string that begins with a hyphen (-). Two option input formats are available. In one, no option argument is specified; in the other, a single option argument is specified.

Format without option argument specification

$ cmd -option-flag

Format with a single option argument specified

$ cmd -option-flag<space or tab>option-argument

Legend:
  • option-flag

    One alphanumeric character that is case sensitive

  • option-argument

    Argument corresponding to the option flag

Option specification rules
  • Multiple option flags cannot be specified together following a single hyphen (-).

    Incorrect specification example: $ cmd -abc

    Correct specification example: $ cmd -a -b -c

  • The option argument of an option flag that requires the option argument cannot be omitted.

  • A space or tab is required between an option flag and an option argument.

    Incorrect specification example: $ cmd -afile

    Correct specification example: $ cmd -a file

  • The same option flag cannot be specified more than once.

    Incorrect specification example: $ cmd -a 1 -a 2

  • When an option argument contains a space, the entire option argument must be enclosed inside double quotation marks ("").

    Incorrect specification example: $ cmd -a file 1

    Correct specification example: $ cmd -a "file 1"