history, fc — Process Command History List

Synopsis

sh
/usr/bin/fc [first[last]] 
/usr/bin/fc -l [-nr] [first[last]] 
/usr/bin/fc -s [old=new] [first] 
csh
history [-hr] [n] 
ksh
fc -e - [old=new] [command] 
fc [-e editor] [-nlr] [first [last]] 

Description

Command history creates a numbered list of the most recent commands that you have used. You can display these commands and reuse them as originally issued. You can also change a command by editing it. The syntax and arguments for history commands differ for each shell.

/usr/bin/fc

The fc command lists or edits and reexecutes commands previously entered to an interactive sh.

The command history list references commands by number. The first number in the list is chosen arbitrarily. The ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.