command to show most used command in ur linux system
history |awk '{print$2}'|awk 'BEGIN{FS="|"}{print$1}'|sort|uniq -c|sort -r|head -10
sharing some tech problems and soln
history |awk '{print$2}'|awk 'BEGIN{FS="|"}{print$1}'|sort|uniq -c|sort -r|head -10
Posted by Sajjad at 6:40 pm
sort -n
ReplyDeletenot
sort -r
oops!
ReplyDeletesort -nr
not just -r or -n