16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

head<br />

Messages<br />

Portability<br />

Related Information<br />

cat, sed, tail<br />

v Unknown command-line option<br />

v Missing or incorrect num in an –n option<br />

Possible error messages include:<br />

Badly formed line or character count num<br />

The value num, following a –b, –c, –k, –l, –m, or –n option, was not a valid<br />

number.<br />

P<strong>OS</strong>IX.2, X/Open Portability Guide.<br />

This program originated with Berkeley Software Distribution (BSD) and is a frequent<br />

add-on to <strong>UNIX</strong> systems.<br />

The P<strong>OS</strong>IX.2 standard included only the –n num and –num options, though it<br />

considers the latter obsolete.<br />

history — Display a command history list<br />

Format<br />

Description<br />

history [first[last]]<br />

tcsh shell:<br />

history [-hTr] [n]<br />

history -S|-L|-M [filename]<br />

history -c<br />

history is an alias for fc –l. Like fc –l, history displays the list of commands that<br />

have been input to an interactive shell. This command does not edit or reenter the<br />

commands. If you omit last, history displays all commands from the one indicated<br />

by first through to the previous command entered. If you omit both first and last with<br />

this command, the default command range is the 16 most recently entered<br />

commands.<br />

See “fc — Process a command history list” on page 272 for more information.<br />

history in the tcsh shell<br />

In the tcsh shell, history, used alone, prints the history event list. If n is given only<br />

the n most recent events are printed or saved.<br />

Note: See “tcsh — Invoke a C shell” on page 626 for descriptions of the tcsh shell<br />

variables and commands indicated below.<br />

The tcsh shell history built-in command uses the following options:<br />

v With -h, the history list is printed without leading numbers.<br />

308 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!