You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Re: [twitter:@riywo]'s UNIX Command Idioms ps auxwwwwwww number of "w" depends on my mood in that day :D ps auxwwwwwwwww -L netstat -tna / -una / -tnl / -tnap tar xvf tar zxvf / jxvf / Jxvf are boring trailing slash in rsync rsync -av file [file] HOST:dir/ rsync -av dir/ HOST:dir/ tcpdump -i any -nlx strace -s 100 -fFTttt diff -u /path/to/file <(ssh host cat /path/to/file) see also: http://d.haten
Perl Hackers Hub 第6åãUNIXããã°ã©ãã³ã°ã®åæï¼2ï¼ãèªãã§ãããããããããªãã£ãã®ã§ãOperating System ConceptsãMANãªã©ãèªãã§ä¸ããç解ãã¦ã¿ãã Operating System Concepts ä½è : Abraham Silberschatzåºç社/ã¡ã¼ã«ã¼: John Wiley & Sons Ltdçºå£²æ¥: 2009/02/13ã¡ãã£ã¢: ãã¼ãã¼ããã¯è³¼å ¥: 1人 ã¯ãªãã¯: 39åãã®ååãå«ãããã° (4件) ãè¦ã open()ã·ã¹ãã ã³ã¼ã« The open() system call first searches the system-wide open-file table to see if the file is already in use by another process. If it is, a
ãããã¯ã¼ã¯ããã°ã©ã ã¨SIGPIPE ãç§ã®æ¸ãããµã¼ããçªç¶æ»ãããã§ããã©ããã¦ã§ãããããã¨ãã質åãåãããã¨ãããã¾ããããã¯å¤ãã®å ´åãSIGPIPEã®å¦çãå¿ãã¦ãããã¨ãåå ã§ããSIGPIPEã¨ã¯ãåæããããããã¯ã¼ã¯ã½ã±ãããªã©ã«ãã¼ã¿ãæ¸ãè¾¼ããã¨ããéã«éåºãããUNIXã·ã°ãã«ã§ããç¹ã«è¨å®ããªãéããããã»ã¹ã¯SIGPIPEãåãåãã¨å¼·å¶çµäºããã¾ãããã®ãããéä¿¡ãçªç¶åæãããå¯è½æ§ã®ããTCPãµã¼ãã«ããã¦ã¯ãSIGPIPEãç¡è¦ããããè¨å®ããå¿ è¦ãããã¾ãã # ããã©ã«ãã®åä½ï¼SIGPIPEã®å ´åã¯ããã»ã¹ã®çµäºï¼ã«è¨å® $SIG{PIPE} = 'DEFAULT'; # SIGPIPEãç¡è¦ããããè¨å® $SIG{PIPE} = 'IGNORE'; # SIGPIPEãåä¿¡ããéã«å®è¡ãããµãã«ã¼ãã³ãªãã¡ã¬ã³ã¹ã # è¨å® $SIG{PI
å¯ä¸ã®ä¸å¤®ã¬ãã¸ããªã¨è¤æ°ã®checkoutãããã¼ãã¨ãããããã¸ã®å ´åãcheckoutãããã¡ã¤ã«ã®mtimeããã¼ãéã§åãæå»(å½è©²ãã¡ã¤ã«ãcommitãããæå»)ã«ãªã£ã¦ããã¨ãªã«ãã¨é½åãããã§ãã ä¾ãã°ãWebã¢ããªã®ãããã¤ãä¸å¤®ã¬ãã¸ããªããã®checkout(ãupdate)ã§è¡ãå ´åãèãã¾ãããããå 容ãåããªã®ã«è¤æ°ããã¢ããªãµã¼ãã®éã§mtimeãç°ãªã£ã¦ãã¾ã£ã¦ããã¨ã ãµã¼ããã¨ã«ETagãããã®å¤ãç°ãªã£ã¦ãã¾ã â»Apacheã®å ´åãFileEtagãã£ã¬ã¯ãã£ãã調æ´(mtimeãè¦ãªãããã«)ãããã¨ã«ãã£ã¦çµ±ä¸å¯è½ã§ã¯ããã¾ã ãµã¼ãéã§rsyncããããã¨ç¡é§ãªãã¡ã¤ã«ã³ãã¼ãçºçãã å 容ãåãã«ã«ããããããmtimeãç°ãªãããã§ã³ãã¼ãçºçãã â»--size-onlyãªãã·ã§ã³ã§mtimeãè¦ãªãããã«ãã¦åé¿å¯è½ã§ã¯ããã¾ã ã¨
ãJava BlockingQueueã§éã¶ï¼ãã¤ãã©ã¤ã³ãã£ããã§ãã¤ãã©ã¤ã³ã®è©±ãããã®ã§ãæ¬æ¥ã®ãã¤ã¾ãUnixã®ãã¤ãããªãã¤ã¬ã¯ããå°ã調ã¹ã¦ã¿ã¾ããã ãã¾ã«è©±é¡ã¨ãªã some-command >file 2>&1 㨠some-command 2>&1 >fileã®æåã®éãã«ã¤ãã¦ããã·ã§ã«ã¯ã³ãã³ãã©ã¤ã³ãªãã¤ã¬ã¯ãã®æå®ãå³ããå·¦ã«è§£éå®è¡ããããªãã¦èª¬æãè¦ã¤ããã¾ãããããªãã«ãªï¼ ãã¼ã¸ã³ã°ã¯å·¦ããå³ã«ãããã®ã§ããããã¼ãºããªã¼ãéé ã«ãã©ããã¨ã¯ã§ãããã©ããããªãã¨ããå¿ ç¶æ§ã¯ãªãã«ããªããã 次ã®è¨äºãèªãã¨ããå³ããå·¦ããªãã¦äºæ ãããªããã¨ãåããã§ãããã UNIXã®é¨å± æ¤ç´¢: ãªãã¤ã¬ã¯ã ã·ã§ã«ã®ãªãã¤ã¬ã¯ãã«ã¾ã¤ãã失æ ãã¦ããã§ã¯ãè¤éãªãªãã¤ã¬ã¯ãå¦çãå®å ¨ã«ç解ã§ããå¦æ¹ç®ã示ãã¾ããããä¾ãã°ã次ã®ã³ãã³ãã©ã¤ã³ãä½ããããåãã
g:subtech:id:secondlife ããã®ã¨ããã§ã ãã¤ãã§åãåãã¨ã¨ã¹ã±ã¼ãã·ã¼ã±ã³ã¹ãæ¶å»ããã¦ããï¼ã©ããã£ã¦ãã ããã ã¨ããã®ããã£ãã®ã§ãã³ã¡ã³ãæ¬ã« ã©ããã£ã¦å®ç¾ãã¦ããã®ããæ¸ãã¦ããæã«ã ãã§ã«åçãããã¦ããã®ã«æ°ã¥ãã¦ã 俺ã¯ä½ããã£ã¦ãããã ãã¨ã·ã§ãã¯ãåããã®ã§ã³ã³ã«æ¸ãã å®ã¯ãisatty(fd) ã¨ããé¢æ°ãããã æå®ãããã¡ã¤ã«ãã£ã¹ã¯ãªãã¿ã端æ«ãã©ãã調ã¹ãäºãåºæ¥ã¾ãã ã¤ã¾ããåºåå ã端æ«ã ã£ãã¨ããã¨ã¹ã±ã¼ãã·ã¼ã±ã³ã¹ãä»å ãã 端æ«ã§ã¯ãªããå¥ã®ããã°ã©ã ã®æ¨æºå ¥åã«æ¸¡ãããã¨ãã¯ã ã¨ã¹ã±ã¼ãã·ã¼ã±ã³ã¹ãé¤å»ãã¦ãã¾ãã 以ä¸ã¯ã æ¨æºåºåãã¿ã¼ããã«ã ã£ãã¨ãã®ã¿ "this is terminal" ã¨åºåãã¾ãã 1 #include <stdio.h> 2 #include <unistd.h> 3 4 int
16é²æ°ã®ãã¼ãã«ã表示ããã¯ã³ã©ã¤ãã¼ãèãã - ãããã¼ãã¡ã¢ã®ã¾ã¨ãã追è¨ãã¾ãã£ã¦é·ããªã£ãã®ã§æ´çããã ()å ã¯perlã³ãã³ããå«ããæåæ°ã (52)æããªã¼ã½ããã¯ã¹ã«foræãåãã¦æååé£çµããæ¹æ³ perl -le'for$i(@a=(0..9,A..F)){print map"$i$_ ",@a}' (52)foræãå¼ä¿®é£¾åã§å¾ç½®ãããæ¹æ³ perl -le'$i=$_,print map"$i$_ ",@!for@!=(0..9,A..F)' (50)ä»£å ¥å¼ã使ããæ£è¦è¡¨ç¾ã®ãããå¤æ°ãå©ç¨ããæ¹æ³(from ãã¼ã®ãããã) perl -le'/./,print map"$&$_ ",@:for@:=(0..9,A..F)' (50)é åã®åè¦ç´ ã«å¯¾ãprintfã§è¡¨ç¤ºãããæ¹æ³(from id:kazuhookuãã) perl -e'printf"%0
CodeZineç·¨éé¨ã§ã¯ãç¾å ´ã§æ´»èºãããããããã¼ãã¹ã¿ã¼ã«ããããã®ã«ã³ãã¡ã¬ã³ã¹ãDevelopers Summitãããã¨ã³ã¸ãã¢ã®çããã¾ããã¼ã¹ãããããã®ã¤ãã³ããDevelopers Boostããªã©ããã¾ãã¾ãªã«ã³ãã¡ã¬ã³ã¹ãä¼ç»ã»éå¶ãã¦ãã¾ãã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}