ctrl + R

bang !

sudo ! ⇒ history

timestamp

exit number

![command number]

![relative eg. -2]

![last command start with]

eg:

!-1:0 > last command > argument zero

!-1:^ > last command > first argument

!-1:$ > last command > last argument

!!:1:h > last command > argument one > head

h > head

t > tail

r >

e >

p >

q > qoute

modifier

!!:1:s/png/jpg

bashrc

echo $? ⇒ exit code last command (0 if ok)

nethogs eth0