History - terminal tip

With the new meme's fashion:
history|awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head
Did anyone just typed history in terminal?

If you try it, you can see the list of the last commands used.

Instead of pressing upper arrow hundred times to see the command that we used in the previous day, just type history

$ history

Check also the manual:

$ man history

1 comment:

mahasiswa teladan said...

hi..Im college student, thanks for sharing :)