C using the command line interface, Shell commands, Command line interface syntax – HP Secure Key Manager User Manual

Page 241: Quoting arguments

Advertising
background image

C Using the Command Line

Interface

Shell commands

The CLI supports a few shell commands that allow you to perform various search, cut, and paste

operations. The following shell commands can be used:

Ctrl-C – clears the prompt.

Ctrl-R – allows you to search backward through the command history.

Ctrl-K – deletes the text from the cursor to the end of the line

Ctrl-U – erases the entire line

Ctrl-Y – pastes text erased by Ctrl-K or Ctrl-U

Ctrl-P – moves backwards through the history.

Command Line Interface syntax

In general, the Command Line Interface separates input into separate arguments by using spaces as

delimiters. Thus, the command
cert request newcertrequest
is treated as three separate arguments:

cert

request

newcertrequest

Quoting arguments

You can include spaces in an argument by quoting the argument. Placing quotes around a string causes

it to be treated as one argument. Thus, the command
cert request “new cert request”
is treated as three separate arguments:

cert

request

new cert request

Single quotes (‘) and double quotes (“) are treated identically and can be used interchangeably. As

such, the command
new request ‘new cert request”
is treated as three separate arguments:

cert

request

new cert request

If there are no spaces between segments of quoted and non–quoted text, the two segments are treated

as one argument. Thus, the command

Secure Key Manager

241

Advertising