Bash one-line to view the most 10 used commands


SUBMITTED BY: Guest

DATE: Nov. 21, 2012, 4:59 p.m.

FORMAT: Bash

SIZE: 110 Bytes

HITS: 1147

  1. history | awk '{print $2}' | awk 'BEGIN {FS="|"}{print $1}' | sort | uniq -c | sort -n | tail | sort -nr

comments powered by Disqus