beautypg.com

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

Page 263: Quoting arguments, 263 command line interface syntax

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

Secure Key Manager

263