Fedora Bash History Meme

- - posted in Linux | Comments

I just learned about a Bash History Meme originated at Planet Fedora from a blog I read regularly.

In short, you run the following command in bash, and show your results.

history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head

My results from my home box are as follows;

103 ls
59 cd
52 exit
38 vi
38 firefox
29 for
22 su
18 /opt/hdv/myworkflow.sh
14 ssh
13 diff

Seems I’m unwilling to simply close my terminal window in KDE, but instead have to type “exit”. The “myworkflow.sh” script is a work in progress which I hope to one day post about. It does stuff to help me convert and do post production on video from my HDV camcorder. I’ve been using “diff” to compare original files with modified ones for web updates I’ve been doing for clients.

Here’s the results from my web hosting box;

394 ls
212 cd
89 vi
77 exit
60 du
30 mv
28 rm
20 mkdir
19 pwd
12 cp

Suppose there’s nothing particularly interesting here. I was checking a file upload progress in a very nasty way by calling “du”, what can I say.. I’m lazy.

Comments