Mega-ZBlog

You are here.

Mega-ZBlog header image

bash history

April 15th, 2008 · 12 Comments · Linux

Well everyone seems to be doing this so I guess it’s my turn.

This is from an SSH shell into this webserver. I’m not booted into Linux on my desktop machine at the moment so this will have to do.

[mzzt@server1 ~]$ uname -a
Linux server1.sorrowind.net 2.6.9-42.EL #1 Sat Aug 12 09:17:58 CDT 2006 i686 athlon i386 GNU/Linux
[mzzt@server1 ~]$ history|awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head
149 cd
127 ls
56 rm
44 ln
42 exit
35 chmod
16 pico
11 mv
8 cp
3 put
[mzzt@server1 ~]$

Tags: ·

12 responses so far ↓

You must log in to post a comment.