How to get bash statistics of the history of teams, for example, the most frequently used teams in the last 6 months?

How can I see, for example, what are my most used commands over the past 6 months in bash? Can I store this data somewhere?

+5
source share
3 answers
history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -rn|head -30

From a stream on Arch Linux boards

+9
source

You need a team lastcomm. You will need to install and / or activate the "acct" package - how to do this depends on your operating system.

+1
source

, , bash history . , 6 , grep/sed/etc , ?

0

All Articles