February 2001
Beginner to intermediate
448 pages
9h 2m
English
Official Description
Re-execute a command.
Syntax
r [command number] | [beginning characters of command]
Options
None
Oddities
The r command is an alias for hist -s.
Example
$ history 1117 paste buzz 1118 paste buzz buzz1 1119 paste -s buzz 1120 ls -l | pg 1121 man pg 1122 pg 1123 man print 1124 print $x 1125 man printf 1126 float f=8.78 1127 printf "Float contains %f\n" $f 1128 printf "Float contains %.2f\n" $f 1129 printf "Float contains %10.2f\n" $f 1130 pwd 1131 print -r - $PWD 1132 history $ r # Re-execute previous command history 1118 paste buzz buzz1 1119 paste -s buzz 1120 ls -l | pg 1121 man pg 1122 pg 1123 man print 1124 print $x 1125 man printf 1126 float f=8.78 1127 printf "Float contains %f\n" $f 1128 printf "Float contains ...
Read now
Unlock full access