How to find out which are the 10 commands you use the most

In case you are a avid terminal user, surely you'll want to know which commands you use the most. Well, there is a very simple way to find out ...


I opened a terminal and wrote:

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

In my case, the results were the following:

   367 sudo
     67 cd
     grep 43
     42 ls
     42 clear
     19 man
     19 location
     19 ifconfig
     13 scp
     tar 10

And you, what commands do you use the most?

Source: OMG! ubuntu


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   ~ thecompiler said

    I just deleted my history

  2.   Iago Martinez Ocaña said

    344 sudo
    82 top
    81 cd
    43 ls
    25 killall5
    25 exit
    15 sensors
    12 man
    12 kills
    12 gnome shell

  3.   Edgar Brand said

    They can use the HISTIGNORE variable so that the history doesn't save commands like ls, cd or clear.

  4.   pyalberto said

    Very useful, here are mine:

    10
    523 sudo
    71 exit
    59 ls
    37 cd
    HP 22
    20wvdial
    13 vncserver
    12 ps
    8 lsusb
    7 nano