2007ǯ06

ANAAVƥLinux餷

ƥ:

Ana ԵǤαDzȤСɤ˥ץDZǤΤߤʤǸƤޤDz褬ȥȥ줬ɤäȺꤷޤ͡

90ǯ˱վƥӤڤȡƥȤ˥˥Ƥ褦ˤʤޤ(Υߡ˺ǽƳΤϳΤ ȥƥåҶ)Dz褬٤Ǥϻ٤ʤΤǡߥ󥰤פäƸɬפޤκϤޤ˥⾮ޤDzϸʤäޤ

ǿԵ(ܡ777Ȥ)ˤʤȥեǥ벽줿褦ǡDzγϤߤ褦ˤʤꡢˤʤޤȤȤǺǶԵ˾˲αDzǤ뤫Ĵ٤ƤФꤷޤ

ANA ޥ ǥץ

ʤΤȡȥ٥ѥ󤬾äƤ饷ȥƥӤ򸫤褦ȤȤɤǸ褦ʸġ顼äݤ

Υ顼ϹХåʸLinuxߤʡȻפäΤΡΤ褦AVƥWindowsǺäƤ˰㤤ʤȻפǤޤ٤ʤˤƱå

ܥ򤢤ƤȥåήФʤΤо졣

eth0: autonegotiation did not complete in

áϴְ㤤ʤLinuxʤȤDz񤨤ʤ(㤦)顼ɤȾʤȤ⥫ͥѥ˥åǤϤʤΤǡյ濫Υȥ֥äݤ

CAƤǸȡǤϥꥻåȤޤΤ15ʬۤɤԤȤΤȡCArootǥ󤷡򸫤ʤ餵餵ȥ֥褷ΤǤƤȤʤꥻå(֡?)å򲡤ΤǤ礦

ȥ֥뤬äΤϲ桹ΤȤǤʤȯƤ͡ʹƤȡԵϽե饤ȤȤΤȡġANAԵϤɡϤ䤿ԥԥƤ褦˴Τϴְ㤤ǤϤʤä餷

ե饤Ȥ˾뤳Ȥ褿Τϥå(Եֹʹɤä)ȥ֥Ϥ͡AVƥϴ줷ʤäΤΡDzϥͥѤ뤳ȤǸ줿ΤǤޤ

ȤȤLinuxȤƤΤǤ͡ȤäǤ

ANA ɻ ꡼󥻡С

ĴҤ夬äƤ褦

ƥ:

YankeesǯϾβ椬äΤǹԤʤäɡǯϤޤ󥭡ǻ򸫤ƤޤArizona DiamondbacksǤޤ

ʤϽƤȤʤ롢2Ф䤿˵ޤǷ빽ݤǤåȤWebäơΤޤްǤ$60Ȥʡġʤ͵ΥڤˤʤäƤ뤳Ȥ¿Ǥ

⾾⥷ԿǤϤޤ8ϢĴ̣ۡϾʤɡĴҤϾ夬äƤߤ̤Ȥơξ4ǿ3371Ǿä9ϢȾˤƴԤǤ뤫⤷ޤ

ˤƤDiamondbacksμꤹ褯ܤβԤܤꤤäƸɡΤˤ⡣ȹȤʤȥͥ뤹衪äƻҶκʤƤäƤʤǤפ͡

ǥꥫεǤӤäꤹΤͥåȤʤȡܤ1ݡ3ݤ΢ޤǤӤäȥͥåȤϤäƤ뤱ɡꥫϥۡ΢ˤäȤեܡ뤬ХХѵʤǤ櫓

եϤ󤽤ԤäƤƥ֤äƤͤ¿ɡХܡäȸƤȴǤ衪Ȥȡäƥ饤ʡľ뤫͡ºݻθ3¦ǤͤФߤ(󤯤ǸʤФ餯Ǥ)

ʤߤ˥եܡľ夹(ƥӤǸƤȥեθäƤǤ)äͤξ夲ƥҡǤ衣餷͡ꥫ2ʤǤΤ»ͤ1Ȥꤹȥ֡󥰡äƤ夫ܡƤȤꥹ1ʤˤϤޤ

ʪ꤬򤤡ܤӡΥ󥯤򤷤äƤ뤱ɡʵΤϤʤñȢ˴̥ӡȻ楳åפ졢Ƭξ˾äƻäƤޤϤ衢Ǥ⤵ӥӡǤϤʤɡʤߤ˳ʤǤϤäƤʤΤա

ʥå⤢äơäϤΤޤʥܡȢäޤȤɡҤˤ졼ȶ֤Ȥ˸äꤲΤ(˰ʪꤲʤ)ʪϤƤβȡʤʤɿŪʥƥɤ͡

ǺĹ10ʤ餤ΥƤƤ⥪ääƴǷꤲɡȥ饤ǵҤϤȤϤ⤦̤δ餹äMLBǤ󤸤󡢤ߤʴǤ͡()뤳Ȥ⤢ɡޤҤⴷƤ®ǥѥѵʤǥåġ衣

ȤȤǥꥫ˹ԤϤMLB򸫤˹Ԥޤ礦

New York Yankees

Major League Baseball

ܥȥ˹Ԥޤ

СϤɤ˹Ԥä

iPhoneϤޤ줺

ƥ:

V9040164aƤ褤629ȯ䳫ϤiPhoneŹƬ˹ԤŸ餤ϤƤ뤫ȻפޤʤȤ˥塼衼Apple Storeˤ֤ƤޤǤʤߤCMϤ󤬤ήƤޤ

̾CingularAT&TѤä(ä?)ºݤ䤵뤪Źˤ⤽餷ΤϤޤġ

콵꤫顢ŸϤǤ礦ˤ碌ơŹ¤ӻϤͤ⸽줽ǤäϤɡ򶲤ƿǤϻȤʤʤƤȤ뵤⤷ޤ

V9040168a ܻͤо줬ԤޤܤǻȤʤäѤEdySuicaѤǤʤȺä㤦ʡ

 

 

SafariWindowsѲǽ

ƥ:

SafariĴåץȤȤdzȯԸWWDC2007˴ؤƤƻ夬äƤޤ桢о줷ΤWindowsSafariSafariȤMac OS XǻȤ֥饦Ƿ̤®ΤǤ

Ϻޤȼ֥饦ˤʤǡFirefoxˤФȻפäƤޤSteve JobsϤʤȤФͤƤʤ褦ǤʬϤɤƤ뤫ȤȡǯPCưƤץΥᥤϥ֥饦ȤȤ¾οͤ⤭äȤ˰㤤ʤȤʤȥ֥饦ǼƳ򰮤ꤿȻפΤȤ

WindowsFirefoxϤʤꥷ夲ƤϤΤΡϤץꥤ󥹥ȡIE¸ߴϰŪǤޤȤ̤Υ桼Ϥ虜虜̤Υ֥饦򥤥󥹥ȡ뤹ʤɤȤȯۼΤʤǤ͡

WindowsưǤ⥯ʥץiTunesǤĶ뤳Ȥ뤫ܸǤФ顢󥹥ȡ뤷Ƥߤ褦Ȼפޤ

Safari 3 ѥ֥å١

ƥ:

dfޥɤ¹ԤŪ˥ѡƥѾǧΤϡԤȤƤ«Ǥޥɤ¹ԤȤ٤ƤΥѡƥɽޤΤΤɽˤϲΤ褦ˤǤ礦/var/homeꤷǤ

# df -h | grep '\(Filesystem\|/var\|/home\)'
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda2             4.9G  188M  4.4G   5% /home
/dev/hda5             2.9G  1.7G  1.2G  59% /var

/var̤Ĵ٤ˤduޥɤѤޤ

# du -sk /var/* | sort -n
4       /var/mail
8       /var/local
ά
42724   /var/lib
765912  /var/spool
1079816 /var/cache

㤨/var/spool1MB(1,024K)ʾΥե򸫤ĤˤfindޥɤѤޤ

# find /var/spool/ -size +1024k
/var/spool/squid/00/AC/0000AC60
/var/spool/squid/00/8E/00008E92
ά

-execץälsޥɤѤȥեξܺʻɽǤޤ

# find /var/spool/ -size +1024k -exec ls -lh  {} \;
-rw-r--r--  1 squid squid 1.2M Jun  8 20:38 /var/spool/squid/00/AC/0000AC60
-rw-r--r--  1 squid squid 1.9M Jun  4 07:18 /var/spool/squid/00/8E/00008E92
ά

awkޥɤʻѤ뤳Ȥǡ긫䤹뤳Ȥޤ

#  find /var/spool/ -size +1024k -exec ls -lh  {} \; | awk '{ print $9,$5 }' | sort
/var/spool/squid/00/15/0000151E 3.1M
/var/spool/squid/00/34/00003464 1.2M
ά

/tmpǥ쥯ȥˤ2MBʾJPEGեޤȤƺǤ¹ԻˤϽפʥե򤦤ääʤ褦դɬפǤ

# find /tmp -size +2048k -name *.jpg -exec rm -i {} \;
rm: remove regular file `/tmp/apple.jpg'?

ƥ:

ưʲΤ褦ʥե뤬äȤޤˤ٤Ƴĥ .txt դˤϲΤ褦ˤޤfor Ƿ֤ echo sed Ȥ߹碌ǿե̾äƤΤݥȡ` ϥ󥰥륯ȤǤϤʤХå(shift - @)ʤΤա

$ ls
apple  banana  lemon
$ for file in *
> do
> mv -i $file `echo $file | sed 's/$/.txt/'`
> done
$ ls
apple.txt  banana.txt  lemon.txt

ʤߤ˾嵭ޥɤҥȥdzǧȡΤ褦ɽ뤳Ȥʬޤ

$ for file in *; do mv -i $file `echo $file | sed 's/$/.txt/'`; done

ĥ .htm .html ѹˤϤޤ

$ ls
apple.htm  banana.htm  lemon.htm
$ for file in *; do mv -i $file `echo $file | sed 's/.htm/.html/'`; done
$ ls
apple.html  banana.html  lemon.html

ĥ .htm ˤϤޤ

$ ls
apple.htm  banana.htm  lemon.htm
$ for file in *; do mv -i $file `echo $file | sed 's/.htm//'`; done
$ ls
apple  banana  lemon

ƬʸäȤϤޤ

$ ls
apple  banana  lemon
$ for file in *; do mv -i $file `echo $file | sed 's/^/20070610-/'`; done
$ ls
20070610-apple  20070610-banana  20070610-lemon

20072008ѹˤϤޤ

$ ls
20070610-apple  20070610-banana  20070610-lemon
$ for file in *; do mv -i $file `echo $file | sed 's/2007/2008/'`; done
$ ls
20080610-apple  20080610-banana  20080610-lemon

vi(vim)ǥȤޤȤդ

ƥ:

LinuxΥߥʡϤ᤿Фκץޡο̤ͤǤäƤޤWebФˤꡢ餳ޤǤޤȤƥȤդƤƤȸä顢ϰ֤Ǥ¹ԤΤǤäȤɤˤнȤϻפäƤΤΡŪˡϤޤΤʤäϤΤäΤǤġ

Τ褦˹ԤޤǤޤȤƽ뤳ȤʤɤȸޤǤϼºݤˤäƤߤޤ礦

Τ褦ʥƥȤޤޤ٤ƤιԤͭˤ뤿˹Ƭ # Ǥ

#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>

ޤ򵭤ͤ˳ϹԤˤޤ

1_4

Ctrl-v ȤޤΤޤ j Dz˿ʤȲΤ褦˥֥å򤵤ޤ

2

ξ֤ d 򲡤 # ޤȤƺǤޤ

3

# դƤߤޤۤɤƱ褦 Ctrl-v DzΤ褦򤷤ޤ I ( i Ǥʤʸ)򲡤Τޤ # Ϥޤ

4

Esc 򲡤 # ޤȤϤޤ

5

ʤߤ˶򤹤ˤRed HatϤξ vim-enhanced ѥåɬפߤǤ

$ rpm -q vim-enhanced
vim-enhanced-6.3.046-0.40E.7

С󥰤ƾΦ

ƥ:

Bk_logoꥫ˹ԤȤʤγΩǤ虜虜С(Burger King)˹ԤäꤷޤȤΤϤդ̣ɽ褦ˡ̣Ȥ̣ʤβǤ͡

С󥰤Τʤͤ˾Ҳ𤷤Ƥȡפ˥ϥСޥɥʥɤȤɤ㤦ΡǤǸФǤġᥤȤʤåѡ(Whopper)ϥϥС⤬äꡢڤФäꡣΥ֥åѡ򿩤٤ˤ椬ˤʤäޤʤߤ˥ϥС113ࡢޥɥʥɤ45ʤΤǤκ

ܤˤäΤǤޥɥʥɤΰ깶餱Τ2001ǯ3űषƤޤޤ(?)68˺ƾΦ̤ޤ1ŹϿɥɥˤ뤽ǤʤߤˤޤܸΥȤϤʤߤ

򤬤äĤ꿩٤ʤä餼ҹԤäƤߤޤ礦

åƤȥ ξҶƱǿҡֳҥС󥰡ѥפΩ

Burger King

ΡPC

ƥ:

V9040157a ΡPCǺȤƤȼޤ̤Υ˥ȰäơΡPCȤɤƤ̤㤯ʤäƤޤǤ͡äƲФ긫ΤǼôȡ

ȤȤǻϤĤ(CiscoPress)򲼤ߤơ٤ĤƤޤǤ⤢ޤʹΤѤΤΤõƤߤȡ빽ޤ͡٤Ĥ塢ե䤹ΤȤ

ϳ٤ФΤǰ¤Τõ顢ͽ۰ʾˤ꺢ʤΤȯ

ΡPCɡʳĴġ

äȶŪˤϼ夤ʤȻפäɡ椬ȤA4ΡPC(ThinkPad R31)ǤʤϥܡɤեȥåǤꡢ󤬤󥭡áͤܤ⡣

ȤȤǸ꤬ɤ(ʬ)Ҥ

ΥڡΥȥåץ

Ф