Its useful to
be able to see which command you use most often on a Linux box. I add
the following to my .bashrc :
cli-top-10()
{
history | awk '{a[$2]++ } END{for(i in a){print a[i] " "
i}}' | sort -rn | head
}
Example
output :
57
ls
49
cd
26
mv
25
curl
18
wget
17
rm
15
sudo
13
packer
12
docker
12
vim
No comments:
Post a Comment