Please note that LinuxExchange will be shutting down on December 31st, 2016. Visit this thread for additional information and to provide feedback.

9
7

We all use the shell on a daily basis and know, what advantages it has.

I'd like you to post the most used commands you fired up in your shell.

If you use Bash, use this code:

cut -d\   -f 1 ~/.bash_history | sort | uniq -c | sort -rn | head -n 10 | sed 's/.*/    &/g'

If you use ZSH, use this code:

history 1| awk '{print $2}' | sort | uniq -c | sort -rn | head -n10

My Top 10 on a Subversion server is the following:

    135 cd
    113 ll
     73 vim
     59 less
     56 ls
     50 ps
     47 svnadmin
     47 df
     36 rm
     33 top

Now post your own!
Note: Please put 4 spaces in front of every row or click on the "Code" button (labeled with 101010). This makes your listing more readable.

Inspired by reddit.com. This question is marked as community wiki, so I'm not a reputation whore.

I learned you can close a shell without typing exit. Just press Ctrl+D!

This question is marked "community wiki".

asked 02 Jun '10, 13:45

guerda's gravatar image

guerda
5533515
accept rate: 38%

edited 01 Mar '13, 11:03

jeremy's gravatar image

jeremy ♦♦
1.0k1516

I have ls as most used :) I had no doubt.

(02 Jun '10, 14:39) Web31337

May be, but sometimes, there are gems in the top ten. sth. like an alias "gimme" for "sudo apt-get install" .)

(02 Jun '10, 15:28) guerda

If you want to give your fingers some rest with typing cd all the time you can use shopt -s autocd.

(02 Jun '10, 17:44) maszynista

172 yaourt, 160 sudo, 114 ls, 61 cd, 50 find, 37 rdup, 31 wine, 31 rdup-simple, 26 killall :) I didn't realise, I installed (and killed) so many programs lately...

(02 Jun '10, 21:12) martvefun

like the others I would have expected a few more 'sudo' in your list... also, I guess that 'tee' and other piped commands like 'more' or 'less' will be greatly under-represented when using $2 only

(03 Jun '10, 14:51) pmarini

pmari: I don't have sudo rights on this server :)

(03 Jun '10, 15:54) guerda

um... gimme? I like that. Alot LOL!

But I had this prof years ago that would basically do the equivalent of the ol' "Sister Teresa whacking you on the back of the hand w/a ruler", if we aliased anything - kinda broke my spirit in that regard, although I will still alias nano to pico.

(03 Jul '10, 02:45) tallship
showing 5 of 7 show 2 more comments



« previous123next »

I do all my email with mutt, and have an alias for fetchmail with 'get', so get and mutt are way at the top of my list. As for the rest, I spend a lot of time just pottering around.

126 mutt
70 get
62 ls
46 cd
21 vi
19 ssh
15 su
13 telnet
12 sftp
10 mount
link

answered 07 Jun '10, 19:45

codebunny's gravatar image

codebunny
40816
accept rate: 38%

Do you use su for root access or for other users?

(07 Jun '10, 20:33) guerda

I use it for root access for myself. There are no other users.

(11 Jun '10, 23:08) codebunny

My development box:

1668 git
 945 make
 801 E     - script/alias that launch my editor (kwrite)
 740 cd
 551 ls
 466 sudo
 340 cat
 261 ll    - alias ls -lh
 250 K     - script/alias that open a file in my IDE (kate)
 229 rm

Personal laptop (and personal development):

 245 sudo  - admin (that much, I must say that this computer is fairly new, that's perhaps the reason)
 161 cd
  96 ls
  62 E     - script/alias that launch my editor (kwrite)
  61 cat
  54 s     - script that start the command in background and mute its output
  52 ll
  44 git
  41 yum   - install packages on my fedora
  36 ./tbuild  - my personal project of the moment
link

answered 08 Jun '10, 16:14

mildred's gravatar image

mildred
91124
accept rate: 66%

Here is mine:

113 cd
105 ll
60 lf
47 mytar
24 df
19 bzip2
14 rm
14 du
10 find
8 ps

mytar is a script I use daily that takes a directory and tar's into a bz2. :)

link
This answer is marked "community wiki".

answered 09 Jun '10, 19:50

Andy's gravatar image

Andy
2972920
accept rate: 14%

edited 09 Jun '10, 19:53

guerda's gravatar image

guerda
5533515

mytar...

Cheater ;)

(03 Jul '10, 02:40) tallship
 280 sudo
 126 ls
 103 cd
  44 aptitude
  36 su
  31 top
  29 pkill
  26 df
  19 rm
  19 clear
link
This answer is marked "community wiki".

answered 11 Jun '10, 20:57

Alex's gravatar image

Alex
1
accept rate: 0%

1 month old install:

     142 ls
     80 cd
     40 su
     20 exit
     17 mc
     15 rm
     11 gcc
     10 ln
     9 clear
     9 ./a.out
link
This answer is marked "community wiki".

answered 12 Jun '10, 17:20

Olivia's gravatar image

Olivia
1
accept rate: 0%

58 sudo 49 ps 48 ls 39 kill 33 cd 27 which 12 man 12 df 11 java 11 du

link
This answer is marked "community wiki".

answered 15 Jun '10, 22:41

Te%20Amigo's gravatar image

Te Amigo
1
accept rate: 0%

1 cut

Brand new install -lol!!

link
This answer is marked "community wiki".

answered 16 Jun '10, 00:31

nanodiamoand's gravatar image

nanodiamoand
1
accept rate: 0%

Here's a fresh box I just set up a few days ago and haven't had the time to really do much with ;)

 30 ls
 26 dig
 21 cd
 20 ssh
 14 pico
 13 whois
 11 man
 10 pine
 10 ./rsync_slackware-current.sh
 9 ping

Just gotta love that second to the last line there LOL!

link
This answer is marked "community wiki".

answered 03 Jul '10, 02:23

tallship's gravatar image

tallship
390111
accept rate: 20%

These are my stats:

139 su
139 exit
89 ll
65 cd
47 yum
41 espeak
39 cat
34 renrot
31 rpm
16 ping

I see I'm the only one closing my consoles using exit :-)

link
This answer is marked "community wiki".

answered 24 Jul '10, 11:32

Andres's gravatar image

Andres
7615
accept rate: 20%

Can't really say I'm surprised by any of these.

81 man
55 sudo
50 ls
31 cd
17 tmux
17 ./adb
11 nautilus
10 dd
 9 pknfo
 8 apropos

tmux is a screen alternative. adb is an android thing, and pknfo is a bash alias for aptitude show

link
This answer is marked "community wiki".

answered 28 Jul '10, 00:02

Klink-a-dink-dink's gravatar image

Klink-a-dink...
233
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×4

Asked: 02 Jun '10, 13:45

Seen: 7,192 times

Last updated: 16 Jul '13, 03:23

powered by OSQA