ã³ã³ã½ã¼ã«ã®ä¸æ¬æä½ãããã å æ¥ãã¯ã©ã¹ã¿ãªã³ã°ãã¦ããAWSä¸ã®WEBãµã¼ãã«ã¤ãã¦ã¡ãã£ã¨ããè¨å®å¤æ´ãå¿ è¦ã«ãªãã ã¡ã¾ã¡ã¾ã¨sshãã°ã¤ã³âviã§ä¿®æ£ãç¹°ãè¿ãã¦ããã®ã§ãããä¿®æ£é »åº¦ã¨ã¤ã³ã¹ã¿ã³ã¹æ°ãå¢ãã¦ãã¦é¢åã«ãªã£ã¦ãã¾ããã ã¯ã©ã¹ã¿ãªã³ã°ããã¤ã³ã¹ã¿ã³ã¹æ°ãï¼ï¼åãããã«ãªããå ¨é¨ã®ãµã¼ãã«ä¿®æ£ãã¡ã¤ã«ãã¢ãããã¼ãããªããããã ã¢ããªã±ã¼ã·ã§ã³ã®åèµ·åãããããæéãä¸æ°ã«ãµãã¦ã©ããããã¨æã£ã¦ããé ã ãããã¢ããªããããããã¨æãã¦ããã£ãã®ããä»åãç´¹ä»ããcsshXã§ãã csshX ãã®ã¢ããªã±ã¼ã·ã§ã³ã¯Macç¨ã®ã¢ããªã±ã¼ã·ã§ã³ã§ãæå®ããè¤æ°ã®ãªã¢ã¼ããã¹ãã«å¯¾ãã¦ä¸æ¬ãã¦ãã°ã¤ã³ãã ãã¹ã¦ã®ç«¯æ«ã«å¯¾ãã¦åãã³ãã³ããå®è¡ã§ãã¾ãã ä»åã¯AWSã®è¤æ°ã®ãµã¼ãã«SSHã§ãã°ã¤ã³ãã¦ããããããããã®æé ããç´¹ä»ãã¾ãã â»åãµã¼ãã«ã¯sshã§ãã§
UEC - UNIXãæ·±ãç解ããã·ã§ã«ããã°ã©ãã³ã°ã極ããã³ãã¥ããã£ãµã¤ã Info ã¤ã³ãã©ã¡ã¼ã·ã§ã³ ã¤ãã³ãæ å ± / ãã¥ã¼ã¹ã»ãã¬ã¹ãªãªã¼ã¹ ã¦ãã±ã¼ã¸ã«ã¤ã㦠ã¦ãã±ã¼ã¸éçºææ³ã¨ã¯ / ã¦ãã±ã¼ã¸ã¨ã³ã¸ãã¢ã¨ã¯ ã¦ãã±ã¼ã¸éçºææ³ æè½æ¤å® / 試é¨æ¥ç¨ ã¦ãã±ã¼ã¸éçºææ³ æè²è¬åº§ / éè¬æ¥ç¨ ã¦ãã±ã¼ã¸éçºææ³ æè²è¬åº§ã¬ãã¼ã åºçç© ã·ã§ã«ã¹ã¯ãªãããã¬ã¸ã³ / 注æ / åæ±æ¸åº / ååã USPåºçæ¸ç± / 注æ / åæ±æ¸åº / ååã Software Design / FreeBSD Expert FreeBSD Weekly Topics / æ¥çµLinux æ¨è¦å³æ¸ ãªã¹ã¹ã¡ã®å®çªæ¸ / ããä¸ç´è ãç®æã UNIXãã®ãã¼åãææ¬ / UNIXã®æåãç¥ã AWK/SEDãç¿å¾ãã / æå ã«ç½®ãããå®ç¨æ¸ å¤å ¸ã楽ãã UECãµã¤ãã«ã¤ã ãµ
(2021/9/29)æ¬è¨äºã¯ãbash,dash,zshã®readã³ãã³ãã¨è¡ãã¨ã®èªã¿è¾¼ã¿å¦ç(while read)ãã¸ç§»åããã
Mar 18, 2007 ãåç¥ã®ããã«ãPOSIX (UNIX, Linux ãªã©) ã§ã¯ bash ãªã©ã®ã·ã§ã«ã¹ã¯ãªããããã¡ã㦠å¦çãèªååã§ãã¾ããããã§ã¯ãã·ã§ã«ã¹ã¯ãªãããé¢æ°è¨èªçã«å³ä»ããã¦éãã§ã¿ã¾ããã bash ã®é¢æ°ã¯å帰çã«å¼ã³åºããã¨ãå¯è½ãªã®ã§ãä¾ãã°ãé層çãªãã£ã¬ã¯ããªæ§é 以ä¸ã® å ¨ã¦ã®ãã¡ã¤ã«ã«åãå¦çãæ½ãããã¨ãã¯ä»¥ä¸ã®ãããªç°¡åãªã¹ã¯ãªãã (for_all) ã§ã§ãã¾ãã ãã®ã¹ã¯ãªãã㧠å¤æ° FULL ãlocal ã§å®£è¨ãã¦ããã®ããã½ã§ã ãããããã¨ã«ãã£ã¦ãå¤æ°ãé¢æ°å ã ãã§æå¹ã«ãªãã®ã§ãé¢æ°ãå帰çã«å®ç¾©ãããã¨ãã§ããããã«ãªãã¾ãã for_all ã®å é¨ã§å®ç¾©ããã¦ããé¢æ° rec ã¯ä»¥ä¸ã®ããã«åä½ãã¾ãã ls ã§è¦ã¤ãã£ããã®ããã¡ã¤ã«ãªã $1 ã§æå®ãããå¦çãè¡ãã ãã£ã¬ã¯ããªãªã rec ãå帰çã«å¼ã³åº
é¢æ°åè¨èªshã®ææ³ä¸è¦§ã§ããä»ã®é¢æ°åè¨èªãããç¨åº¦ç¥ã£ã¦ãã人ããããèªãã°ãshã®åºç¤ããã¹ã¿ã¼ãã¦shãæ¸ããããã«ãªã£ã¦ãã¾ãã以ä¸ãClojureããããæ³å®ãã¦èª¬æãã¾ãã 注æï¼ããã¯åºç¤ææ³æéãã¹ã¿ã¼ããã®ãããã£ã§ããåä½ã¯æ¬ç©ã§ãããæå³ã¯ã³ã¸ãã±ã§ãã REPL shã®å¦çç³»ã¯ãPOSIXæºæ ã®Unixç³»ç°å¢ã§ããã°æ¨æºã§ç¨æããã¦ãã¾ããREPLãèµ·åããã«ã¯ãshãå®è¡ãã¾ãã sh ããã¨ãããã³ããã表示ããã¾ãã $ shã®ã»ãã«ãREPLã«è¡ç·¨éæ©è½ãä»ããbashã»zshã»tcshãªã©ãããã¾ãããããã§ã¯å²æãã¾ãã ãªããREPLã¨ãã¦ä½¿ãã»ãã«ããããããç¨æããã¹ã¯ãªãããshã§å®è¡ãããã¨ãã§ãã¾ãã sh hoge ã·ã¼ã±ã³ã¹ shã®æ±ããã¼ã¿ã¯ããã¹ã¦ãããåä½ï¼ã©ã¤ã³ã¨å¼ã³ã¾ãï¼ã®ãã¼ã¿ã並ãã ã·ã¼ã±ã³ã¹ã§ãããã¨ãã°ãseqé¢æ°ï¼L
ä»æ´æãããããããã¾ãããç´¹ä»ã stressã³ãã³ãã使ãã¨ãCPUãã¡ã¢ãªããã£ã¹ã¯ã«å¯¾ãã¦æå³çã«è² è·ãä¸ãããã¨ãã§ãã¾ãã ã©ãã§ä½¿ããã¨ããã¨ãããé«è² è·æã®ã·ã¹ãã ã®æåãè¦ããå ´åãAutoScalingçã®è² è·ç¶æ³ã«å¿ãã¦èªåã§ã¹ã±ã¼ã«ã¢ãã/ã¢ã¦ããããããã®ä»çµã¿ã®ãã¹ãããããå ´åãé¨å±ãå¯ãã¨ãã«PCã«çºç±ããããå ´åï½ï½ï½ãªã©ã§ä½¿ããã®ããªãã¨ã Stressãã¤ã³ã¹ãã¼ã« CentOSãRedHatã®å ´åã¯ãDAG(rpmforge)ã®ãªãã¸ããªãããã®ã§ãããã®ããã±ã¼ã¸ããã¤ã³ã¹ãã¼ã«ãã¾ãããã DAGãyumã®ãªãã¸ããªã«è¿½å ããå ´åã¯ã以ä¸ãªã³ã¯ãã(CentOS5[x86_64]ç³»ã®2010/05/14æç¹ã®ææ°çã¯)"rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm"ããã¦ã³ãã¼ããã¦ãrpmã¤ã³ã¹ãã¼ã«ãã¾
èªæ¸ææ³æã¯å¤§å«ãã ã£ã@HIROCASTERã§ãããã¾ããã 代表çãªå¤ä¼ã¿ã®å®¿é¡ã¨ãã¦èªæ¸ææ³æãããã¾ãããæè¿ã¯èªæ¸ææ³æã宿é¡ã¨ãã¦åºããã¨ã«ãã£ã¦ç¡çç¢çèªæ¸ãä¿ããã¨ã«ãã£ã¦ãèªæ¸é¢ããå©é·ããã¨ããèããããããã§ãã èªæ¸ææ³æã®ã³ãããµã¤ããããããã§ãã å人çã«ã¯èªæ¸ææ³æã大å«ãã¨ãããã課é¡å³æ¸ã«ããã¦ããæ¬ã«å ¨ãèå³ãç¡ãã£ããããèå³ã®ç¡ãæ¬ãèªã¾ãªããã°ãªããªããã¨ãè¦çã§ããããã¾ããã§ããã ãããã§æè¸å³æ¸ã¯ä¸åèªã¾ãªã大人ã«ãªã£ã¦ãã¾ãã¾ããã ã³ã³ãã¥ã¼ã¿ãããã°ã©ãã³ã°ã«èå³ããã£ãåãå¦çæ代ã«ããããªæ¬ãå¤ä¼ã¿ã«èªãã§ããããããã¡ãã£ã¨äººçå¤ãã£ãããããªãããªã¨æããããªæ¸ç±ãéãã¦ã¿ã¾ããã å ¨ä½çã«ã½ããã¦ã§ã¢ã«é¢ããæ´å²ãææ³ãæåãå£éè¦ãããã®ããã¤ããç¡æã§é²è¦§ã§ããæ¸ç±ãããã¯ã¢ãããã¦ã¿ãã®ã§ããéã®ãªãå¦çã®çãã¾ãã
移転ãã¾ãã http://please-sleep.cou929.nu/20091208.html
ã»ã¨ãã©ã®ã·ã¹ãã 管çè ãçµé¨ãããã¨ãããã¯ãã®ç¶æ³ã¯ãä½ãæªããã¨ãèµ·ãã¦ãã¦ããµã¼ãããã¦ã³ãã¦ãããããããä½ãèµ·ãã¦ããã®ãåãããªããã¨ããã·ãã¥ã¨ã¼ã·ã§ã³ããµã¼ãã管çããã·ã¹ãã ã¢ãããã¹ãã¬ã¼ã¿ã¼ãªã©ã®ç«å ´ã§ããã¨ä½ã大å¤ãã¨ããã¨ãå®éã®è£½åã¨ãã¦åããã¦ããå®ç°å¢ã§ãã®ãããªåé¡ãçºçããå ´åã§ãã ããã§å½¹ã«ç«ã¤ã®ããã®ãªã¼ãã³ã½ã¼ã¹ã½ãããTrouble-Makerãã§ãã Trouble-Maker http://trouble-maker.sourceforge.net/ ã·ã¹ãã 管çè ã®ä»äºãç°¡åã«ãããããå¤ãã®ãã¼ã«ãåå¨ãã¦ãã¾ãããæªç¥ã®ç¶æ³ãçµé¨ãã¦ããå ´åã«ãªãã¨ããã¦ãããããã§ã¯ããã¾ããããã®ä¸é£ã®ã½ããã¦ã§ã¢ç¾¤ãTrouble-Makerãã¯æ¢åã®ä¾¿å©ãªãã¼ã«ã¨ã¯ç°ãªããåé¡ã解決ããã®ã§ã¯ãªãããããåé¡ãå¼ãèµ·ããã¾ããã¤ã³ã¹ãã¼ã«ã
ã¼ãã¯é·å¹´ããããæ¹æ³ã§ç®¡çãã¦ã¾ãããã¨ããã話ã§ããLinuxã§ãã ãã£ã¬ã¯ããªã¬ã¤ã¢ã¦ãæ¦è¦³ ãã¨ãã°ãasoã¨bmdã¨ããååã®ã½ããã¦ã¨ã¢ãã¤ã³ã¹ãã¼ã«ãã¦ããç¶æ ã¯ãããªæã: /usr/local/ ⬠app/ ⬠aso â aso-1.3 â â aso-1.2/ ⬠bin/ ⬠armored â â â â scrum â â â sbin/ â syd â â â share/ â man/ â â aso-1.3/ ⬠bin/ ⬠armored â â â â scrum â â â sbin/ â syd â â â share/ â man/ â â bmd â bmd-2.0 â â bmd-2.0/ ⬠bin/ â tri â â include/ â angle.h â â lib/libsnk.so.2.0.0 â bin/ ⬠armor
muninã¯ãµã¼ãã®ãã¾ãã¾ãªæ å ±ãã°ã©ãåãã¦è¡¨ç¤ºããã½ããã§ãã ã¤ãâã ã¼ãã³âã¨è¨ã£ã¦ãã¾ãã¾ãããâã ãã³âãããããã§ãã ãµã¼ãç£è¦ãã¼ã«ã¨ãããã¨ã§ãããä¾ãã¦è¨ããªããèªåè»ã®ã¡ã¼ã¿ã¼é¡ã®ãããªåãããã¾ããGangliaãCactiãCloudForecastãååé¡ã®ã½ããã«ãªãã¾ãã å ·ä½çã«ã©ã®ãããªå ´é¢ã§éå®ãããã¨è¨ãã¾ãã¨ããµã¼ããå¢ããéã®ã¹ããã¯ãæ¤è¨ããã¨ããã失æããå¯è½æ§ãæ¸ããã¾ãã ã¡ã¢ãªããããæè¼ãããã®ãç¨æããã°ããã®ããCPUã¯ããå°ãå®ããã®ã§ãåé¡ç¡ãã®ããªã©ãè¦ç©ãããã¨ãç°¡åã«ãªãã¾ãã ä¾ï¼ã¡ã¢ãªã48GBæè¼ãããµã¼ãã®å©ç¨ç¶æ³ ã¾ã以åã¯ãä½ãé害ãèµ·ããã¨ãã«ã人éãæåã§ãã¼ã¿ãããéãã¦ããã¨ãããã¨ããããã£ã¦ãã¾ããããMuninãå ¥ãã¦ããã¯ãã®æéã¯æ¸ãããã詳ããæ å ±ãåç §ãã¦åå ã®ç¹å®ã»å¯¾çãè¬ãããã¨
å¾è¼©ã cat README | tr ' ' '\n' | sort | uniq -c | sort -nr | head ã¦ãªãã¯ããã¯ãè¦ã¦ãã³ã£ããããã¿ãããªè©±ããã¦ããã®ã ãããããããã¤ãã©ã¤ã³ãå©ç¨ãããã¯ããã¯ãå¦ãã§ããªãã®ã¯è²ã æãªæ°ãããã ã¦ãããããµã¼ãã§ä¸¸ä¸æ¥ä»¥ä¸ããããããªå¦çãå®è¡ããã®ãããã£ã¡ã ããªã®ã«ãGNU screen ã nohup ãç¥ããªãã£ã¦ã®ã¯ããããæ¯éããããããªæ°ãããã®ã ããã ããæããªããã®ããªãã ã¨ãããã¨ã§ãbash or zsh ã®ã¡ãã£ã¨ãããã¯ããã¯ã¨ã*1ããªãã¤ã¬ã¯ãã¨ããã¤ãã©ã¤ã³ã¯ç¥ã é£ç¶å®è¡ åç´ã«é£ç¶å®è¡ã % foo; barfoo ãæ£å¸¸çµäºããã¨ãã ã bar ãå®è¡ % foo && barfoo ãæ£å¸¸çµäºããªãã£ãã¨ãã ã bar ãå®è¡ % foo || bar&&ã||ã¯æ¬æ¥ã¯è«çæ¼
IDEã®çºå±ãAjaxãªã©ç¾å¨ã®ãããããã«ã¨ã£ã¦GUIã¨ãã¾ããä»ãåããããã¨ã¯éçºå¹çãä¸ããããã§å¿ é ã¨ããããããããªãããã·ã§ã«ã¨ããCUIç°å¢ãæ ¹å¼·ã人æ°ããããGUIã¨éã£ãã«ã¹ã¿ãã¤ãºãã¢ã¸ãªãã£ãå¹çã®è¯ããå¹ åºã対å¿ãã©ãããã©ã¼ã ãªã©ããªãã¦ã¯ãªããªããã®ã ã æ¬é£è¼ã§ã¯ããããCUIç°å¢ã®å å®ãè£ä½ãããã¨ãç®çã¨ãã"zsh"ã«ã¤ãã¦èªã£ã¦ã¿ããã¨ãããããã¤ã¦zshã¯UTF-8ã®æ±ããå¼±ãã¨ããããã£ããããããããã¶ãã¨æ¹åããããã1å¹´ã§zshã¸ç§»è¡ããããç¶æ³ãæ´ã£ã¦ãã¦ãããã¯ãããã«ã¯æªããªãã¿ã¤ãã³ã°ã ã æåã«è»½ãzshã«ã¤ãã¦ç´¹ä»ãã¦ãããã ååã«ã¤ã"z"ã®æåã¯ãã究極ã®ãã¨ããæå³ãããããã¦ãããããã系統ã¨ãã¦ã¯shç³»ã§ãããã¤ã¾ããzshã¯shç³»ã®è¶ é«æ©è½ã·ã§ã«ã¨ãããã ãããLinuxãªã©ã®ã¦ã¼ã¶ã¼ã§ããã°shç³»ã§ãããã¨ã®æå³
OMakeããããOMakeã¯ãã¸ã§ãããã OMakeã¯GNU makeã®ä»£æ¿åã¿ãããªãã®ãªãã ãã©ãæ£ç´ãªã¨ãããã®ãã¼ã«ã®å¼·åãã¯GNU makeã¨æ¯ã¹ãã¨å¤±ç¤¼ãªãããããããããã®ãããã§ããã³ã¼ãä¿®æ£âãã«ãâãããã°âã³ã¼ãä¿®æ£âã»ã»ã»ãã®ã«ã¼ãã®ããã«ãã«ãããä½æ¥ãã»ã¼æ¶ãå»ã£ãã ãã¡ã¤ã«ã®ä¾åé¢ä¿ã®è§£æãã¨ã«ããããããããããã¦ã¼ã¹ã±ã¼ã¹ãªããã®å ´åãæå°éã®æéã§ã»ã¼å®ç§ã«ä¾åé¢ä¿ãç¶²ç¾ ãã¦ããããªã«ãã«ããã¦ãããã ã¨ãããããã¯ãã¿ããå®éã«ä½¿ã£ã¦ã¿ãã±ã¼ã¹ãä¾ã«ã¨ã£ã¦ãã®ãããã®ä¸ç«¯ãç´¹ä»ãããã¨æãã case study è«ãã証æ ã¨ãããã¨ã§ãèªåã OMake ã試ãã«ã¤ãã£ã¦ã¿ãã±ã¼ã¹ãç´¹ä»ãããCè¨èªã§ã¹ã¿ãã£ãã¯ã©ã¤ãã©ãªãä½ã£ã¦ãã¦ãããã«å ãã¦ç°¡åãªãã¹ãããã°ã©ã ãæ¸ãã¦ããã /include/ 以ä¸ã«ããããã¡ã¤ã«ãå ¨é¨ãã /sr
ãããªé¢¨ã«Linuxãã¹ã¯ãããããªã¢ã¼ãæä½ããæ¹æ³ãç´¹ä»ãã¦ã¿ã¾ãã ãªã¢ã¼ãã§Linuxã®GUIç°å¢ãå©ç¨ããã¡ãªããã¨ãã¦ãè¨å®ãã¡ã¤ã«ãªã©ãGUIã§ç·¨éå¯è½ã ã£ãããNetbeansãEclipseãAptanaãªã©ã®IDEãå°å ¥ãã¦ããµã¼ãä¸ã§ç´æ¥éçºããäºãåºæ¥ããã¨è¨ã£ãäºãæãããããï¼å®ç¨çãå¦ãã¯ã¨ããããï¼ ãã¨ãèªç±ã«ä½¿ãããã¹ã¯ãããç°å¢ããããä¸ã«åå¨ããã¨ããã®ã¯ä½ã¨ãªãå¬ããã ï¼ãã®è¨äºã§ã¯Windowsããã®æ¥ç¶ã®ã¿ã«è§¦ãã¦ãã¾ãããã¹ãã¼ããã©ã³ãMacãªã©ããããªã¢ã¼ãæä½å¯è½ã§ããï¼ ä»¥ä¸ãCentOSããµã¼ããWindowsãã¯ã©ã¤ã¢ã³ãã¨ããå ´åã®è¨å®ä¾ã
æè¿ãä¼ç¤¾ã§ã·ã§ã«ã®æä½æ¹æ³ã«ã¤ãã¦æãã¦ããã®ã ãã pgrep / pkill / skill / pidof ã¨ãã£ã 便å©ãªããã»ã¹æä½ç³»ã³ãã³ããç¥ããªã人ãå®ã«å¤ãã ããã»ã¹ã殺ãã¨ããã®ã¯ãããããä½æ¥ãªã®ã§ ä»åã¯ã³ã¬ã«ã¤ãã¦æ¸ãã¦ã¿ãã ãã¨ãã°ããããã®ã³ãã³ããç¥ããªã人ãã æå®ããååã®ããã»ã¹ã kill ããæé ã¯ã ããã 以ä¸ã®ãããªãã®ã«ãªããã¨ã ããã $ ps aux | grep ããã»ã¹å | grep -v 'grep' # ã³ãã³ãã®åºåçµæãã pid ãç®ã§ç¢ºèª 12345 ... .. hoge .. .. $ kill 12345 ãã®ä½æ¥ã¯é常ã«é¢åã§éå±ã ã ãã殺ããªããã°ãªããªãããã»ã¹ããããããã£ãã¨ã㯠ã©ãããã®ã ãããã ãã¾ãã«ãgrep ã³ãã³ãèªèº«ãåè£ã«å«ã¾ãã¦ãã¾ãäºãããã®ã ãã grep -v grep
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}