CUI 超入門

2011/9/12   @DevLove
    #devlove0912
      Hiro Yoshioka/YLUG
      hyoshiok@gmail.com
 http://d.hatena.ne.jp/hyoshiok
   http://twitter.com/hyoshiok
 http://www.facebook/hyoshiok     1
Who am I.

   Hiro Yoshioka,
       YLUG Yokohama Linux Users Group, member
       Kernel Code Reading Party, host
       Technical Managing Officer at Rakuten




                                                  2
Today




                   本日
                                                          3

http://www.jaxa.jp/press/2008/04/20080411_kaguya_j.html
Today




                   本日の話
                   はぬるい
                                                          4

http://www.jaxa.jp/press/2008/04/20080411_kaguya_j.html
history を分析する

                5
CUI のコマンドは自分の意志をコンピュータに伝
える機械語である。
自分はコンピュータに何を語っているのか。
自分は日々何をしているのかを知ることが自分の
作業を知る第一歩となる。



                           6
$ history


            7
コマンド名を取り出す Ubuntu の場合




$ history| cut ­d' ' ­f 4




                            8
コマンド利用の頻度を知る


$ history|cut ­d' ' ­f 4|sort|uniq 
­c|head
      1 ./configure
     23 acroread
      2 ascii
      1 bash
      2 cat
    122 cd

                                      9
よく使っているコマンド
$ history|cut ­d' ' ­f 4|sort|uniq 
­c|sort ­nr|head
    317 ls
    122 cd
     64 time
     59 history|cut
     48 soffice
     47 ping
     39 git
     28 man
     24 mv
     23 acroread                      10
パイプを使うだろ w
$ history|cut ­d' ' ­f 4­|sed ­e 
"s/|/n/g"|cut ­d' ' ­f 1|sort|uniq 
­c|sort ­nr|head
    319 ls
    121 cd
     90 head
     85 history
     84 cut
     64 time
     64 less
     57 sort
     47 soffice
     47 ping                         11
12
 プログラマにとって
  の CUI を考えよう
 そしてそれを議論し


  よう
                13

CUI -- How to Analyze History command