November 2005
Beginner to intermediate
528 pages
24h 11m
English
Use fc -l to list history commands, and fc -e to edit them. See the fc built-in command for more information.
$historyDisplay the command history list $fc -l 20 30List commands 20 through 30 $fc -l -5List the last five commands $fc -l catList the last command beginning with cat $fc -ln 5 > doitSave command 5 to file doit $fc -e vi 5 20Edit commands 5 through 20 using vi $fc -e emacsEdit previous command using Emacs $!!Reexecute previous command $!catReexecute last cat command $!cat foo-fileReexecute last command, adding foo-file to the end of the argument list
Read now
Unlock full access