- 2006-09-24 (日) 11:57
- unix
この記事の所要時間: 約 1分31秒
普段良く使うコマンドって何でしょうか?
history|awk ‘{print $2}’|awk ‘BEGIN {FS=”|”} {print $1}’|sort|uniq -c|sort -r
Review your most oft-used UNIX commands – Lifehacker (2006-09-23)
ローカルサーバで実行したところ以下のような感じでした。
$ history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -r 168 cd 140 ls 109 exit 105 sudo 90 vi 65 dig 49 php 47 psql 22 cat 16 mv 14 make 14 ./configure 13 su 11 svn 11 rm 11 cp 9 find 7 top 7 ab 6 tar 6 tail 6 mkpasswd 6 /home/xxx/php5/bin/php 5 gdb
エントリでは上位のコマンドについてエイリアスを作る事によりキー入力を少なくできるのでは、というTipsが書かれていました。
さらにエントリの元ネタ(UNIX productivity tips)では他にも色々なTipsが紹介されています。
- Newer: MINI KEYBOARD III – R
- Older: CakePHP1.1.8.3544への移行
トラックバック:0
- このエントリーのトラックバックURL
- /blog/2006/09/popular_command.html/trackback
- Listed below are links to weblogs that reference
- よく使うコマンドは? from Shin x blog