Skip to content

Instantly share code, notes, and snippets.

@numa08
Forked from kubo39/cmd.txt
Last active December 16, 2015 06:08
Show Gist options
  • Save numa08/5388885 to your computer and use it in GitHub Desktop.
Save numa08/5388885 to your computer and use it in GitHub Desktop.
$ cat ~/.bash_history | sed "s|sudo ||g" | cut -d " " -f 1 | sort | uniq -c | sort -n | tail -n 10
37 top
39 dmd
39 ruby
46 make
51 rake
59 rackup
225 ls
268 gem
311 cd
475 git
cat ~/.bash_history | awk '{print $1}' | sort | uniq -c | sort -n | tail -n 10
5 seq
5 source
7 rm
10 yoriko.mydns.jp
11 adb
11 vim
24 exit
38 ls
52 cd
302 git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment