Linux Tips and Tricks

Linux Tips and Tricks

Find most commonly used commands in your system

September15

The below one liner is used to show the most commonly commands and its count.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$ history | awk '{a[$2]++;next}END{for (i in a){print i " --> " a[i]}}' | sort -nr -k3
clear --> 25
cal --> 23
history --> 9
./caldate.sh --> 7
date --> 6
ls --> 2
cd --> 2
pwd --> 1
ps --> 1
man --> 1
env --> 1
echo|awk --> 1
echo --> 1
chmod --> 1
cat --> 1
awk --> 1
posted under Uncategorized

Email will not be published

Website example

Your Comment:


Recent Comments

    Categories