RSS feed
<< Migrating from Thunderbird to Mail; the easiest way! | Home | JPublish and AJAX are finally happy together! DWR rulezzzz >>

When is the time to create an alias for the most used commands?

The alias command allows you to create your own names or abbreviations for commands by performing string substitution on the command line according to your specifications. But how do you identify the commands you're using very often? Statistics! Well, sort of ;)

Here is a good way to run some stats:


$ history | awk '{print $2}' | awk 'BEGIN {FS="|"} {print $1}'| sort | uniq -c | sort -r

What do you think?



Very nifty

Thanks for that.

Very nifty

I'll post more of these :)

Add a comment