Wednesday, November 08, 2006

Bash - the fc command

fc is built-in shell command which you can use to check up on the most recent commands that you executed

So you do

fc -l -to list the last 16 commands that you entered

or

fc -l a -to list commands starting from any command starting with "a"

There are quite a few other options as well - try it out

No comments: