„BM author Michael Stutz lists several ways UNIX users can benchmark and increase their productivity at the command line. One is to use the built in history tool to review what programs you use the most, using this command:

history|awk ‚{print $2}’|awk ‚BEGIN {FS=“|“} {print $1}’|sort|uniq -c|sort -r

The result will be a list of commands you’ve issued ordered by frequency. This is a fabulous way to identify what commands could use a shorter alias; for example, if I type ssh mylongservername.com 20 times a day, it’s worth setting up an alias like sshg to get that done in fewer keystrokes. What commands show up the most in your history? Let us know in the comments.“

Review your most oft-used UNIX commands – Lifehacker

Von admin

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert