ps -ef | grep hoge | grep -v grepã§ã¯ãªããps -ef | grep [h]ogeã¨ããæ¹ãè¯ããã¨ããäºãç¥ã£ãã çç±ã¯ããã»ã¹ã®ãã©ã¼ã¯ãä¸ã¤æ¸ãããã grepããã»ã¹ã®å¼æ°ã¯[h]ogeã§ããããhogeã«ã¯å¼ã£ããããªãã¨ãããããè¨ããã¦ã¿ãã°ãã®éãã ããä»ã¾ã§æ°ä»ããªãã£ãã
人éã¨ã¦ã§ãã®æªæ¥ï¼æ§ï¼ ãã¦ã§ãã®æ´å²ã¯äººé¡ã®æ´å²ã®ç¹°ãè¿ããã¨ãã観ç¹ããè²ã åå¼·ãã¦ãã¾ãã2014å¹´ã¾ã§ã®äººéã¨ã¦ã§ãã®æªæ¥ã®æ§ããã°ã§ãã èªåãLinuxã¨ã³ã¸ãã¢ã«ãªãããã¦ãå ¥ç¤¾ä¸å¹´ç®ã«ãã£ã¦ããã£ãäºãã¾ã¨ãã¦ãããã¨æããä¸å¹´ç®ã«ã©ãã ããããããåè² ã®å¥ããã¨ãã£ã¦ãéè¨ã§ã¯ãªããããã¯æè¡ãå¦ã¶ã ãã§ã¯ãªãããã£ã±ããããã ãã©ãæä½éãã£ã¦è¯ãã£ããªã¨æãé ç®ãåæããã ãããã¼ãã«ã¯æ¥½ããã£ããããèªã Amazonã¨ãã§è²·ããåºæ¥ãã°åèããããã©ç¡çããªãã¦è¯ãã Just for Fun. Linuxãã©ããã£ã¦ã§ãããããªãããããããã¨æã£ãã®ããåãããä»å¾èªåãLinuxã®ã¨ã³ã¸ãã¢ã¨ãã¦ã©ãããåæ©ã§ä»äºããã¦ããããããèãããã¦ãããæ¬ããã®æ¬ãèªãã°ãèªåãä»äºã§ãªã¼ãã³ã½ã¼ã¹ãæ±ã£ã¦ãããã¨ã«èªä¿¡ãæã¦ãã¨æãã ããªãã§ãã®ä»äºãã¦ã
ã¯ããã« ããã«ã¡ã¯ãPythonçã®æ å¼±ã§ãããã¾ããããã®VPS 512ããåãã¦ããã§ããããã©ã³ãå¤æ´ã«ãªã£ã¦1Gãåãæéã§ä½¿ããããã«ãªãã¾ããããã¾ãªãä¹ãæããã¨1ã¶æç¡æã«ãªãã£ã¦ãããã§ãã¡ããã£ã¨ç§»è¡ãã¦ã¿ã¾ããã ããããã®VPSããå©ç¨ä¸ã®ã客æ§ã®æ°ãã©ã³ä¹ãæãåªéæ½çã®å®æ½ã«ã¤ãã¦ï¼4/5追è¨ï¼ | ãããã¤ã³ã¿ã¼ããã ã¡ãªã¿ã«ãä»æ¥ããä¼ç¤¾å¤ãã¨ãªã£ãæ¹ã ãããã§ã¨ããããã¾ããã¨ããããITç³»ã«å ¥ã£ã¦æè¡è·ãããªãããããã®VPS 1Gãã1å¹´ååãã¦ã次ã®ãããªæ¬ã§Linuxãµã¼ãã®ç®¡çãªããããã¦ã¿ãã®ããããããã¾ããrootãããããã®ã§ããããæ¾é¡ã§ãããã¼ãã¦ã§ã¢ãè²·ãããã§ã¯ãªãã®ã§çã家ã§ãé¢ä¿ãªããµã¼ãã®ç®¡çãã§ãã¦ãã°ãã¼ãã«IPãåå¾ã§ãã¦Webã¢ããªã±ã¼ã·ã§ã³ãå ¬éã§ãã¾ããã俺ããã°ã©ãã ããï¼ãã£ã¦äººãLinuxã®ç°¡åãªç®¡çã
å人çã«ããã¹ããã¡ã¤ã«ãå¦çãããã¨ãå¤ãã®ã§ããï¼ç°¡åãªå¦çãªãUnixã®ã³ãã³ãããã¤ãã¨ãªãã¤ã¬ã¯ãã§çµã¿åããã¦ã§ãããã¨ãå¤ãããã¾ãï¼ä»åã¯ãããªãªãã§ãã¡ãã£ã¨ããã¢ãã¯ãªTIPSãã¾ã¨ãã¦ã¿ã¾ããï¼ sortã³ãã³ãã§ã¿ãåºåãã®ãã¡ã¤ã«ãæå®ããæè¿ç¥ã£ã¦é©æããã®ãããï¼sortã³ãã³ãã§ã¿ãåºåãã®ãã¡ã¤ã«ãæå®ãããã¨ãã¯ï¼Ctrl+v Tabã§ã¿ãæåãå ¥åãã¦ããã®ã§ããï¼$ sort -t $'\t' -k 2,2 ã®ããã«ãã¦ã¿ãåºåãã§2çªç®ã®ãã¼ã§ã½ã¼ããããã¨ãã§ãã¾ãï¼ 1000è¡ããã«ãã¼ã¿ããµã³ããªã³ã°ãã1000è¡ããã«ãã¡ã¤ã«ãããã¼ã¿ããµã³ããªã³ã°ãããã¨ãã¨ãã¯ï¼perlã§ã¯ã³ã©ã¤ãã¼ãæ¸ãã®ãéãããã§ãï¼$ perl -ne '$i++; print unless ($i % 1000)' ææã®ã³ã¼ãã´ã«ãã«ããã¨ããã ãçãã§ã
/bin/shã®å®ä½ã¨ãã¦ã¯ashï¼dashï¼ãbashãkshã®æ¡ç¨ä¾ãå¤ããã©ã®ã·ã§ã«ãBourne shellã®æ©è½ã«å ãã¦ãæ¡å¼µæ©è½ãæä¾ããã FreeBSDãªã©ã®ï¼BSDç³»ã®OSã¯ãashã/bin/shã¨ãã¦ä½¿ã£ã¦ãããashã¯POSIX.1ï¼POSIX:2008ï¼ã«ããããã®BSDæ¡å¼µæ©è½ãåãè¾¼ãã ã·ã§ã«ã ãã¡ã¢ãªããã¾ãæ¶è²»ãããé«éã«åä½ããã»ãã®ã©ã¤ãã©ãªã«ä¾åãããã¨ãå°ãªããå¾ã£ã¦ãrootãã¬ã¹ãã¥ã¼ã·ã¹ãã ã®ã¤ã³ã¿ã©ã¯ãã£ãã·ã§ã«ãã·ã¹ãã ã®ã·ã§ã«ã¹ã¯ãªããã¨ãã£ãå ´é¢ã§æ¡ç¨ããã¦ããã Mac OS Xã¯bashã/bin/shã«æ¡ç¨ãã¦ãããFedoraãopenSUSEãªã©ã®Linuxãã£ã¹ããªãã¥ã¼ã·ã§ã³ãbashã/bin/shã«æ¡ç¨ãã¦ãããLinuxãã£ã¹ããªãã¥ã¼ã·ã§ã³ã§ãUbuntuãDebianãLinux Mintãªã©ã¯ãé«éã«åä½ãã
å°ãåã«ãææã®ãµã¼ã(èªåãã¡ã§ç®¡ç)ã§ãé常æã¯åé¡ãªãã®ã ãã©ãæã HTTPã¬ã¹ãã³ã¹ã§æ°ç§ãããç¾è±¡ãè¦åããããã®ã§ãåç¾ãããã¨ãã«ç®è¦ç¢ºèªã§ã²ãããHTTPãªã¯ã¨ã¹ããéãã¦ã¬ã¤ãã³ã·ã確èªã§ãããhttpingããå©ç¨ãã¾ããã httpingã¯ãæè¬"ping"ã®HTTPçãHTTPãªã¯ã¨ã¹ãã§ãã¼ãªã³ã°ãã¦ãããã³ãã³ãã§ããICMPã¯åãä»ããªããã©HTTPã¯OKããããªãµã¼ãã«ãç£è¦ãªã©ã§ä½¿ãã¾ãã ã¤ã³ã¹ãã¼ã« Ubuntuã§ã¯ãaptã§ã¤ã³ã¹ãã¼ã«ã§ãã¾ãããç°¡åã $ sudo apt-get install httpingããã ãã§ãã ç°¡åãªä½¿ãæ¹ $ httping (URLã¾ãã¯IPã¢ãã¬ã¹)ã§ãå®è¡å¯è½ã§ãã以ä¸ãå®è¡ä¾ã $ httping http://xxx.xxx.xxx.xxx/ PING xxx.xxx.xxx.xxx:80 (http:
å¤ãã®ããã°ã©ãã«ã¨ã£ã¦ã¡ã¢ãªã¢ã¯ã»ã¹ã®é度ãæ°ããªããã°ãªããªãç¶æ³ã¨ããã®ã¯ãã£ãã«ç¡ãããOSãã©ã¤ãã©ãªãã³ã³ãã¤ã©ãRDBMSãªã©ã®å®è£ ãããæã«ã¯æèãããªããã°ãªããªãå ´åãããã IA-32 Intel Architecture Optimization Reference Manual (order number 248966) ãã²ãã¨ãã¨6ç« ã«Optimizing Cache Usageã¨ããã®ãããã ãã¤ã¯ããã³ãã¼ã¯ã®å®çª lmbench http://www.bitmover.com/lmbench/ ã§ã¯ãä¸æ¬¡ãã£ãã·ã¥(L1)ãäºæ¬¡ãã£ãã·ã¥(L2)ã測å®ãã¦ããããä¾ãã°ãããããå©ç¨ãã¦ãããã¼ãã ã¨ãL1ã1.776nsã§L2ã5.3490nsãã¡ã¤ã³ã¡ã¢ãªã¢ã¯ã»ã¹ã139.4nsã§ããã Memory latencies in nanosecond
以åãã³ã³ã½ã¼ã«ã§ã®ä½æ¥ã« GNU Screen ã¯å¿ é ã§ãããããã°ããåãã㯠tmux ã使ã£ã¦ãã¾ããGNU Screen åæ§ãtmux ãã¿ã¼ããã«ãåå²ããããè¤æ°ã®ããã°ã©ã ãå®è¡ããããé常ã«ä¾¿å©ã«å©ç¨ã§ãã¾ããtmux ã«ã¤ãã¦ã¯ä»¥ä¸ã«è©³ããæ¸ãã¦ããã¾ããã Ubuntu Weekly Recipe - 第127åãã¿ã¼ããã«ãã«ããã¬ã¯ãµ tmuxã使ã£ã¦ã¿ãã Manpage of TMUX åºæ¬æ¦å¿µ tmux ã®åºæ¬æ¦å¿µã¯ä¸è¨ãµã¤ãã«è©³ããæ¸ãã¦ããã¾ãããã¡ãã£ã¨ãããããã¦ã¿ã¾ãã tmux å®è¡ä¸ã« tmux ãå¶å¾¡ããã³ãã³ããå®è¡ããã«ã¯ "Ctrl-b"ï¼ä»¥ä¸ããC-bãï¼ã«ç¶ãã¦ã³ãã³ãï¼æå³ããã¢ã«ãã¡ãããï¼ãå ¥åããããããã㯠":"ï¼ã³ãã³ï¼ãå ¥åããå¾ã«ã³ãã³ãåãå ¥åãã¾ãããã® "Ctrl-b" ããããªãã£ãã¯ã¹ã»ãã¼ãã¨å¼ãã§ã
ã·ã§ã«ããã§ãéãå¦çã¨ããã®ã¯ã¡ããã¡ãããã£ã¦ãä¾ãã°è¶ ãã«ããã°ãã¡ã¤ã«ã移åãã¦å§ç¸®ãããã¨ãããä»äºã¯ä¸çä¸ã®ããããå ´æã§æ¯æ¥è¡ããã¦ããããããã³ãã³ãã©ã¤ã³ããã§ã大éã®å§ç¸®æ¸ã¿ãã°ãã¡ã¤ã«ããã£ãºãã«å±éããããã¨ãã ãããã£ã¬ã¯ããªä»¥ä¸ã«åå¨ããããããã®ãã¡ã¤ã«ã(å§ç¸®æ¸ã¿ã®ãã®ãé¤ãã¦)å ¨é¨ bzip2 å§ç¸®ãããï¼ã¨æã£ãããã¨ããããããã£ã¨æ¬¡ã®ããã«ã³ãã³ãã©ã¤ã³ã§å©ãã°ããã $ find . -not -name '*.bz2' | xargs bzip2 ããã§ãã¾ããããªã«åé¡ãªãå¹ççã«bzip2å§ç¸®ãã§ãããã ããããã æè¿ã¯è¤æ°ã³ã¢ã®CPUãæ®éã«è»¢ãã£ã¦ããããã¾ã¤ããHyperThreadingãæå¹ã«ãªã£ã¦ãããã¦OSããè¦ããè«çCPUæ°ããã³ããªããæ®éã«8ã¨ãããããã®ä¸æ¹ã§è¤æ°ã³ã¢ã使ç¨ãã¦ãããã³ãã³ãã¨ããã®ã¯ããã¾ããªãã¦
å æ¥ã諸ã ã®é½åã§é éã«ãããã¹ãç°å¢ã®ãµã¼ã(Linux)ã®ã«ã¼ãã«ãã©ã¡ã¼ã¿ãå¼ã£ã¦ããã®ã§ãããã¡ãã£ã¨è¨å®(ã¡ã¢ãªã¾ãã)ãã¤ãããã¦ãã¾ãï½ãã³ãã³ãå®è¡ã¨ãããforkã§ããªããªã£ã¦ãã¾ã£ã(Cannot allocate memory...)ã ãã§ãshutdownã³ãã³ããå®è¡ã§ããªããªã£ãã®ã§ãç´ããã¨æã£ãã®ã§ãããè²ã å¼ã£ãï¼æéããªãã£ããã¨ããããä¸æ¦OSãåèµ·åãã¡ãããããªãã¨(æ± ããé éã«ãããµã¼ããªã®ã§ãç©ççãªé»æºã¹ã¤ããON/OFFãã§ããªã(å³å¯ã«ã¯åºæ¥ãç°å¢ã§ã¯ãã£ãã®ã§ããããã®ãµã¼ãã¯ããã«å ¥ã£ã¦ãªãã£ãï½)ãã®ã§ãSysRqãã¼ãéããã¨ã«ããã ããæ¹ å°ãç¡çç¢çæã¯ããã¾ããã # echo b > /proc/sysrq-triggerãå®è¡ããã¨ãå¼·å¶çã«ãªãã¼ãããããã¾ãã ãã ãããã¡ã¤ã«ã·ã¹ãã ã®syncã¨ãumount
移転ãã¾ãã http://please-sleep.cou929.nu/20101230.html
ä»ãè¡æçãªäºå®ã社å IRC ã«ä½æ°ç¡ãæµãã¦ãã ããããããç¥ããªãã£ãããã§ç¡é§ã«ããæéãæ³åããã ãã§æ³£ãããã«ãªã£ãã id:sett-4 : (less ã§) shift+Fã§tail -fã¢ã¼ãã«ãCtrl+Cã§è±åº ãããæ¬å½ã©ãã ãä»ã¾ã§ããã®äºã¤ãè¡ãæ¥ãã¦ãããâ¦â¦ orz
æãããping -aãã§é³ãé³´ãï¼ããªã¨ã³ããªã§ãæ¸ããã®ã§ãããä½ããããªã¢ã«ã¿ã¤ã ã«ãã§ãã¯/ç£è¦ãããæã«ãè¦è¦ã ãã§ã¯ãªãã¢ã©ã¼ãé³ãä¸ç·ã«åºãã¨ãã¢ãã¿ãªã³ã°ãããããã®ã§ãã ã¨ããããã§ãLinuxãªããã§ãã¨ãããã°ãã¡ã¤ã«ã®åºåãããããæååãæ¤åºãããéã«ããã¼ãé³ãé³´ããã¯ã³ã©ã¤ãã¼ã¯ä»¥ä¸ã $ tail -f ãã°ãã¡ã¤ã« | sed -e 's/\(対象æåå\)/\1^G/'ä¸è¨ãå®è¡ä¸ã«ãæå®ãã°ãã¡ã¤ã«ã«å¯¾è±¡æååãåºåãããã¨ãã¼ã(Beep)é³ãé³´ãã¯ãã ã^Gã(0x07)ã®é¨åããASCIIã®BELãã£ã©ã¯ã¿ã®ãªãã©ã«ã§ãã $ echo -n "^G"ãªã©ã¨ãã¦ããã°ããã«(ãã¼ãé³)ãé³´ãã¾ãããã ã¡ãªã¿ã«ãã^Gãã¯ã[Ctrl-V] â [Ctrl-G] ã®é ã«å ¥åãã¦ããã°OKãemacsã ã¨[Ctrl-Q] â [Ctrl-G]ã
Gowã¯Windowsç¨ã®ãªã¼ãã³ã½ã¼ã¹ã»ã½ããã¦ã§ã¢ãLinuxãMac OSXã使ã£ã¦ãã¦Windowsã«ç§»ãã¨é常ã«é¢åã«æããã®ãã³ãã³ãã©ã¤ã³ã§ã®æä½ã ãGUIãå½ããåãªã®ã§è´ãæ¹ãªãã®ã ããããã§ãã³ãã³ãã©ã¤ã³ã§ããç¨åº¦ã®ä½æ¥ãåºæ¥ãã¨å©ä¾¿æ§ãé«ãã 130種é¡ãè¶ããã³ãã³ã群 ãã®ãããªæã«ä½¿ã£ã¦ããã®ãCygwinã ããã¬ã¸ã¹ããªãè²ã å¤æ´ãããããããããcygdriveã¨ããæ¸ããæ¹ã好ãã§ã¯ãªãã£ãããã£ã¨ã·ã³ãã«ã«ã³ãã³ãã ãã使ããããªãã°Gowãå©ç¨ãã¦ã¿ããã Gowï¼Gnu On Windowsï¼ã¯ã·ã³ãã«ã«ä½¿ããLinuxã³ãã³ãéã§ãlsãwcãwgetã¨ãã£ããããªä¸è¬çã³ãã³ãã136åã»ã©è©°ãåããã«ãªã£ã¦ãããcvsãscpãputtyã¨ãã£ãããã°ã©ã ãç¨æããã¦ããã®ã§å©ä¾¿æ§ãé«ããvimãããã®ãé¢ç½ãã ãã¹ã«ã追å ãããã®ã§ã³ãã³
Unixã使ã£ã¦ããã¨ï¼/usr ãå ¨ç¶ã¦ã¼ã¶ã¼ç¨ãããªãã©ãè¦ã¦ãã·ã¹ãã ã®ããã®ç©ã ã£ããï¼/etc ãäºå®ä¸è¨å®ãã¡ã¤ã«ç½®ãå ´ã¨ãªã£ã¦ãããï¼/var ããã°ãã¡ã¤ã«ç½®ãå ´ã¨ãªã£ã¦ãããã¨ï¼åãä½ãç¾ãã¦ããªãã¦å¥å¦ãªæè¦ãè¦ããï¼ãã£ã¨åãããããååã®ä»ãæ¹ããã£ãããããªããã¨ï¼Unixã¦ã¼ã¶ã¼ãªãã°èª°ããæãã¯ãã ãï¼ããã«å¯¾ãã解çãredditã«æ稿ããã¦ããï¼ãã®å 容ãé常ã«é¢ç½ãã£ãã®ã§ï¼è»½ã翻訳ãã¦ã¿ãï¼ Anyone know why /var and /etc weren't named something like /etc and /cfg? http://ja.reddit.com/r/linux/comments/cpisy/anyone_know_why_var_and_etc_werent_named/c0ua3mo æã ï¼ã·ã¹ãã 7ã使ããã¦ãã¦U
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}