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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.