¼ø¶È»ñÎÁ/03

Process and Job: ¥×¥í¥»¥¹¤È¥¸¥ç¥Ö, ¥Þ¥ë¥Á¥¿¥¹¥¯¤Ë¤Ä¤¤¤Æ

gui ¤Ç¤Ïľ´¶Åª¤ËÍý²ò¤Ç¤­¤ë¥Þ¥ë¥Á¥¿¥¹¥¯¤â cui ¤Ç¤Ï¤½¤Î¾õÂÖ¤¬¸«¤¨¤Ë¤¯¤¤. ¤½¤³¤Ç¡¤¥æ¡¼¥¶¤Ë¤è¤ë¥×¥í¥»¥¹¤ä¥¸¥ç¥Ö¤ÎÀ©¸æ¤ò³Ø¤Ü¤¦¡¥ ¤Þ¤º¥×¥í¥»¥¹À©¸æ¤È¥¸¥ç¥ÖÀ©¸æ¤òÌÀ³Î¤Ë¶èÊ̤·¤Æ³Ø½¬¤·¡¤Íý²ò¤·¤Æ¤«¤é¤½¤ì¤é¤ò»È¤¤¤³¤Ê¤¹¤³¤È¤òÌÜŪ¤È¤¹¤ë.

¥Þ¥ë¥Á¥¿¥¹¥¯¤È¤Ï
Ʊ»þ¤ËÊ£¿ô¤Î½èÍý¤ò¤³¤Ê¤¹¤³¤È¡¤¤â¤·¤¯¤Ï¤½¤ì¤é¤Î½èÍý.
º£¤äÉáÄ̤˿¨¤ì¤ë OS ¤Î¤Û¤È¤ó¤É¤Ï¥Þ¥ë¥Á¥¿¥¹¥¯¤Ê¥·¥¹¥Æ¥à¤Ç¤¢¤ë¡¥

Process: ¥×¥í¥»¥¹¤È¤Ï

¥×¥í¥»¥¹
°ì¤Ä¤Î¥×¥í¥°¥é¥à¤òÎɤ¯¤ß¤ë¤ÈÍÍ¡¹¤Êµ¡Ç½¤«¤é¹½À®¤µ¤ì¤Æ¤¤¤ë. ¤½¤³¤Ç¡¤¤³¤¦¤·¤¿µ¡Ç½Ëè¤ËÆ°ºî¤òʬΥ¤¹¤ë¤³¤È¤Ç¡¤ÍÍ¡¹¤Ê½èÍý¤òǽΨÎɤ¯¡¤¤«¤Ä¤è¤êʬ¤«¤ê¤ä¤¹¤¯°ÂÁ´¤Ë¹Ô¤Ê¤¦¤³¤È¤¬¤Ç¤­¤ë.
¤³¤Î»þ¤Î¡¤¥³¥ó¥Ô¥å¡¼¥¿¾å¤Ç¼«Î©¤·¤ÆÆ°ºî¤¹¤ëºÇ¾®Ã±°Ì¤ò¥×¥í¥»¥¹¤È¸À¤¦¡¥ ¸À¤¤´¹¤¨¤ë¤È¡¤°ì¤Ä¤Î¥×¥í¥°¥é¥à¤ÏÊ£¿ô¤â¤·¤¯¤Ï°ì¤Ä¤Î¥×¥í¥»¥¹¤«¤é¤Ê¤ë.
¥×¥í¥»¥¹¤ò¤µ¤é¤ËºÙʬ²½¤·¤¿¡Ö¥¹¥ì¥Ã¥É¡×¤È¤¤¤¦³µÇ°¤â¤¢¤ë¤¬ ¼«Î©¤·¤ÆÆ°ºî¤·¤Ê¤¤¤â¤Î¤Ç¤¢¤ê¡¤¤³¤³¤Ç¤Ï¿¨¤ì¤Ê¤¤¡¥
¥×¥í¥»¥¹À©¸æ
unix ¾å¤Ç¤Ï¤Û¤Ü¾ï¤Ë¿¿ô¤Î¥×¥í¥»¥¹¤¬(µ¼»÷Ū¤Ë)Ʊ»þ¤ËÆ°ºî¤·¤Æ¤¤¤ë. ¤³¤Î»þ¡¤¸Ä¡¹¤Î¥×¥í¥»¥¹¤ò°ì»þÄä»ß¤Ê¤¤¤·¤ÏÄä»ß¤·¤¿¤ê¡¤Í¥Àè½ç°Ì¤ò¾å²¼¤µ¤»¤¿¤ê¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¤È²¿¤«¤ÈÊØÍø¤À¡¥ ¼ÂºÝ¤Ë¤½¤Î¤è¤¦¤Ë¥×¥í¥»¥¹¤ÎÆ°ºî¤ò¤½¤Î¾ì¤ÇÊѤ¨¤ë¤³¤È¤ò¥×¥í¥»¥¹À©¸æ¤È¤¤¤¦¡¥
¥×¥í¥»¥¹¤Î¿Æ»Ò´Ø·¸
unix ¤Ç¤Ï¡¤Á´¤Æ¤Î¥×¥í¥»¥¹¤Ï¤Ê¤ó¤é¤«¤Î¥×¥í¥»¥¹¤Ë¤è¤Ã¤ÆÀ¸À®¤µ¤ì¤ë. ¤³¤ì¤ò¡Ö¿Æ»Ò´Ø·¸¡×¤È¸«¤Ê¤·¤Æ¡¤¤â¤È¤Î¥×¥í¥»¥¹¤ò¿·¤·¤¤¥×¥í¥»¥¹¤Î ¡Ö¿Æ¥×¥í¥»¥¹¡×¤È¸Æ¤Ö.
¡Ö»Ò¥×¥í¥»¥¹¡×¤Î¡Ö»àÂνèÍý(¥¾¥ó¥Ó¾õÂÖ¤Î¥×¥í¥»¥¹¤ò¾ÃÌǤµ¤»¤ë¤³¤È)¡×¤ò¤¹¤ë¤Î¤Ï¿Æ¥×¥í¥»¥¹¤ÎÌòÌܤǤ¢¤ë¤¿¤á¡¤ »Ò¥×¥í¥»¥¹¤¬¿Æ¥×¥í¥»¥¹¤è¤ê¤âÀè¤Ë»à¤Ê¤Ê¤±¤ì¤Ð¤¤¤±¤Ê¤¤.
¤è¤Ã¤Æ¡¤²¿¤é¤«¤ÎÍýͳ¤Ë¤è¤ê¿Æ¥×¥í¥»¥¹¤¬Àè¤Ë»à¤ó¤Ç¤·¤Þ¤Ã¤¿¾ì¹ç¡¤ ¥¾¥ó¥Ó¤Ë¤Ê¤Ã¤¿»Ò¥×¥í¥»¥¹¤Î½èÍý¤¬Æñ¤·¤¯¤Ê¤ë¤³¤È¤¬¤¢¤ë.

To know the status of processes: ps command: ¥×¥í¥»¥¹¤Î¾õÂÖ¤òÃΤë: ps ¥³¥Þ¥ó¥É

¥×¥í¥»¥¹¤Î¾õÂÖ¤òÃΤë¤Ë¤Ï¡¤ps ¥³¥Þ¥ó¥É¤òÍѤ¤¤ë.

¥ª¥×¥·¥ç¥ó̵¤·¤À¤È¡Ö¼«Ê¬¤¬¼Â¹Ô¤·¤¿¡×¥×¥í¥»¥¹¤Î¤ß¤¬É½¼¨¤µ¤ì¤ë¡¥

¤ª´«¤á¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¤¥·¥¹¥Æ¥àÁ´ÂÎ¤Î¥×¥í¥»¥¹¤¬¤ï¤«¤ê¡¤¤«¤Ä¡¤ BSD ¤Ç¤â linux ¤Ç¤â cygwin ¤Ç¤âÍ­¸ú¤Ê axu ¤Ç¤¢¤ë*1¡¥ ps␣axu ¤ÈÂǤÁ¹þ¤ó¤Ç¤ß¤è¤¦¡¥ ¤è¤ê¾Ü¤·¤¤¾ðÊó¤òÃΤꤿ¤¤¤È¤­¤Ï¡¤man ps ¤Ç¥ª¥ó¥é¥¤¥ó¥Þ¥Ë¥å¥¢¥ë¤ò¤Ò¤³¤¦¡¥

examples of ps command: ps ¥³¥Þ¥ó¥É¤Î»È¤¤Êý¤Ë¤è¤ë°ã¤¤¤ÎÎã

ps
 PID TTY          TIME CMD
 29452 pts/0    00:00:00 sh
 29475 pts/0    00:00:00 tcsh
 31982 pts/0    00:00:00 ps
ps␣axu
 USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
 root         1  0.0  0.0  1504  352 ?        S     2010   0:01 init [2]
 root         2  0.0  0.0     0    0 ?        SN    2010   0:00 [ksoftirqd/0]
 root         3  0.0  0.0     0    0 ?        S<    2010   0:00 [events/0]
 ¡Äά¡Ä
 daemon   10220  0.0  1.2 16972 11564 ?       S    23:29   0:00 /usr/local/apache2/bin/httpd -k start
 paoon    10221  0.0  0.0  2496  848 pts/0    R+   23:30   0:00 ps axu

ps ¥³¥Þ¥ó¥É¤Ç¸«¤é¤ì¤ë¾ðÊó¤Î¤¦¤Á¡¤½ÅÍפʤâ¤Î¤À¤±²òÀ⤷¤Æ¤ª¤³¤¦.

USER
¥æ¡¼¥¶Ì¾. ¤½¤Î¥×¥í¥»¥¹¤ÎÍøÍѼÔ.
Ãí) Ä̾ï¥æ¡¼¥¶¤Ï¡¤¼«Ê¬¤¬ÍøÍѤ·¤Æ¤¤¤ë¥×¥í¥»¥¹¤·¤«À©¸æ¤Ç¤­¤Ê¤¤.
PID
¥×¥í¥»¥¹ ID. ³Æ¡¹¤Î¥×¥í¥»¥¹¤Ë¸ÇÍ­¤ÊÈÖ¹æ. ¥×¥í¥»¥¹¤ÎÀ©¸æ¤Ï¤³¤Î PID ¤ò´ðËܤȤ·¤Æ¹Ô¤Ê¤ï¤ì¤ë.
%CPU
cpu ÍøÍÑΨ.
%MEM
¥á¥â¥ê»ÈÍÑΨ.
tty
À©¸æüËö̾. ¤½¤Î¥×¥í¥»¥¹¤¬¤É¤Î¡ÖüËö¡×¤Ë°¤·¤Æ¤¤¤ë¤«¤ò¼¨¤¹.
STAT
¥×¥í¥»¥¹¤Î¾õÂÖ.
warning.png ¥È¥é¥Ö¥ë»þ¤ËÌò¤ËΩ¤Ä!
ɽ¼¨Ê¸»ú¤Î°ÕÌ£¤Ï°Ê²¼¤ÎÄ̤ê(¼çÍפʤâ¤Î)¡¥

S ¡Ä ¥×¥í¥»¥¹¤Ï sleep ¾õÂÖ(¥­¡¼¥Ü¡¼¥ÉÆþÎÏ´°Î»ÂÔ¤Á)¤Ç¤¢¤ë.
R ¡Ä ¥×¥í¥»¥¹¤Ï¼Â¹Ô²Äǽ¾õÂÖ.
D ¡Ä ¥×¥í¥»¥¹¤Ï¥Ç¥£¥¹¥¯Æþ½ÐÎÏ´°Î»ÂÔ¤Á¤Ç¤¢¤ë.
T ¡Ä ¥×¥í¥»¥¹¤ÏÄä»ß(stop)Ãæ¤Ç¤¢¤ë.
Z ¡Ä ¥×¥í¥»¥¹¤Ï¥¾¥ó¥Ó(zombie, "»à¤ó¤Ç¤¤¤ë")¤Ç¤¢¤ë.

T ¤ä Z ¤È¤¤¤¦¾õÂ֤ϰ۾ï»öÂÖ¤ò¼¨º¶¤¹¤ë. ¤Þ¤¿¡¤Ä¹»þ´Ö D ¤Î¤Þ¤Þ¤È¤¤¤¦¾ì¹ç¤â¡¤²¿¤«¤ª¤«¤·¤¤²ÄǽÀ­¤¬¹â¤¤.
command
¥³¥Þ¥ó¥É̾¤È°ú¿ô

notes.png ¼Â½¬: ps ¥³¥Þ¥ó¥É¤òÍѤ¤¤Æ¡¤º£¼«Ê¬¤¬¼Â¹Ô¤·¤Æ¤¤¤ëÊ£¿ô¤Î¥×¥í¥»¥¹Á´¤Æ¤Ë¤Ä¤¤¤Æ¡¤¤½¤Î¾õÂÖ¤¬¤É¤¦¤Ê¤Ã¤Æ¤¤¤ë¤«¤­¤Á¤ó¤ÈÄ´¤Ù¤è¡¥

To know the status of processes: top command: ¥×¥í¥»¥¹¤Î¾õÂÖ¤òÃΤë: top ¥³¥Þ¥ó¥É

top ¥³¥Þ¥ó¥É¤Ç¡¤¥×¥í¥»¥¹¤Î¾õÂÖ¤ò¡ÖưŪ¡×¤«¤Ä¡ÖϢ³Ū¡×¤Ë¤ß¤ë¤³¤È¤¬¤Ç¤­¤ë. Ä̾ï¤Ï¡¤CPUÍøÍÑΨ¤Î¹â¤¤½ç¤Ë¥×¥í¥»¥¹¤¬Æ°Åª¤ËʤÙÂؤ¨¤é¤ì¤Æɽ¼¨¤µ¤ì¤ë¤¬¡¤¤³¤Î¡ÖʤÙÂؤ¨¤Ë»È¤¦¹àÌܡפϼ«Í³¤ËÊѤ¨¤ë¤³¤È¤¬½ÐÍè¤ë¡¥

notes.png ¼Â½¬: top ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¡¤µóÆ°¤ò¸«¤Æ¤ß¤ë¡¥¤Þ¤¿¡¤¼Â¹ÔÃæ¤Ë ? ¥­¡¼¤ò²¡¤·¡¤¼Â¹ÔÃæ¤Ë²¿¤¬¤Ç¤­¤ë¤«ÇÄ°®¤»¤è¡¥

Control of processes: launch: ¥×¥í¥»¥¹¤òÀ©¸æ: ¥×¥í¥»¥¹¤òºî¤ë¡¤Æ°ºî¤µ¤»¤ë

¥æ¡¼¥¶¤«¤é¸«¤¿¤È¤­¡¤¥×¥í¥°¥é¥à¤ò¼Â¹Ô¤¹¤ë¤³¤È¤Ï¨¤Á¥×¥í¥»¥¹¤òÀ¸À®¤¹¤ë¤³¤È¤Ç¤¢¤ë. µÕ¤Ë¡¤¥×¥í¥°¥é¥à¤Î¼Â¹Ô¤¬´°Á´¤Ë½ª¤ï¤Ã¤¿¤È¤­¤Ë¤Ï¡¤ ¤½¤Î¥×¥í¥°¥é¥à¤Ë¤è¤Ã¤Æºî¤é¤ì¤¿¥×¥í¥»¥¹¤ÏÁ´¤Æ¾ÃÌǤ·¤¿¤³¤È¤Ë¤Ê¤ë.

Control of processes: change of priority: ¥×¥í¥»¥¹¤òÀ©¸æ: ¥×¥í¥»¥¹¤ÎÍ¥ÀèÅÙ¤òÊѹ¹¤¹¤ë

¥×¥í¥»¥¹¤Ë¤ÏÍ¥Àè½ç°Ì¤¬¤¢¤ê¡¤Í¥Àè½ç°Ì¤¬¹â¤¤Êý¤¬¤è¤êÀè¤Ë¼Â¹Ô¤µ¤ì¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë. ¤³¤Î»ÅÁȤߤˤè¤ê¡¤ÍÍ¡¹¤Ê¥×¥í¥»¥¹¤¬Æ±»þ¤ËÆ°ºî¤·¤Æ¤â¿Í´Ö¤Ë¤È¤Ã¤Æ²÷Ŭ¤Ë°·¤¨¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë.

index of priority: Í¥Àè½ç°Ì¤ò¼¨¤¹»Øɸ

¥¹¥±¥¸¥å¡¼¥ê¥ó¥°Í¥ÀèÅÙ
0 ¡Á 127 ¤Î¿ô»ú¤Ç¡¤¾®¤µ¤¤Êý¤¬Í¥À褵¤ì¤ë¡¥
nice ÃÍ
¤³¤Î¿ô»ú¤È¥×¥í¥»¥¹¤ÎÀ­³Ê¤Ê¤É¤«¤é, ¾å¤ÎÍ¥ÀèÅÙ¤¬·èÄꤵ¤ì¤ë. -20 ¡Á 20 ÄøÅ٤οô»ú¤Ç¡¤¾®¤µ¤¤Êý¤¬Í¥À褵¤ì¤ë¡¥ ¥Ç¥Õ¥©¥ë¥È¤Ï 0.

¤Á¤Ê¤ß¤Ë¡¤¥×¥í¥»¥¹¤ÎÍ¥ÀèÅÙ¤È nice Ãͤò¸«¤ë¤Ë¤Ï¡¤ ps l (¢« ¾®Ê¸»ú¤ÎL(¥¨¥ë)) ¤È¤¹¤ë¤Î¤¬´Êñ¤Ç¤¢¤ë¡¥ ɽ¼¨¥«¥é¥à¤Î¤¦¤Á¡¤PRI ¤¬Í¥ÀèÅÙ(Priority), NI ¤¬ niceÃÍ ¤Ç¤¢¤ë¡¥

change of priority: Í¥Àè½ç°Ì¤òÊѹ¹¤¹¤ë

nice
¥×¥í¥°¥é¥àµ¯Æ°»þ¤Ë nice Ãͤò·èÄꤹ¤ë¥³¥Þ¥ó¥É.
warning.png csh ·Ï¤Î¥·¥§¥ë¤Ë¤Ï nice ¥³¥Þ¥ó¥É¤¬ÁȤ߹þ¤Þ¤ì¤Æ¤¤¤ë¤³¤È¤¬¤¢¤ê¡¤¥·¥¹¥Æ¥à¤Ë´û¤Ë¸ºß¤¹¤ë nice ¥³¥Þ¥ó¥É(/bin/nice)¤Èº®Æ±¤·¤Ê¤¤¤è¤¦¤Ë! ¤É¤Á¤é¤âƯ¤­¤ÏƱ¤¸¤À¤¬»È¤¤Êý¤Ï°Û¤Ê¤ë¤¿¤á¡¤»È¤¦¤È¤­¤Ïɬ¤º¥ª¥ó¥é¥¤¥ó¥Þ¥Ë¥å¥¢¥ë¤ÇÄ´¤Ù¤è.

Gnome-Preferences.png hoge ¤È¤¤¤¦¥×¥í¥°¥é¥à¤ò, Ä̾ï¤è¤ê nice Ãͤò 10 Â礭¤¯¤·¤Æ(= Í¥Àè½ç°Ì¤¬²¼¤¬¤ë)µ¯Æ°¤¹¤ë¤È¤­¤Ï /usr/bin/nice␣hoge ¤È¤¹¤ì¤Ð¤è¤¤(/usr/bin/nice ¥³¥Þ¥ó¥É¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç 10 ¤À¤± niceÃͤò¾å¤²¤ë)¡¥
renice
´û¤ËÆ°¤¤¤Æ¤¤¤ë¥×¥í¥»¥¹¤Î nice Ãͤò¡ÖÁý¤ä¤¹¡×=¡ÖÍ¥Àè½ç°Ì¤ò²¼¤²¤ë¡×.
Æ°ºîÃæ¤Î¥×¥í¥»¥¹¤Î¤»¤¤¤Ç¥³¥ó¥Ô¥å¡¼¥¿¤ÎÈ¿±þ¤¬Æߤ¯¤Ê¤ë¤Ê¤É¤Î¾ì¹ç¤Ë¡¤ ¥×¥í¥»¥¹¤ÎÍ¥ÀèÅÙ¤ò²¼¤²¤Æºî¶È¤ò²÷Ŭ¤Ë¤¹¤ë¡¤Åù¤ÎÌÜŪ¤ÇÍѤ¤¤ë.

warning.png Ä̾ï¥æ¡¼¥¶¤Ï¥×¥í¥°¥é¥à¤ÎÍ¥Àè½ç°Ì¤ò²¼¤²¤ë¤³¤È¤·¤«½ÐÍè¤Ê¤¤¤¬¡¤¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤ÏÍ¥Àè½ç°Ì¤ò¾å¤²¤é¤ì¤ë¡¥

Control of processes: termination: ¥×¥í¥»¥¹¤òÀ©¸æ: ¥×¥í¥»¥¹¤ò½ªÎ»¤µ¤»¤ë

unix ¤Î¥×¥í¥»¥¹¤Ë¤Ï¡Ö¥×¥í¥»¥¹´ÖÄÌ¿®¡×¤È¤¤¤Ã¤Æ¥×¥í¥»¥¹Æ±»Î¤¬ÄÌ¿®¤¹¤ë»ÅÁȤߤ¬È÷¤ï¤Ã¤Æ¤¤¤ë. ¤³¤Î¥×¥í¥»¥¹´ÖÄÌ¿®¤Î¤¦¤Á¡¤¥á¥Ã¥»¡¼¥¸¤òÅÁ¤¨¤ë¤À¤±¤Îµ¡Ç½¤ò»ý¤Ä¤â¤Î¤È¤·¤Æ¡Ö¥·¥°¥Ê¥ë¡×¤¬¤¢¤ë. ¤³¤Î¥·¥°¥Ê¥ë¤ò¥×¥í¥»¥¹°¸¤ËÁ÷¤ê¤Ä¤±¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¤¥×¥í¥»¥¹¤ò°ì»þÄä»ß¤µ¤»¤¿¤ê¡¤ºÆµ¯Æ°¤µ¤»¤¿¤ê¡¤½ªÎ»¤µ¤»¤¿¤ê¤Ç¤­¤ë*2. ¤¿¤À¤·¡¤¼«Ê¬¤ÎÍøÍѤ·¤Æ¤¤¤ë¥×¥í¥»¥¹¤Ë¤·¤«¥·¥°¥Ê¥ë¤ÏÁ÷¤ì¤Ê¤¤¡¥

¥·¥°¥Ê¥ë¤ò¥×¥í¥»¥¹¤ËÁ÷¤ê¤Ä¤±¤ë¤Ë¤Ï¡¤
    kill␣-¥·¥°¥Ê¥ë␣pid
¤È¤¹¤ë. ¥·¥°¥Ê¥ë¤Ï¸å½Ò¤¹¤ë¡Ö¥·¥°¥Ê¥ë̾¡×¤«¡Ö¥·¥°¥Ê¥ëÈÖ¹æ¡×¤Ç»ØÄꤹ¤ë.
¥·¥°¥Ê¥ë¤ò¾Êά¤¹¤ë¤È TERM (=15) ¤ò»ØÄꤷ¤¿¤³¤È¤Ë¤Ê¤ë.

¥·¥°¥Ê¥ë¤Î¼ïÎà¤Ï°Ê²¼¤ÎÄ̤ꡥ

¥·¥°¥Ê¥ëÈֹ楷¥°¥Ê¥ë̾¥·¥°¥Ê¥ë¤Î°ÕÌ£
15TERMTERMinate. ½ªÎ». kill ¥³¥Þ¥ó¥É¤Î¥Ç¥Õ¥©¥ë¥È.
9KILLKILL. ¡Ö¶¯À©¡×½ªÎ». ¤³¤Î¥·¥°¥Ê¥ë¤ò¼õ¤±¼è¤Ã¤¿¥×¥í¥»¥¹¤Ï½ªÎ»¤¹¤ë¤³¤È¤Ë¤Ê¤Ã¤Æ¤¤¤ë.
2INTINTerrupt. üËö¤«¤é³ä¤ê¹þ¤ß(CTRL-c)¤ò¼õ¤±¤¿¡¤¤È¤¤¤¦°ÕÌ£. ¤³¤Î¥·¥°¥Ê¥ë¤ò¼õ¤±¤¿¥×¥í¥»¥¹¤Ï½ªÎ»¤¹¤ë¡¥
3QUITQUIT. üËö¤«¤éÃæÃǽªÎ»(CTRL-\)¤ò¼õ¤±¤¿¡¤¤È¤¤¤¦°ÕÌ£. ¤³¤Î¥·¥°¥Ê¥ë¤ò¼õ¤±¤ë¤È¥×¥í¥»¥¹¤Ï(core ¤òÅǤ¤¤Æ)»à¤Ì.
18TSTPTerminalSToP. üËö¤«¤éÄä»ß(CTRL-z)¤ò¼õ¤±¤¿¡¤¤È¤¤¤¦°ÕÌ£. ¤³¤Î¥·¥°¥Ê¥ë¤ò¼õ¤±¤ë¤È¥×¥í¥»¥¹¤Ï°ì»þÄä»ß¤¹¤ë.
17STOPSTOP. ¶¯À©°ì»þÄä»ß. ¤³¤Î¥·¥°¥Ê¥ë¤ò¼õ¤±¤ë¤È¥×¥í¥»¥¹¤Ïɬ¤º°ì»þÄä»ß¤¹¤ë.
19CONTCONTinue. Ää»ß¾õÂÖ¤Î¥×¥í¥»¥¹¤Î¼Â¹Ô¤òºÆ³«¤¹¤ë.
1HUPHangUP. üËö²óÀþ¤¬Àڤ줿¡¤¤È¤¤¤¦¤³¤È¤ò°ÕÌ£¤¹¤ë. ÉáÄÌ¤Î¥×¥í¥»¥¹¤Ï¤³¤Î¥·¥°¥Ê¥ë¤ò¼õ¤±¤ë¤È¼Â¹Ô¤òÃæ»ß¤¹¤ë¤¬¡¤ ºÆµ¯Æ°¤·¤¿¤êÆÃÊ̤ʥ⡼¥É¤Ë°Ü¹Ô¤¹¤ë¥×¥í¥»¥¹¤â¿¤¤¤Î¤ÇÃí°Õ¤¬É¬Í×.

¤³¤Îɽ¤«¤éʬ¤«¤ë¤è¤¦¤Ë¡¤¤½¤Î¥×¥í¥»¥¹¤ò³Î¼Â¤Ë»ß¤á¤¿¤¤¾ì¹ç¤Ï¡¤
kill␣-9␣pid
¤È¤¹¤ë¤«¡¤
kill␣-KILL␣pid
¤È¤¹¤ì¤Ð¤è¤¤.

warning.png state ¤¬ D ¤Î¥×¥í¥»¥¹¤ä¡¤zombie ¥×¥í¥»¥¹¤Ë¤Ï kill␣-KILL ¤¬Í­¸ú¤Ç¤Ê¤¤¾ì¹ç¤¬¤¢¤ë. ¤³¤¦¤¤¤¦¾ì¹ç¤Ï¡¤Æä˻پ㤬¤Ê¤±¤ì¤ÐÊüÃÖ(^-^)¡¤»Ù¾ã¤¬¤¢¤ê¤½¤¦¤À¤Ã¤¿¤é´ÉÍý¼Ô¤ËÁêÃ̤¹¤ë¤Î¤¬Îɤ¤.
warning.png ¥·¥°¥Ê¥ë "HUP" ¤ä pid "1" "0" "-1" ¤ÏÆÃÊ̤ʰÕÌ£¤Ç»È¤ï¤ì¤ë¤³¤È¤¬Â¿¤¤¤Î¤Ç¡¤¤è¤¯¤ï¤«¤é¤Ê¤¤¾ì¹ç¤Ï»È¤ï¤Ê¤¤¤è¤¦¤ËÃí°Õ¤¹¤ë¤³¤È. ¹ó¤¤Ìܤˤ¢¤Ã¤Æ¤ß¤¿¤¤¡¤¤È¤¤¤¦¿ì¶¸¤Ê¿Í¤Ï¼«Âð¤Î unix ¤Ê¤É¤Ç¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤Ë¤Ê¤Ã¤Æ¡¤ kill␣1, kill␣-KILL␣-1 ¤Ê¤É¤È¤¤¤í¤¤¤í¤ä¤Ã¤Æ¤ß¤è¤¦(^-^).

Control of processes: to ignore the termination order "HUP": ¥×¥í¥»¥¹¤òÀ©¸æ: üËöÀÚÃÇ HUP ¤ò̵»ë¤µ¤»¤ë

¥×¥í¥°¥é¥à¤¬Æ°ºîÃæ¤Ç¤¢¤Ã¤Æ¤â¡¤Ã¼Ëö¤ò½ªÎ»¤·¤¿¤ê¥í¥°¥¢¥¦¥È¤·¤¿¤ê¤¹¤ë¤ÈÄ̾ï¤Ï¤½¤Î¥×¥í¥°¥é¥à¤Ï½ªÎ»¤·¤Æ¤·¤Þ¤¦. ¤³¤ì¤Ï¡¤¤½¤Î¥×¥í¥°¥é¥à¤òµ¯Æ°¤·¤¿Ã¼Ëö´Ä¶­¤¬¡¤½ªÎ»¤¹¤ëľÁ°¤Ë¤½¤Î¥×¥í¥°¥é¥à¤ËÂФ·¤Æ¾å¤Î HUP ¥·¥°¥Ê¥ë¤òÁ÷¤Ã¤Æ¤¤¤ë¤¿¤á¤Ç¤¢¤ë.

¤·¤«¤·¡¤ÂçÎ̤η׻»¤ò¤¹¤ë¤È¤­¤Ê¤É¡¤ ¡Ö¥í¥°¥¢¥¦¥È¤·¤¿¸å¤â¥×¥í¥°¥é¥à¤ÏÆ°¤­¤Ä¤Å¤±¤¿¤Þ¤Þ¤Ç¤¤¤ÆÍߤ·¤¤¡× ¤È¤¤¤¦¤³¤È¤¬¤¢¤ë. ¤³¤¦¤·¤¿¤È¤­¤Ë¤Ï¡¤ nohup ¥³¥Þ¥ó¥É¤òÍѤ¤¤Æ nohup␣¥³¥Þ¥ó¥É̾ ¤È¤·¤Æ¥×¥í¥°¥é¥à¤òµ¯Æ°¤¹¤ë¤È¡¤¥í¥°¥¢¥¦¥È¤·¤Æ¤â¤³¤Î¥×¥í¥°¥é¥à¤¬Æ°ºî¤·Â³¤±¤ë¤è¤¦¤Ë¤Ç¤­¤ë.

warning.png ¥³¥Þ¥ó¥É¤ò»ØÄꤷ¤Ê¤¤¤Ç¤¿¤À nohup ¤È¤·¤Æ¤·¤Þ¤¦¤È¡¤¤½¤ì°Ê¹ß¤Î¥³¥Þ¥ó¥ÉÁ´¤Æ¤¬ nohup °·¤¤¤Ë¤Ê¤ê¥È¥é¥Ö¥ë¤ò°ú¤­µ¯¤³¤¹²ÄǽÀ­¤¬¹â¤¤¤Î¤Ç¡¤¤³¤¦¤·¤Ê¤¤¤è¤¦¤Ë¡¥



notes.png ¼Â½¬: ¼¡¤Î¼ê½ç¤Ç¥×¥í¥»¥¹À©¸æ¤ò»î¤·¤Æ¤ß¤è.

  1. üËöÃæ¤Ç emacs␣-nw ¤ÈÆþÎϤ·¤Æ emacs ¤òµ¯Æ°¤¹¤ë.
  2. emacs ¤¬µ¯Æ°¤·¤Æ¤¤¤ë¾õÂÖ¤Ç CTRL-z ¤È¤·¤Æ¡¤emacs ¤òÄä»ß¾õÂ֤ˤ¹¤ë(CTRL-z ¤äÄä»ß¾õÂÖ¤ÎÀâÌÀ¤Ï¸å½Ò).
  3. ps ¥³¥Þ¥ó¥É¤ò»î¤·¤Æ¤ß¤Æ¡¤emacs ¤Î¸ºß¤È¤½¤Î¾õÂÖ¤òÇÄ°®¤¹¤ë.
  4. top ¥³¥Þ¥ó¥É¤ò»î¤·¤Æ¤ß¤Æ¡¤emacs ¤Î¸ºß¤È¤½¤Î¾õÂÖ¤òÇÄ°®¤¹¤ë.
  5. ps ¥³¥Þ¥ó¥É¤Ç emacs ¤Î PID ¤òÇÄ°®¤·¡¤kill ¥³¥Þ¥ó¥É¤òÍѤ¤¤Æ emacs ¤ò¶¯À©½ªÎ»¤µ¤»¤ë.
  6. ps¥³¥Þ¥ó¥É¤Ç emacs ¤¬Â¸ºß¤·¤Ê¤¤(¶¯À©½ªÎ»¤·¤¿¤¿¤á)¤³¤È¤ò³Îǧ¤¹¤ë¡¥

Job: ¥¸¥ç¥Ö

¥¸¥ç¥Ö¤È¤Ï¡¤(¥·¥§¥ë¤«¤é¸«¤¿)¥³¥ó¥Ô¥å¡¼¥¿¾å¤Ç¼Â¹Ô¤µ¤ì¤ë¼ÂÂÖ¤Îñ°Ì¤Î³µÇ°¤Ç¡¤ ¡Ö°ìÏ¢¤Î»Å»ö¤ò¤·¤Æ¤¤¤ë(Ê£¿ô¤Î)¥×¥í¥»¥¹¡× ¤Î¤³¤È¤Ç¤¢¤ë.
¤Þ¤¢´Êñ¤Ë¸À¤¨¤Ð¡¤¥·¥§¥ë¤ÇÌ¿Îᤷ¤¿¡Ö(°ì¹Ôʬ¤Î)Ì¿Îá¤Î¸Ç¤Þ¤ê¡×¤Ç¤¢¤ê¡¤ ¿Í´Ö¤Ë¤È¤Ã¤Æ°ì¤Ä¤Î½èÍý¤È¸«¤Ê¤»¤ë¤â¤Î¡¤¤È»×¤¨¤Ð¤è¤¤. ¥·¥§¥ë¤Î history ¥³¥Þ¥ó¥É¤Ç¡Ö°ì²óʬ¡×¤Î¥³¥Þ¥ó¥É¤È»×¤Ã¤Æ¤â¤è¤¤.

Why do you introduce the new concept "job"? ´û¤Ë¥×¥í¥»¥¹¤È¤¤¤¦³µÇ°¤¬¤¢¤ë¤Î¤Ë, ¤Ê¤¼¤ï¤¶¤ï¤¶ ¿·¤·¤¯¥¸¥ç¥Ö¤È¤¤¤¦³µÇ°¤ò»ý¤Á¹þ¤à¤Î¤«?

¥×¥í¥»¥¹¤È¤¤¤¦¤Î¤Ï¡¤¤¢¤¯¤Þ¤Ç¡Ö¥³¥ó¥Ô¥å¡¼¥¿Â¦¤«¤é¸«¤¿¡×³µÇ°¤ÇÀµ³Î¤Ç³Î¼Â¤À¤¬¡¤¥æ¡¼¥¶¤«¤é¤Ï¤ï¤«¤ê¤Ë¤¯¤¤¡¥ ¤½¤³¤Ç¡¤¡Ö¥æ¡¼¥¶¤Ë¤È¤Ã¤Æ¤Î¼Â¹Ôñ°Ì¡×¤È¤·¤Æ¥¸¥ç¥Ö¤È¤¤¤¦³µÇ°¤òÄêµÁ¤·¡¤ ¤½¤Î¥¸¥ç¥Öñ°Ì¤ò¥æ¡¼¥¶¤«¤é¡Ö¸«¤¨¤Ê¤¯¤·¤¿¤ê¸«¤¨¤ë¤è¤¦¤Ë¤·¤¿¤ê¡×¤¹¤ë¤³¤È¤Ç ¥Þ¥ë¥Á¥¿¥¹¥¯¤ò»È¤¤¤ä¤¹¤¯¤¹¤ë¡¤¤È¤¤¤¦¤Î¤¬¥¸¥ç¥Ö¤È¤¤¤¦³µÇ°¤Îº¬Äì¤Ëή¤ì¤ë»×ÁۤǤ¢¤ë.

Foreground and background: ¥Õ¥©¥¢¥°¥é¥¦¥ó¥É,¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥É

¥·¥§¥ë¤Ï¿Í´Ö¤È¡ÖÂÐÏÃŪ¡×¤ËÆ°ºî¤¹¤ë¤¿¤á¡¤¤½¤Î¤Þ¤ÞÊ£¿ô¤Î¥×¥í¥°¥é¥à¤òƱ»þ¤ËÆ°ºî¤µ¤»¤ë¤ï¤±¤Ë¤Ï¤¤¤«¤Ê¤¤¡¥
¤½¤³¤Ç¡¤¡Ö¿Í´Ö¤ÈÂÐÏ䷤ʤ¬¤éºî¶È¤¹¤ë¥¸¥ç¥Ö¤ò°ì¤Ä¤À¤±¡×¤È ¡Ö¤½¤¦¤Ç¤Ê¤¤¥¸¥ç¥Ö(Ê£¿ô)¡× ¤ò¤ï¤±¤ë¤³¤È¤Ç¥Þ¥ë¥Á¥¿¥¹¥¯¤ò²Äǽ¤È¤·¤Æ¤¤¤ë.

jobs.png

¥Õ¥©¥¢¥°¥é¥¦¥ó¥É
¥·¥§¥ë¤òÄ̤¸¤Æ¿Í´Ö¤«¤é¤Î¥­¡¼¥Ü¡¼¥ÉÆþÎϤò¼õ¤±¤ë¥¸¥ç¥Ö¤ò¤¤¤¦. ¤Ä¤Þ¤ê¡¤Ä̾ï»È¤Ã¤Æ¤¤¤ë¾õÂ֤Υ¸¥ç¥Ö¤Ï¥Õ¥©¥¢¥°¥é¥¦¥ó¥É¤Ë¤¤¤ë¤Î¤Ç¤¢¤ë.
warning.png üËö1¤Ä¤Ë¥­¡¼¥Ü¡¼¥É¤Ï1¤Ä¤·¤«¤Ê¤¤¤Î¤Ç¡¤¥Õ¥©¥¢¥°¥é¥¦¥ó¥É¥¸¥ç¥Ö¤ÏüËö1¤Ä¤Ë¤Ä¤­¡¤1¤Ä¤·¤«Â¸ºß¤Ç¤­¤Ê¤¤¡¥
¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥É
¿Í´Ö¤Î¥­¡¼¥Ü¡¼¥ÉÆþÎϤò¼õ¤±¤é¤ì¤Ê¤¤¾õÂÖ¤ÇÆ°ºî¤·¤Æ¤¤¤ë»þ¡¤¤½¤Î¥¸¥ç¥Ö¤Ï ¡Ö¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥É¤ÇÆ°ºî¤·¤Æ¤¤¤ë¡×¤È¸À¤¦. ¤³¤Î¾õÂÖ¤ÇÆ°ºî¤¹¤ë¥¸¥ç¥Ö¤ÏÊ£¿ô¤¢¤Ã¤Æ¤â¤è¤¤.
Ää»ß¾õÂÖ
µ¯Æ°¤Ï¤·¤Æ¤¤¤ë¤¬¡¤Æ°ºî¤òÄä»ß¤·¤Æ¤¤¤ë¾õÂÖ.
¥Õ¥©¥¢¥°¥é¥¦¥ó¥É¤Ë¤â¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥É¤Ë¤¤¤é¤ì¤Ê¤¯¤Ê¤Ã¤¿¥¸¥ç¥Ö¤¬ ¶¯À©Åª¤Ë¤³¤Î¾õÂ֤˰ܤµ¤ì¤ë¤³¤È¤â¤¢¤ë. ¤Þ¤¿¡¤¥¸¥ç¥Ö¤ò¥Õ¥©¥¢¥°¥é¥¦¥ó¥É¤«¤é¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥É¤Ø»ý¤Ã¤Æ¤¤¤¯¤È¤­¤ÎÅÓÃæ¤Î¾õÂ֤Ȥ·¤Æ¤âÍѤ¤¤é¤ì¤ë.

To know the status of jobs: ¥¸¥ç¥Ö¤Î¾õÂÖ¤òÃΤë

¤½¤Î¥·¥§¥ë¤«¤é¸«¤¿¤È¤­¤Ë¤É¤ì¤À¤±¤Î¥¸¥ç¥Ö¤¬¤É¤¦¤¤¤¦¾õÂ֤ˤ¢¤ë¤«¤Ï¡¤
jobs
¥³¥Þ¥ó¥É¤ÇÃΤ뤳¤È¤¬¤Ç¤­¤ë.

Gnome-Preferences.png jobs ¥³¥Þ¥ó¥É ¼Â¹ÔÎã.

[1]  - ½ªÎ»                          ls --color=auto -Fga -l |
       ̾̂                          less
[2]  + ̾̂                          emacs

¤³¤Îɽ¼¨¤Ïº¸¤«¤é¡¤
¥¸¥ç¥ÖÈÖ¹æ ¾õÂÖ ¥³¥Þ¥ó¥É¤È°ú¿ô
¤È¤¤¤¦¥ê¥¹¥È¤Ë¤Ê¤Ã¤Æ¤¤¤ë. ¥¸¥ç¥ÖÈÖ¹æ¤Ë¡Ö+¡×¤¬¤Ä¤¤¤Æ¤¤¤ë¤Î¤Ï¡¤¥¸¥ç¥ÖÁàºî¥³¥Þ¥ó¥É¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÂоݤ¬¤³¤ì¤Ç¤¢¤ë¤³¤È¤ò°ÕÌ£¤·¤Æ¤¤¤ë. (¤À¤¤¤¿¤¤¤Ï°ìÈÖÂ礭¤¤ÈÖ¹æ¤À)

¤Á¤Ê¤ß¤Ë¡¤¤³¤ÎÎã¤Ç¤ÏÆó¤Ä¤Î¥¸¥ç¥Ö¤¬¡ÖÃæÃǡ׾õÂÖ¡¤¤Ä¤Þ¤ê¡ÖÄä»ß¾õÂ֡פǤ¢¤ë¤³¤È¤¬¤ï¤«¤ë.

notes.png ¼Â½¬: ʸ»úüËöÃæ¤Ç emacs␣-nw␣& ¤È²¿ÅÙ¤«ÆþÎϤ¹¤ë¤Ê¤É¤·¤Æ, jobs ¥³¥Þ¥ó¥É¤ÎÍͻҤò»î¤·¤Æ¤ß¤è.

Control of jobs: ¥¸¥ç¥ÖÀ©¸æ

¥¸¥ç¥ÖÀ©¸æ¤È¤Ï¡¤¥¸¥ç¥Ö¤ò»°¾õÂ֤Τ¢¤ë¾õÂÖ¤«¤é¾¤Î¾õÂ֤ؤȰÜÆ°¤µ¤»¤ë¤³¤È¤ä¡¤ ¥×¥í¥»¥¹À©¸æ¤ÈƱ¤¸¤¯¥¸¥ç¥Ö¤ò¡Ö»¦¤·¤¿¤ê¡×¤¹¤ë¤³¤È¤ò¸À¤¦.

¥¸¥ç¥Ö¤Ë¤ÏÂç¤Þ¤«¤Ë¤¤¤Ã¤Æ¾å¤ËºÜ¤»¤¿¿Þ¤Î¤è¤¦¤Ê»°¤Ä¤Î¾õÂÖ¤¬¤¢¤ë¡¥ ¿ÞÃæ¤Ë¤¢¤ë¤è¤¦¤Ê¥³¥Þ¥ó¥É¤òÍѤ¤¤Æ¥¸¥ç¥Ö¤Î¾õÂÖ¤òÊÑÁ«¤µ¤»¤ë¤³¤È¤¬ ¥¸¥ç¥ÖÀ©¸æ¤ÎÃæ¿´¤È¤Ê¤ë.
¾ÜºÙ¤Ï°Ê²¼¤ÎÄ̤ꡥ

Control of jobs: launch: ¥¸¥ç¥ÖÀ©¸æ: ¥¸¥ç¥Ö¤òºî¤ë

¥·¥§¥ë¤òÄ̤¸¤Æ¥×¥í¥°¥é¥à¤ò¼Â¹Ô¤·¤¿¤È¤­¡¤ ¥·¥§¥ë¤ËÅêÆþ¤µ¤ì¤¿°ì²ô¤Î¥³¥Þ¥ó¥É(·²)¤¬¥¸¥ç¥Ö¤È¤·¤ÆÀ¸À®¤µ¤ì¤ë. ¤³¤Î»þ¤Ë¥¸¥ç¥Ö¤¬¤É¤Î¾õÂ֤˹Ԥ¯¤«¤À¤¬¡¤¼¡¤Î¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡¥

Ä̾ï¤Ï¥Õ¥©¥¢¥°¥é¥¦¥ó¥É¾õÂ֤ˤʤ뤬¡¤µ¯Æ°»þ¤Ë¥ª¥×¥·¥ç¥ó¤Ç & ¤ò¤Ä¤±¤ë¤È¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥É¾õÂ֤ˤʤë

Gnome-Preferences.png ¼Â¹ÔÎã: window system ¤¬Æ°ºî¤·¤Æ¤¤¤ë¤È¤­¤Ë üËöÃæ¤Ç emacs␣& ¤È¤¹¤ë¤È¡¤emacs ¤¬¡ÖÊÌÁë¤Ç¡×µ¯Æ°¤¹¤ë¤Î¤¬¸«¤é¤ì¤ë¤¬¡¤¤³¤ì¤¬¤½¤¦¤Ç¤¢¤ë.

Control of jobs: from background to foreground: ¥¸¥ç¥ÖÀ©¸æ: ¥Ð¥Ã¥¯¤«¤é¥Õ¥©¥¢¤Ø

fg␣%¥¸¥ç¥ÖÈÖ¹æ
¤½¤Î¥¸¥ç¥ÖÈÖ¹æ¤ò¤â¤Ä¥¸¥ç¥Ö¤ò¥Õ¥©¥¢¥°¥é¥¦¥ó¥É¤Ø°Ü¤¹(Æþ½ÐÎϤò¿Í´ÖÁê¼ê¤Ë¤¹¤ë).

warning.png ¥¸¥ç¥Ö¤ò ¥Õ¥©¥¢ ¢ª ¥Ð¥Ã¥¯ ¤ËľÀܰܤ¹ÊýË¡¤Ï̵¤¤¡¥¥Õ¥©¥¢ ¢ª Ää»ß ¢ª ¥Ð¥Ã¥¯ ¤È·Ðͳ¤¹¤ëÊýË¡( CTRL-z ¢ª bg␣%¥¸¥ç¥ÖÈÖ¹æ ¤È¤¤¤¦¥³¥ó¥Ü)¤¬¤¢¤ë¤Î¤Ç¤½¤Á¤é¤ò»È¤ª¤¦¡¥

Control of jobs: between foreground and suspended: ¥¸¥ç¥ÖÀ©¸æ: ¥Õ¥©¥¢ ¢«¢ª Ää»ß

CTRL-z
¥Õ¥©¥¢¥°¥é¥¦¥ó¥É¥¸¥ç¥Ö¤òÄä»ß¾õÂ֤ˤ¹¤ë.
¤¿¤À¤·¡¤¥·¥§¥ë¤½¤Î¤â¤Î¤À¤±¤Ï¤³¤ì¤ÇÄä»ß¤·¤Ê¤¤¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë(Îã³°).
¥·¥§¥ë¤òÄä»ß¤·¤¿¤¤¾ì¹ç¤Ï¡¤ suspend ¥³¥Þ¥ó¥É.
fg␣%¥¸¥ç¥ÖÈÖ¹æ
¤½¤Î¥¸¥ç¥ÖÈÖ¹æ¤ò¤â¤Ä¥¸¥ç¥Ö¤ò¥Õ¥©¥¢¥°¥é¥¦¥ó¥É¤Ø°Ü¤¹(²ÔƯ¾õÂ֤ˤ¹¤ë).

Control of jobs: between suspended and background: ¥¸¥ç¥ÖÀ©¸æ: Ää»ß ¢«¢ª ¥Ð¥Ã¥¯

bg␣%¥¸¥ç¥ÖÈÖ¹æ
¤½¤Î¥¸¥ç¥ÖÈÖ¹æ¤ò¤â¤Ä¥¸¥ç¥Ö¤ò¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥É¤Ë°Ü¤¹(Æ°ºî¤µ¤»¤ë).
stop␣%¥¸¥ç¥ÖÈÖ¹æ
¤½¤Î¥¸¥ç¥ÖÈÖ¹æ¤ò¤â¤Ä¥¸¥ç¥Ö¤òÄä»ß¾õÂ֤ˤ¹¤ë(°ì»þÄä»ß).

Control of jobs: to kill them: ¥¸¥ç¥ÖÀ©¸æ: ¥¸¥ç¥Ö¤ò»¦¤¹

¥Õ¥©¥¢¥°¥é¥¦¥ó¥É¥¸¥ç¥Ö¡¤Â¨¤Á¡¤¿Í´Ö¤ÈÂÐÏ䷤ʤ¬¤éÆ°ºî¤·¤Æ¤¤¤ë¥¸¥ç¥Ö¤Ï CTRL-c ¤Ê¤É¤Ç»¦¤¹¤³¤È¤¬¤Ç¤­¤ë. ¤³¤ì¤Ï JNorth_arrow-right-sm.png »ñÎÁ01 ¥³¥Þ¥ó¥ÉÁàºî¤Î´ðËÜ ¤Ç¤â¼¨¤·¤¿Ä̤ê¤Ç¤¢¤ë.
¤¿¤À¤·¡¤¥·¥§¥ë¤½¤Î¤â¤Î¤À¤±¤Ï¤³¤ì¤Ç»à¤Ê¤Ê¤¤¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë(Îã³°).

¤½¤¦¤Ç¤Ê¤¤¥¸¥ç¥Ö(¾¤Î¾õÂ֤ˤ¢¤ë¥¸¥ç¥Ö)¤Ï¡¤¾å¤Î jobs ¥³¥Þ¥ó¥É¤Ç¤½¤Î¥¸¥ç¥ÖÈÖ¹æ¤òÄ´¤Ù¤Æ¡¤
kill␣%¥¸¥ç¥ÖÈÖ¹æ
¤È¤¹¤ì¤Ð¤½¤Î¥¸¥ç¥Ö¤ò»¦¤¹¤³¤È¤¬¤Ç¤­¤ë.

notes.png ¼Â½¬: ¼¡¤Î¼ê½ç¤Ç¥¸¥ç¥ÖÀ©¸æ¤ò»î¤·¤Æ¤ß¤è.

  1. touch ¥³¥Þ¥ó¥É¤òÍѤ¤¤Æ¥Õ¥¡¥¤¥ë¤ò¿·¤·¤¯ºî¤ë.
  2. ºî¤Ã¤¿¥Õ¥¡¥¤¥ë¤ò üËöÃæ¤Ç vi ¤« emacs ¤ÇÊÔ½¸¤·(¥¸¥ç¥Ö¤ÎÅêÆþ)¡¤Å¬Åö¤Ë¿ô¹Ô½ñ¤­¹þ¤à.
  3. vi or emacs ¤ò½ªÎ»¤»¤º¤Ë¡¤Ää»ß¤µ¤»¤ë¤³¤È¤Ç¥·¥§¥ë¤ØÌá¤ë(¥¸¥ç¥Ö¤ÎÄä»ß).
  4. less ¥³¥Þ¥ó¥É¤òÍѤ¤¤ÆÊÔ½¸¤·¤¿¥Õ¥¡¥¤¥ë¤ò¸«¤ë(¥¸¥ç¥Ö¤ÎÅêÆþ & Ää»ß).
  5. date ¥³¥Þ¥ó¥É¤òÍѤ¤¤ÆÆü»þ¤òÄ´¤Ù¤Æ¡Ä(¥¸¥ç¥Ö¤ÎÅêÆþ & Ää»ß).
  6. fg ¥³¥Þ¥ó¥É¤òÍѤ¤¤Æ vi or emacs ¤ØÌá¤ê(Ää»ß¥¸¥ç¥Ö¤ò¥Õ¥©¥¢¥°¥é¥¦¥ó¥É¤Ø)
  7. Àè¤Û¤ÉÄ´¤Ù¤¿Æü»þ¤ò½ñ¤­¹þ¤ó¤Ç¤«¤é, vi or emacs ¤ò½ªÎ»(¥¸¥ç¥Ö¤ÎÄä»ß).
  8. ºÆ¤Ó, less ¥³¥Þ¥ó¥É¤òÍѤ¤¤ÆÊÔ½¸¤·¤¿¥Õ¥¡¥¤¥ë¤ò¸«¤Æ¡¤Àè¤Û¤É¤ÎÆü»þ½ñ¤­¹þ¤ß¤¬Êݸ¤µ¤ì¤Æ¤¤¤ë¤³¤È¤ò³Îǧ(¥¸¥ç¥Ö¤ÎÅêÆþ & Ää»ß).

Report: ¥ì¥Ý¡¼¥È

°Ê²¼¤Î²ÝÂê¤Ë¤Ä¤¤¤Æǽ¤¦¸Â¤ê¸­ÌÀ¤ÊÄ´ºº¤È¹Í»¡¤ò¹Ô¤¤¡¤
AppliedMath7-Report-03
¤È¤¤¤¦Âê̾¤ò¤Ä¤±¤Æ e-mail ¤Ë¤Æ¶µ´±°¸¤Ë¥ì¥Ý¡¼¥È¤È¤·¤ÆÄó½Ð¤»¤è. ¤Ê¤ª¡¤¥ì¥Ý¡¼¥È¤ò e-mail ¤ÎÂå¤ï¤ê¤Ë TeX ¤ÇºîÀ®¤·¤¿½ñÌ̤ˤÆÄó½Ð¤·¤Æ¤â¤è¤¤.

Exercises: ²ÝÂê

  1. ËÜ»ñÎÁ¤Î¼Â½¬Éôʬ¤ò¤¹¤Ù¤Æ¹Ô¤¤¡¤¤½¤ì¤Ë¤Ä¤¤¤Æ¡Ö¤­¤Á¤ó¤È¡×Êó¹ð¤»¤è(¤ä¤ê¤Þ¤·¤¿¡¤¤Ê¤É¤À¤±¤È¤¤¤¦¤Î¤Ï¥À¥á¤À¤è¤Í)¡¥
  2. ¥¸¥ç¥Ö¤òÅêÆþ¤·¤ÆÄä»ß¾õÂ֤ˤ¹¤ëÊýË¡¤òÊ£¿ô½Ò¤Ù¤è¡¥
    ¤Þ¤¿¡¤¤³¤ì¤é¤Îºî¶È¤ò¼ÂºÝ¤Ë¤ä¤Ã¤Æ¤ß¤è. ¤¿¤À¤·¡¤¤³¤ÎÁàºî¤ÎÍͻҤò script ¥³¥Þ¥ó¥É¤Çµ­Ï¿¤·¤Æ¤ª¤¤¤Æ¡¤¤½¤Îµ­Ï¿¤òÄó½Ð¤¹¤ë·Á¤ÇÊó¹ð¤¹¤ë¤³¤È.
  3. kill ¤Ç¤â¥×¥í¥»¥¹¤¬»¦¤»¤Ê¤¤¾ì¹ç¤¬²¿Ä̤꤫¹Í¤¨¤é¤ì¤ë. ¤½¤Î¤¦¤Á¡¤3¼ïÎà¤òµó¤²¤Æ¤­¤Á¤ó¤È²òÀ⤻¤è.
  4. ¥¸¥ç¥Ö¤ò ¤¢¤ï¤»¤Æ 5¤Ä¤Û¤ÉÅêÆþ¤·¡¤Á´¤Æ¤¬¶¦Â¸¤¹¤ë¾õÂ֤ˤ·¡¤ »°¾õÂÖ¤ò¼«ºß¤ËÁ«°Ü¤µ¤»¤è.
    ¤¿¤À¤·¡¤¤³¤ÎÁàºî¤ÎÍͻҤò script ¥³¥Þ¥ó¥É¤Çµ­Ï¿¤·¤Æ¤ª¤¤¤Æ¡¤¤½¤Îµ­Ï¿¤òÄó½Ð¤¹¤ë·Á¤ÇÊó¹ð¤¹¤ë¤³¤È.

about Icons, ClipArts

For details, see JNorth_arrow-right-sm.png this.


*1 ¤¿¤À¤·¡¤cygwin ¥·¥¹¥Æ¥à¤Ï¤Û¤È¤ó¤É¥×¥í¥»¥¹¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¤¿¤á¡¤ps axu ¤Ç¤Ï¼ä¤·¤¤·ë²Ì¤·¤«É½¼¨¤µ¤ì¤Ê¤¤¡¥cygwin ¤Ç¤Ï ps -W ¤È¤¹¤ë¤È¡¤MS-Windows ¤Î¥×¥í¥»¥¹¤âɽ¼¨¤µ¤ì¤ë¤Î¤Ç¡¤cygwin ¤Ç¤Ï¤³¤ÎÊý¤¬Îɤ¤¤«¤â¤·¤ì¤Ê¤¤¡¥
*2 ¥×¥í¥»¥¹¤ä¥×¥í¥°¥é¥à¤ò¶¯À©Åª¤Ë½ªÎ»¤µ¤»¤ë¤³¤È¤ò¡¤¡Ö»¦¤¹¡×¤Ê¤É¤È¸À¤¦¡¥

źÉÕ¥Õ¥¡¥¤¥ë: filejobs.png [¾ÜºÙ]