Shell Meme

by Volker Weber

Try this (on one line):

history|awk '{a[$2]++} END{for(i in a){printf "%5d\t%s\n ",a[i],i}}'|sort -rn|head

This is what I get:

86 cd
64 ls
47 ping
46 ssh
33 whois
32 sudo
25 ifconfig
15 smbclient
13 telnet
13 curl

[via jcf]

Comments

10 traceroute
4 telnet
3 ping
3 nslookup
1 /Applications/firefox.app/Contents/MacOS/firefox
1 tracerout
1 realm.battle.net
1 ls
1 history|awk
1 Terence$

Alper Iseri, 2008-04-14

This is what I get:

'history' is not recognized as an internal or external command, operable program or batch file.

Oh, wait, did you say Shell Meme? I thought you said Hell Meme, so I tried it on my work Windows machine...

Rob McDonagh, 2008-04-14

Spot the aliases… ;o)

112 cls
60 cd
57 ls
46 lock
40 lsa
24 sudo
20 killall
18 man
15 curl
14 logout

Ben Poole, 2008-04-14

245 sudo
32 cd
28 ls
21 vim
20 top
15 killall
10 ssh
8 tvtime
8 lspci
8 ./configure

Well, had a few problems with proprietary software recently :-)

Markus Thielmann, 2008-04-15

114 gpg
87 ssh
69 sudo
31 ls
28 ping
27 ps
23 clear
20 cd
10 killall
9 su

well, the gpg-gui opens a Terminal for every action or refresh.

Kai Nehm, 2008-04-15

6 ping
3 cd
2 sudo
2 ls
1 history|awk
1 exit

I don't use terminal much :)

John Keys, 2008-04-15

131 ls
96 svn
95 cd
37 sudo
21 ps
19 man
11 cat
10 more
7 ssh
7 ./prepare.sh

Gerhard Poul, 2008-04-15

71 dig
64 ls
40 cd
20 ssh
17 sudo
11 whois
10 man
10 irssi
10 exit
9 date

Sascha Reissner, 2008-04-15

139 mutt
111 svn
97 cd
94 ls
63 e
57 grep
50 vi
34 latex
31 make
30 less

Jan-Piet Mens, 2008-04-15

158 ls
91 cd
64 svn
40 git
32 rm
20 diff
10 sudo
10 mv
8 find
7 gem

Andreas Scherer, 2008-04-15

86 exit
71 ssh
63 cd
56 ls
40 ping
23 su
17 sudo
13 man
11 java
9 vi

Michael Sedlaczek, 2008-04-15

172 cd
110 ls
49 ./sync-now.sh
26 locate
14 ping
13 sudo
11 pwd
9 chmod
8 open
8 ./standalone-start.sh

Frank Mueller, 2008-04-15

94 cd
34 lt
32 le
20 em
11 tail
9 cp
8 dsz
7 rm
7 ant
6 cat

Kristof Doffing, 2008-04-15

53 su
51 ls
49 cd
29 exit
17 ftp
15 rm
11 more
11 dir
8 ./crashMMS
7 nmap

Now, anybody want to take a shot on interpreting what this tells about me?

Ragnar Schierholz, 2008-04-15

To be fair, since a lot of acitivity is done as su (after all, that's top of the list) I should probably also add the results of the "magic line" when run as su:

134 ls
111 cd
77 nmap
44 more
42 ifconfig
33 ps
29 make
28 exit
26 ./configure
23 locate

Anymore clues or more confusion?

Ragnar Schierholz, 2008-04-15

12 ls
9 cd
7 ping
6 ipfw
6 exit
2 netstat
2 sudo
2 q
2 nslookup
2 /eclipse/Eclipse.app/Contents/MacOS/eclipse

Jason Hook, 2008-04-15

Ragnar, I would say "white male, works in Switzerland, spent some time in Paderborn, and knows that there really is a Kalamazoo". :-)

Volker Weber, 2008-04-15

104 ssh
64 cd
61 ls
41 scp
39 gpg
26 cubetunnel.sh
22 sudo
19 rm
17 vim
11 telnet

Seems like I almost only use this machine to get to other machines...

Dennis Wegner, 2008-04-15

153 vi
102 cd
49 ssh
45 grep
42 tail
27 ls
18 /etc/init.d/apache2
11 /srv/upload.pl
8 w
8 aptitude

Marcus Ahrens, 2008-04-15

190 ssh
159 telnet
127 ping
115 exit
89 host
82 l
69 vi
38 cd
20 su
18 locate

Devid Gockel, 2008-04-15

251 ssh
146 exit
38 ping
10 sudo
9 cd
8 scp
4 less
4 ftp
3 traceroute
3 ifconfig

Stefan Rubner, 2008-04-15

interesting, how other people use their shell. here is mine:

258 sudo
118 exit
46 su
36 ls
34 ping
33 ps
25 pacman
22 dmesg
22 alsamixer
18 nano

Christian Groß, 2008-04-15

In the above list, we now have a top 10:

1149 cd
1017 ls
789 ssh
468 sudo
421 exit
281 vi
271 svn
263 ping
174 telnet
153 gpg

You guys neither know where you are (cd), nor what you have (ls). You tend to travel a lot (ssh), work with too many privileges (sudo) and don't stay very long (exit). However it is very good to see that you backup (svn) your work (vi).

You have huge connectivity problems (ping) and many of you still don't practice safer sex (telnet).

Oh, and you certainly have lots to hide (gpg)!

;-)

Jan-Piet Mens, 2008-04-15

130 ls
95 cd
65 vi
31 tail
26 dig
25 php
19 unzip
16 locate
15 exit
12 /etc/init.d/bind9

Dan Herman, 2008-04-15

Jan-Piet,

I thought this was some test or an attempt to find out more about the readers here...

But I was quite surprised that in the history of the Linux machine I am using today I found two entries with the root password :-(
I then learned that

history -c

deleted my history.

So thank you to vowe for making me aware of this machine's dark history.

Thomas Griesbaum, 2008-04-15

205 curl
109 ls
37 ping
35 cp
25 ssh
25 cd
12 top
4 unrar
4 ifconfig
3 pwd

This is definitely not my average shell usage. The 205 curl entries are from a single day of debugging a web interface.

Seems to me that the bash's default history size is too low for this statistic, at least for me.

Timo Stamm, 2008-04-15

If you run history -c, then spend more than 10 seconds using the UP cursor key trying to rerun history to see if it really had deleted your history, do you deserve a stupidity award?

Chris Lindley, 2008-04-15

1 history|awk


=)

Bent Condith, 2008-04-15

On a MacBook so far.. ;-) But most Shell-Commands are used directly on the servers.. (so not in this list..) ;-)

81 ll
71 cd
55 exit
43 sudo
34 ssh
20 ping
17 mv
15 vi
15 grep
14 top

Johannes Woltermann, 2008-04-15

Wie die Lemminge... tz tz tz

Thomas Gumz, 2008-04-15

@vowe: Well, you are right, but somehow I have the strong feeling that this wasn't deduced from the content of the comments...

@Jan-Piet:
I know where I am, I'm simply not where I want to be (cd). Actually, sometimes I want to know where else I could go (nmap). Also, I know what I had, but I'm curious whether that has changed (ls), maybe by someone who's not with me. I don't have too many privileges, that's why I need to become someone else sometimes to get more privileges (su). (On the side: ever did an nmap scan without root?) How do you know that I don't stay very long? I stayed that long, that I'm still there, even 25 times!)

The thing with the safer... I'm not that sure about that. FTP yes, but how do you know on what link this is? In my case it's actually on a cross-over twisted pair cable of about 50cm length. I'm 100% sure there's nobody sniffing there. Plus, the password you'd get is so damn stupid that you'd be embarrassed you had to sniff it.

And by the way: not playing safe is part of the job (./crashMMS).

Ragnar Schierholz, 2008-04-15

97 ll
87 cd
39 sudo
32 telnet
20 grep
20 cat
19 ifconfig
14 ./SABnzbd.py
12 less
10 rm

Sander Felker, 2008-04-15

144 ssh
71 ls
46 cd
33 ping
21 more
20 nslookup
16 scp
14 tail
13 vi
12 telnet

Bryan McDade, 2008-04-16

100 cd
62 ls
60 git
28 ssh
26 hg
19 mate
17 psql
15 sudo
15 mv
14 rake

Lincoln Stoll, 2008-04-17

Old vowe.net archive pages

I explain difficult concepts in simple ways. For free, and for money. Clue procurement and bullshit detection.

vowe

Paypal vowe