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?
history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -rn|head -30
From a stream on Arch Linux boards
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.
lastcomm
, , bash history . , 6 , grep/sed/etc , ?
history