-
Replay recent executed 15 commands:
fc -l -15
; -
Replay recent executed 15 commands in reverse order:
fc -lr -15
; -
Replay recent executed 15 commands without list number:
fc -ln -15
; -
Replay recent executed commands from "man ...":
fc -ln man
; -
Edit some last commands (from No.14 to No.24) and execute them:
fc -e vi 14 24
;
You can also use "-s" options to modify commands ant execute, see man fc
for details.
- Clear history:
history -c
.