From 78fdc09f8c393cdaf4d171ef8a34fd857bb1ddc0 Mon Sep 17 00:00:00 2001 From: Ozdemircili Date: Mon, 26 Aug 2013 18:29:30 +0200 Subject: [PATCH] Added history cheatsheet --- cheatsheets/history | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cheatsheets/history b/cheatsheets/history index e69de29..90cf809 100644 --- a/cheatsheets/history +++ b/cheatsheets/history @@ -0,0 +1,2 @@ +# To see most used top 10 commands: +history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10 \ No newline at end of file