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 »

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%

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 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%

 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%

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

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%

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
128 sudo
42 cd
41 ls
15 hw

9 ./configure

7 tar
7 gedit
6 mv
5 uptime
5 echo

That's my fresh install :)

link

answered 06 Jun '10, 20:18

nocountryman's gravatar image

nocountryman
1
accept rate: 0%

86 cd
80 ls
31 su
21 sbcl
16 whereis
14 chmod
10 ssh
10 exit
9 mysql
link

answered 06 Jun '10, 15:04

Amos's gravatar image

Amos
1321312
accept rate: 0%

     135 mc
     56 make
     35 configure
     33 qemu
     19 rmmod
     19 cls
     13 htop
     12 installpkg
     11 upgradepkg
     10 pkgtool
link

answered 06 Jun '10, 04:55

Hendronicus's gravatar image

Hendronicus
112
accept rate: 0%

What's mc? Mic check?

(07 Jun '10, 20:34) guerda

Midnight Commander - Probably the best text mode file manager ever made.

(15 Jun '10, 19:30) Hendronicus
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