Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
IBMã®ãµã¤ãã§ãLearn 10 good UNIX usage habitsãã¨ããè¨äºãçºè¡¨ããã¦ãã¾ããã é¢ç½ãã£ãã®ã§è¦ç´ãã¦ã¿ã¾ããã å¤ãªé¨åãããããç¥ããªãã®ã§è©³ç´°ã¯åæãã覧ä¸ããã åæã¨ã¯ä¸é¨ç°ãªãã¾ãã æ¬ãã¼ã¸ã¹ãã¼ã¹ãªã©ã®é¢ä¿ã§ã³ãã³ãå¼æ°ãªã©ãçãçç¥ãã¦ãã¾ãã åæã®ãµã³ãã«ã³ãã³ããééã£ã¦ãããããã®ã§ãä¿®æ£ãã¦ããé¨åãããã¾ãã åæãä¿®æ£ãã¦ããã®ã¯ãtar.gzãzãªãã·ã§ã³ã使ããªãã§xfvãããã¨ãã¦ããã¨ããã¨ãxargsã«lsã§ã¯ãªãls -lã渡ãã¦ããé¨åã§ãã ãã¨ã説ææãçããã¦ãã¾ã£ã¦ãã¾ãã 1. ãã£ã¬ã¯ããªã®ä½æ è¯ã使ãã³ãã³ãã®ä¸ã¤ã§ããmkdirã§ãããé¢åèã使ãæ¹ããã¦ãã¾ãããï¼ æªãä¾ ~/ $ mkdir a ~/ $ cd a ~/a $ mkdir b ~/a $ cd b ~/a/b/ $ m
ååã®ã¨ã³ããªã§è²ã ã³ã¡ã³ãé ããã®ã§ãèªåã®åå¼·ã®ããã«ã¡ããã¨èª¿ã¹ã¦ã¿ããã³ã¡ã³ããããã¨ããããã¾ãã ã¨ãããããbashãªã³ãªã¼ã®ãã®éä¸ããæ¸ãã¦ããããã¨ãã話ãã ã²ã¨ã¾ããæ示ããã½ã¼ã¹ããã®ã¾ã¾ä½¿ã£ã¦ã¿ã¦ããã£ã¦ã¿ãã declare -r var1=1 echo "var1 = $var1" # var1 = 1 (( var1++ )) # x.sh: line 4: var1: readonly variableããã§ããªãããã®ã·ã§ãã³ã°ãshã¨bashã«å¤ããã ãã $ ./bash_declare.sh var1 = 1 ./bash_declare.sh: line 5: var1: readonly variableããããã $ ./sh_declare.sh var1 = 1 ./sh_declare.sh: line 5: var1: readon
ãµã¼ãã¹çµäºã®ãç¥ãã ãã¤ãYahoo! JAPANã®ãµã¼ãã¹ããå©ç¨ããã ãèª ã«ãããã¨ããããã¾ãã ã客æ§ãã¢ã¯ã»ã¹ããããµã¼ãã¹ã¯æ¬æ¥ã¾ã§ã«ãµã¼ãã¹ãçµäºãããã¾ããã ä»å¾ã¨ãYahoo! JAPANã®ãµã¼ãã¹ããæ顧ãã ããã¾ãããããããããé¡ããããã¾ãã
ã¨ã³ã¸ãã¢ãç¹ã«ã¦ã§ãç³»ã®ãä»äºããã¦ããã¨ãããã« windows ã mac ã好ãã§ã linux ã BSDï¼mac ãä»ã BSD ã§ããããï¼ã§ä½æ¥ããæéãå§åçã«é·ããªãã¾ããããããã大æµã®å ´å X ããªã CUI ãªç°å¢ã§å»¶ã ä½æéãä½æ¥ããããã§ãã ã§ãåã ããããªã®ã§ããããã®æéã®ã»ã¨ãã©ã¯ãããã¹ãå¦çãã«ãã¦ãããããã§ããTSV ãã¡ã¤ã«ãç¹å®ã®é ç®ã§ä¸¦ã¹æ¿ãããããã°ãã¡ã¤ã«ããä½ãã®é ç®ãæãåºãã¦(UA ã¨ã)ãããã種é¡ãã¨ã«ã«ã¦ã³ããã¦ã½ã¼ããã¦åºãããã ãããªè¨³ã§ UNIXç°å¢ã§ perl ã sedãawk çã®æååå¦çãå¾æãªã¹ã¯ãªããè¨èªãè¯ã使ãããã«ãªãã¾ããããã¡ãã£ã¨ãããã®ã§ããã° perl ã§çãã¹ã¯ãªãããæ¸ãã¦ãã¾ãã°OKãªã®ã§ããããããããå ¥ã£ã¦ããã³ãã³ãã使ãã ãã§ãç¸å½ã®äºãã§ãããªãã¨æè¿æã£ãã®ã§ã¡ã¢ã§ã
Linuxã§ããã¹ããã¼ã¿ãæ±ãã¨ãã«ãã³ãã³ãããã¤ãã§ç¹ããã ãã§ãããããªå¦çãã§ãã¦é¢ç½ãã®ã§ããã綺éºã«æ´çããã¦ããªãæ°ãããã®ã§ã¾ã¨ãã¦ã¿ã¾ããããã§ã¯ãcat, paste, join, grep, head, tail, cut, awk, sed, tr, sort, uniq, wc ãåãä¸ãã¾ãã ãã¡ã¤ã«ã縦ã«çµå ãã¡ã¤ã«ã縦ã«çµåãã¾ãã ã³ãã³ã 説æ cat file1 file2 ... file1, file2, ... ã縦ã«çµå cat file | ... ã¨ãã¦ãã¡ã¤ã«ã®ä¸èº«ããã¤ãã«æµãã®ã«ããã使ãã¾ãã ãã¡ã¤ã«ã横ã«çµå ãã¡ã¤ã«ã横ã«çµåãã¾ãããã¾ã使ããªãï¼*1 ã³ãã³ã 説æ paste file1 file2 .. file1, file2, ... ã横ã«çµå join file1 file2 file1 㨠file2
Bashã®ææ³ä¸è¦§ã§ããä»ã®è¨èªãããç¨åº¦ç¥ã£ã¦ãã人ã¯ãããèªãã°Bashã®åºç¤ããã¹ã¿ã¼ãã¦Bashãæ¸ããã¨ãã§ããããã«ãªã£ã¦ãã¾ããç°¡æãªãã¡ã¬ã³ã¹ã¨ãã¦ãå©ç¨ã§ããã¨æãã¾ãã®ã§ãããã¯è¶³ããªãã¨æããã®ãããã°æãã¦ãã ããã 1.åºç¤ echoæ echoæã§ãã echo "Hello world" ã³ã¡ã³ã ã³ã¡ã³ãã§ãã # ã³ã¡ã³ã å¤æ°ã®å®£è¨ å¤æ°ã®å®£è¨ã§ãã # æååå¤æ° declare str # æ°å¤å¤æ° declare -i num # é åå¤æ° declare -a array ã¹ã¯ãªããã®å®è¡ ã¹ã¯ãªãããå®è¡ããã«ã¯ã³ãã³ãã©ã¤ã³ã§æ¬¡ã®ããã«ãã¾ãã bash script.sh åºåçµæããã¡ã¤ã«ã«æ¸ãåºãã«ã¯ãªãã¤ã¬ã¯ãã使ãã¾ãã bash script.sh > file.txt ææ³ãã§ã㯠äºåã«ææ³ãã§ãã¯ãè¡ãã«ã¯ã次ã®ããã«ãã¾ã
ã¯ããã« Windowsã®æä½ã®åºæ¬ã¯GUIã§ããããã¡ã¤ã«æä½ãªã©ãææ©ãè¡ãããã«ã³ãã³ãããã³ããã使ããã¨ãããã¨æãã¾ããæ¬ç¨¿ã§ã¯ãWindowsã®ã³ãã³ãããã³ããããã便å©ã«ä½¿ãããã®ã¡ãã£ã¨ãããã¯ããã¯ã10åç´¹ä»ãã¾ãã 対象èªè Windowsã®ã³ãã³ãããã³ãããããç¨åº¦ä½¿ã£ããã¨ãããæ¹ åä½ç¢ºèªç°å¢ Windows Vista Windows XP ä¸é¨ã®æ©è½ã¯ãWindows XPã§ã¯å©ç¨ã§ãã¾ãããæ¬æå ã§é½åº¦è£è¶³ãã¾ãã ã³ãã³ãããã³ããããã¨ã¯ã¹ããã¼ã©ã«ç§»åãã ã³ãã³ãããã³ããã§ä½æ¥ä¸ã«ãã«ã¬ã³ããã£ã¬ã¯ããªã®ãã¡ã¤ã«ãã¨ã¯ã¹ããã¼ã©ã§æä½ããããªããã¨ãããã¾ãããã¨ãã°ãã«ã¬ã³ããã£ã¬ã¯ããªã«ããããã¤ãã®ãã¡ã¤ã«ãã»ãã®ãã£ã¬ã¯ããªã«ã³ãã¼ããå ´åãåãã¡ã¤ã«ã®ååããã¼ãã¼ãããå ¥åããããããã¦ã¹ã使ã£ãã»ããç°¡åã§ãããããªã¨ãã«ä¾¿å©
ãããã¤ã³ã¹ãã¼ã«ä»£è¡¨ã®ã©ã¤ãããã¯ããã°
GT Nitro: Car Game Drag Raceã¯ãå ¸åçãªã«ã¼ã²ã¼ã ã§ã¯ããã¾ãããããã¯ã¹ãã¼ãããã¯ã¼ãã¹ãã«å ¨éã®ã«ã¼ã¬ã¼ã¹ã²ã¼ã ã§ãããã¬ã¼ãã¯å¿ãã¦ãããã¯ãã©ãã°ã¬ã¼ã¹ããã¤ãã¼ï¼å¤å ¸çãªã¯ã©ã·ãã¯ããæªæ¥çãªãã¼ã¹ãã¾ã§ãæãã¯ã¼ã«ã§éãè»ã¨ã«ã¼ã¬ã¼ã¹ã§ãã¾ããã¹ãã£ãã¯ã·ããããã¹ã¿ã¼ããããããè³¢ã使ã£ã¦ç«¶äºãæã¡ç ´ãå¿ è¦ãããã¾ãããã®ã«ã¼ã¬ã¼ã¹ã²ã¼ã ã¯ãã®ãªã¢ã«ãªç©çå¦ã¨ç´ æ´ãããã°ã©ãã£ãã¯ã¹ã§ããªãã®å¿ãççºããã¾ããããã¾ã§ãã¬ã¤ãããã¨ã®ãªããããªãã®ã§ãã GT Nitroã¯ããªãã¬ãã¯ã¹ã¨ã¿ã¤ãã³ã°ã試ãã«ã¼ã¬ã¼ã¹ã²ã¼ã ã§ããæ£ããç¬éã«ã®ã¢ãã·ããããã¬ã¹ãæãåãè¸ãå¿ è¦ãããã¾ããã¾ãã大ç©ãã¡ã¨ç«¶ãã¤ã¤ãè»ã®ãã¥ã¼ãã³ã°ã¨ã¢ããã°ã¬ã¼ããè¡ããªããã°ãªãã¾ãããä¸çä¸ã§æé«ã®ãã©ã¤ãã¼ã¨è»ã¨ã«ã¼ã¬ã¼ã¹ã«æããã¨ã«ãªãããã©ãã°ã¬ã¼ã¹ã®çå
GT Nitro: Car Game Drag Raceã¯ãå ¸åçãªã«ã¼ã²ã¼ã ã§ã¯ããã¾ãããããã¯ã¹ãã¼ãããã¯ã¼ãã¹ãã«å ¨éã®ã«ã¼ã¬ã¼ã¹ã²ã¼ã ã§ãããã¬ã¼ãã¯å¿ãã¦ãããã¯ãã©ãã°ã¬ã¼ã¹ããã¤ãã¼ï¼å¤å ¸çãªã¯ã©ã·ãã¯ããæªæ¥çãªãã¼ã¹ãã¾ã§ãæãã¯ã¼ã«ã§éãè»ã¨ã«ã¼ã¬ã¼ã¹ã§ãã¾ããã¹ãã£ãã¯ã·ããããã¹ã¿ã¼ããããããè³¢ã使ã£ã¦ç«¶äºãæã¡ç ´ãå¿ è¦ãããã¾ãããã®ã«ã¼ã¬ã¼ã¹ã²ã¼ã ã¯ãã®ãªã¢ã«ãªç©çå¦ã¨ç´ æ´ãããã°ã©ãã£ãã¯ã¹ã§ããªãã®å¿ãççºããã¾ããããã¾ã§ãã¬ã¤ãããã¨ã®ãªããããªãã®ã§ãã GT Nitroã¯ããªãã¬ãã¯ã¹ã¨ã¿ã¤ãã³ã°ã試ãã«ã¼ã¬ã¼ã¹ã²ã¼ã ã§ããæ£ããç¬éã«ã®ã¢ãã·ããããã¬ã¹ãæãåãè¸ãå¿ è¦ãããã¾ããã¾ãã大ç©ãã¡ã¨ç«¶ãã¤ã¤ãè»ã®ãã¥ã¼ãã³ã°ã¨ã¢ããã°ã¬ã¼ããè¡ããªããã°ãªãã¾ãããä¸çä¸ã§æé«ã®ãã©ã¤ãã¼ã¨è»ã¨ã«ã¼ã¬ã¼ã¹ã«æããã¨ã«ãªãããã©ãã°ã¬ã¼ã¹ã®çå
ï¼-1 å®å ¨ãªãªãã¤ã¬ã¯ã·ã§ã³ãå©ç¨ã§ããï¼ æ¨æºå ¥åï¼æ¨æºåºåï¼æ¨æºã¨ã©ã¼åºåï¼ãªãã¤ã¬ã¯ã·ã§ã³ ãã®1 åºåå ã®å¤æ´ãèªç±èªå¨ ï¼ç« ã§ãã¡ã¤ã«ã®å 容ãç»é¢ã«è¡¨ç¤ºããã³ãã³ãã«catã¨ããã®ãããã¾ãããã¨ãããï¼ãã®ã³ãã³ãã次ã®ããã«ãã¦å®è¡ããã¨ï¼ãã¡ã¤ã« orgfile ã®å 容ã§ããåºåã¯ï¼ç»é¢ã§ã¯ãªãï¼ newfile ã¨ãããã£ã¹ã¯ä¸ã®ãã¡ã¤ã«ã«æ ¼ç´ãããã¨ãã§ãã¾ãã % cat orgfile > newfile ã¤ã¾ãï¼é常㯠cpã³ãã³ãã§è¡ãã¯ãã®ãã¡ã¤ã«ã»ã³ãã¼ã catã³ãã³ãã§ãã§ãããã¨ã«ãªãã¾ãã ã¾ãï¼æ¬¡ã®ã³ãã³ããå®è¡ããã¨ï¼ããã©ã¯catã³ãã³ããç°¡æã¨ãã£ã¿ã¨ãã¦ç¨ãããã¨ãã§ãã¾ãã % cat > edfile ããããã¨ï¼ãã¼ãã¼ãããã®å ¥åã¯ãã¹ã¦ edfile ã«åºåããã¾ããã¾ãï¼æ¬¡ã®ã³ãã³ãã®å®è¡ã§ã¯ï¼ããã»ã©ã³ãã¼ãã¦ã§ãã new
ä»åã¯ãååç´¹ä»ãåããªãã£ãrcã¹ã¯ãªããã«ã¤ãã¦è§£èª¬ãããrcã¹ã¯ãªããããçå±ãç解ãã¦ãã¾ãã°å®¹æã«ç®¡çã§ããã管çæ¹æ³ã®ã¤ãã§ã«ãrcã¹ã¯ãªããã®æ¸ãæ¹ããã¹ã¿ã¼ãã¦ãã¾ããã ååã®Linuxèµ·åã®ä»çµã¿ãç解ãããï¼»init/inittab編]ã§ã¯ãã«ã¼ãã«ãinitããã»ã¹ãèµ·åãã¦ããã¾ãã¾ãªå¦çãè¡ããã¨ã説æãã¾ãããä»åã¯ãå種ãµã¼ãã¹ã®èµ·åãè¡ãrcã¹ã¯ãªããã«ã¤ãã¦è¦ã¦ããã¾ãããã rcã¹ã¯ãªããã®ç®¡çã®ä»çµã¿ rcã¹ã¯ãªããã¯ãWindowsã®autoexec.batã«ç¸å½ããã¨èããã°ããã§ãããããã¡ãããrcã¹ã¯ãªããã¨autoexec.batã§ã¯ç°ãªãç¹ãããã¾ããrcã¹ã¯ãªããã¯ã対å¿ããä½æ¥ãã¨ã«1ã¤ãã¤ãè¤æ°ã®ãã¡ã¤ã«ã§æ§æããã¦ãã¾ããã¾ããã©ã³ã¬ãã«ãã¨ã«å®è¡ããrcã¹ã¯ãªãããå¤ãããã¨ãã§ãã¾ãã rcã¹ã¯ãªããã®å®ä½ã¯ã/etc/in
è¦ãã¦ããã¨ããã¾ã«ä¾¿å©ãããããªã"bash"ã®ã³ãã³ãå±¥æ´ã®å±éã«é¢ããæããä¾ã交ããªããã¾ã¨ãã¦ã¿ã¾ããã æå¾ã«ãæ¸ãã¾ããããä»ã«ãããããããã¾ãã®ã§ãè²ã 試ãã¦ã¿ã¦ãã ããã ç´åã«å®è¡ããã³ãã³ããå®è¡ "!!"ã³ãã³ãã§ã1ã¤åã«å®è¡ããã³ãã³ããå度å®è¡ã§ãã¾ãã $ ls -l åè¨ 0 -rw-rw-r-- 1 rx7 rx7 0 2009-02-26 02:20 test $ !! ls -l åè¨ 0 -rw-rw-r-- 1 rx7 rx7 0 2009-02-26 02:20 test nååã«å®è¡ããã³ãã³ããå®è¡ "!-n"ã³ãã³ãã§ãnååã«å®è¡ããã³ãã³ããå度å®è¡ã§ãã¾ãã ä¾ãã°ã以ä¸ã®ä¾ã§ã¯ã"!-2"ã¨ããã¨ã2ååã«å®è¡ããã³ãã³ããå®è¡ãã¦ãã¾ãã $ ls test $ ls -l åè¨ 0 -rw-rw-r-- 1 rx7 rx7
CodeZineç·¨éé¨ã§ã¯ãç¾å ´ã§æ´»èºãããããããã¼ãã¹ã¿ã¼ã«ããããã®ã«ã³ãã¡ã¬ã³ã¹ãDevelopers Summitãããã¨ã³ã¸ãã¢ã®çããã¾ããã¼ã¹ãããããã®ã¤ãã³ããDevelopers Boostããªã©ããã¾ãã¾ãªã«ã³ãã¡ã¬ã³ã¹ãä¼ç»ã»éå¶ãã¦ãã¾ãã
Landscape ããããã¼ã¸ | < åã®æ¥ 2004-03-27 2004-03-28 次ã®æ¥ 2004-03-30 > Landscape - ã¨ã³ã¸ãã¢ã®ã¡ã¢Â 2004-03-28 ã·ã§ã«ã®ãªãã¤ã¬ã¯ãã«ã¾ã¤ãã失æ å½ãµã¤ãå ã Google æ¤ç´¢ã§ãã¾ã * ã·ã§ã«ã®ãªãã¤ã¬ã¯ãã«ã¾ã¤ãã失æãã®è¨äºã®ç´ãªã³ã¯URL: Permlink | ãã®è¨äºãå±ããã«ãã´ãª: [bash] ã·ã§ã«ã®ãªãã¤ã¬ã¯ãã«ã¤ãã¦ã®ç解ãä¸ååãªããã«ãã£ã¦ãã¾ã£ã失æã æ¨æºåºåãæ¨æºã¨ã©ã¼åºåã /dev/null ã«æ¨ã¦ããã¨ããééãã¦ä»¥ä¸ã®ããã«ãã¦ãã¾ããã¨ãã¨ãã©ããã£ããæè¿ã¯ãããªããªã£ããã # ééã $ command 2>&1 >/dev/nullããã 㨠command ã®æ¨æºåºå㯠/dev/null ã«åããããããcommand ã®æ¨æºã¨ã©ã¼åºåã¯ç»é¢ã«åãã¦ã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}