LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 12-03-2010, 08:05 AM   #1
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
history |tr '\011' ' ' |tr -s " "| cut -d' ' -f3 |sort |uniq -c |sort -nbr |head -n10


Let's see what your top 10 mostly used commands are?

My "squeeze" is pretty fresh on this machine:
Code:
      4 history
      3 su
      2 df
      2 cd
      1 which
      1 /usr/sbin/plymouth-set-default-theme
      1 uptime
      1 uname
      1 top
      1 lspci
 
Old 12-03-2010, 08:17 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
For root:
Code:
     91 vi
     77 cd
     40 ll
     26 /home/c/d/Projects/MyBackup.sh/0.4/opt/MyBackup.sh
     25 lrt
     21 vl
     13 bu
     12 rm
     11 grep
     11 <*>
ll is an alias for ls -l, lrt is an alias for ls -lrt, bu is an alias to run a script to make a backup copy of a file, vl is an alias to cd to /var/log and run lrt. As for <*> ???

For personal user:
Code:
     71 man
     33 cd
     29 vi
     27 echo
     22 lrt
     21 ./get_trap_info.sh
     15 cut
     14 grep
     14 cp
     12 make
21 occurrences of ./get_trap_info.sh comes from debugging a script
 
Old 12-03-2010, 09:15 AM   #3
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
Code:
kenny_strawn@kenny-AOA110:~$ history |tr '\011' ' ' |tr -s " "| cut -d' ' -f3 |sort |uniq -c |sort -nbr |head -n10
     72 ls
     21 sudo
     19 bzr
     13 gedit
     11 man
     10 cd
      4 chmod
      3 ssh-keyscan
      3 rm
      3 repo
kenny_strawn@kenny-AOA110:~$
 
Old 12-03-2010, 09:15 AM   #4
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733

Original Poster
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Quote:
Originally Posted by catkin View Post
As for <*> ???
Well I'm not sure...
 
Old 12-03-2010, 09:29 AM   #5
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
[david@archbox ~]$ history |tr '\011' ' ' |tr -s " "| cut -d' ' -f3 |sort |uniq -c |sort -nbr |head -n10
200 cd
53 mplayer
28 ls
27 cat
18 clear
13 preview
13 for
12 rm
12 echo
11 mv

preview is a shell script.

Last edited by dv502; 12-03-2010 at 09:31 AM.
 
Old 12-03-2010, 09:31 AM   #6
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
You can kind of tell what Linux I'm using based on my list (just look at Command #3 that weighs in at 19 uses).
 
Old 12-03-2010, 09:53 AM   #7
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
Yes, I see you like to contribute to ubuntu.

Last edited by dv502; 12-03-2010 at 10:00 AM.
 
Old 12-03-2010, 10:24 AM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Code:
bash-4.1$ history |tr '\011' ' ' |tr -s " "| cut -d' ' -f3 |sort |uniq -c |sort -nbr |head -n10
    121 ffmpeg
     61 printf
     30 cat
     28 su
     26 xenc
     24 make
     23 python
     15 grep
     12 hedgewars
     11 vobcopy
hedgewars is on there because I forgot to make a menu entry for it. I will now.

Code:
bash-4.1# history |tr '\011' ' ' |tr -s " "| cut -d' ' -f3 |sort |uniq -c |sort -nbr |head -n10
    107 gpaco
     91 paco
     25 rm
     18 exit
     17 shutdown
     17 ls
     15 cd
     14 dd
     14 burnit
     11 lilo
 
Old 12-03-2010, 11:03 AM   #9
Squall90
Member
 
Registered: Oct 2009
Distribution: Currently several distros :S
Posts: 148

Rep: Reputation: 29
Code:
christian@tux:~$ history |tr '\011' ' ' |tr -s " "| cut -d' ' -f3 |sort |uniq -c |sort -nbr |head -n10
    104 cd
     80 ls
     62 qemu-system-x86_64
     28 su
     20 ping
     19 vim
     13 ssh
     12 wget
     11 mv
     11 exit
Wow, I didn't notice that I start my VM so often.
 
Old 12-03-2010, 11:37 AM   #10
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by alan_ri View Post
Well I'm not sure...
Got it! I accidentally pasted text from a kernel menuconfig screen at the command line. Good job it doesn't include rm -fr !
 
Old 12-03-2010, 09:21 PM   #11
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Here's my output (from a Debian Sid machine set up to use sudo):

Code:
    103 sudo
     52 ls
     51 aptitude
     33 cd
     31 man
     24 exit
     18 echo
     16 sh
     13 less
     13 killall
And this is the output from the root terminal:

Code:
     31 aptitude
     19 exit
     16 dpkg
     16 cd
     13 ls
     11 nano
      6 cp
      5 reboot
      5 less
      4 update-grub
 
Old 12-04-2010, 08:08 PM   #12
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733

Original Poster
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
I would like to thank you all for your posts. I believe we could all learn something from this thread, I'm just sorry that there isn't more outputs.

I didn't post as root, but it's still pretty new history:
Code:
      8 exit
      6 cat
      4 aptitude
      2 wget
      2 reboot
      1 top
      1 lspci
      1 logout
      1 history
      1 fdisk
 
Old 12-04-2010, 09:01 PM   #13
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180

Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
Non root:
Code:
slackuser@slacker:~$ history |tr '\011' ' ' |tr -s " "| cut -d' ' -f3 |sort |uniq -c |sort -nbr |head -n10
    171 cd
     79 ls
     39 rm
     26 pico
     24 xmms
     22 du
     13 clear
     12 su
     12 mv
     11 exit
slackuser@slacker:~$
For root:
Code:
root@slacker:/home/slackuser# history |tr '\011' ' ' |tr -s " "| cut -d' ' -f3 |sort |uniq -c |sort -nbr |head -n10
     89 exit
     87 cd
     74 ls
     40 mount
     32 pico
     26 umount
     17 upgradepkg
     15 rm
     11 sh
     10 du
root@slacker:/home/slackuser#
I'm a little surprised that ldconfig isn't there, because that is what is followed after upgradepkg, ah well.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] bash - merging strings (perhaps with sort | uniq) cmbouchard Linux - Newbie 4 11-16-2010 11:21 PM
more efficient {min,max} than "sort | {head,tail} -1"? magicbronson Linux - Software 17 07-04-2009 12:26 PM
sort & uniq tostay2003 Programming 3 06-28-2008 06:14 PM
LFS6.3 - Ch5.4.1 "/bin/sh sort not found" error at "make bootstrap" ubyt3m3 Linux From Scratch 2 06-23-2008 12:09 AM
"booting kernel" then nothing. Sort of works after rebooting from Windows gosport1 Ubuntu 11 12-02-2006 10:38 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 10:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration