ÊØÍø¤Ê shell ¤¤¤í¤¤¤í UNIX ¤Ç¤Ïɸ½à¤Î shell ¤È¤·¤Æ /bin/sh ¤ä /bin/csh ¤Ê¤É¤¬¤¢¤ë¤¬¡¢À¤¤ÎÃæ¤Ë¤Ï¡¢¤â¤Ã¤ÈÊØÍø¤Ê shell ¤¬¤¢¤ë¡£ ¤½¤ÎÃæ¤Çͭ̾¤Ê¤â¤Î¤È¤·¤Æ¡¢ csh ¤òµ¡Ç½³ÈÄ¥¤·¤¿ tcsh GNU ¤Îºî¤Ã¤¿ /bin/sh ¤Ç¤¢¤ë bash bash, ksh, tcsh¤Ê¤É¤ÎÊØÍø¤Êµ¡Ç½¤ò¤È¤ê¤Þ¤¼¤¿ zsh ¤¬¤¢¤ë¡£ º£²ó¤Ï¡¢¤³¤ì¤é¤Î shell ¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¥¨¥Ç¥£¥Ã¥È ¤Ê¤É¤Ë¤Ä¤¤¤Æ´Êñ¤ËÀâÌÀ¤¹¤ë¡£ ¤³¤ì¤é¤Î shell ¤Î¸½ºß¤Î version ¤Ï¤½¤ì¤¾¤ì tcsh 6.03.00 (Cornell) 92/11/20 bash version 1.12 zsh version 2.3.1 ¤Ç¤¢¤ë¡£¤³¤ì¤é¤Î shell ¤Î version ¤òÃΤë¤Ë¤Ï¿Þ1¤Î ¤è¤¦¤Ë¤¹¤ì¤Ð¤è¤¤¡£ - --------------------¿Þ1¤Ï¤¸¤á----------------------------- version ¤òÄ´¤Ù¤ë - ---------------------------------------------------------- tcsh % echo $version bash $ echo $BASH_VERSION zsh % echo $VERSION - --------------------¿Þ1¤ª¤ï¤ê----------------------------- ¤³¤ì¤é¤Î shell ¤Ç¤Ï¡¢³Æ¼«¤Î¹¥¤ß¤Î¥­¡¼¥Ð¥¤¥ó¥É¤¬ ²Äǽ¤Ç¤¢¤ë¤¬¡¢¤½¤Î¤¦¤Á¤Î Emacs ¥Ð¥¤¥ó¥É¤Ë¤Ä¤¤¤Æ´Ê ñ¤ËÀâÌÀ¤¹¤ë¡£ÉáÄ̤³¤é¤é¤Î shell ¤Ï default ¤Ç Emacs¥­¡¼¥Ð¥¤¥ó¥É¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£ ¤³¤ì¤é¤Î¥­¡¼¥Ð¥¤¥ó¥É¤òÊѹ¹¤¹¤ë¤Ë¤Ï bind ¤Þ¤¿¤Ï bindkey ¥³¥Þ¥ó¥É¤ò»È¤¦¡£¤Þ¤¿¡¢¸½ºß¤É¤Î¤è¤¦¤Ë¥­¡¼¥Ð ¥¤¥ó¥É¤¬¤µ¤ì¤Æ¤¤¤ë¤«¤òÄ´¤Ù¤ë¤Î¤âƱ¤¸¥³¥Þ¥ó¥É¤ò»È¤¦¡£ - --------------------¿Þ2¤Ï¤¸¤á----------------------------- ¥­¡¼¥Ð¥¤¥ó¥É¤ÎÊѹ¹¡¢³Îǧ - ---------------------------------------------------------- tcsh ÀßÄê % bindkey "¥­¡¼" ¥Õ¥¡¥ó¥¯¥·¥ç¥ó ¤¹¤Ù¤Æ¤Î¥­¡¼¥Ð¥¤¥ó¥É¤Îɽ¼¨ % bindkey bash ÀßÄê $ bind '¥­¡¼:¥Õ¥¡¥ó¥¯¥·¥ç¥ó' ¤¹¤Ù¤Æ¤Î¥­¡¼¥Ð¥¤¥ó¥É¤Îɽ¼¨ $ bind -l zsh ÀßÄê % bindkey '¥­¡¼' ¥Õ¥¡¥ó¥¯¥·¥ç¥ó ¤¹¤Ù¤Æ¤Î¥­¡¼¥Ð¥¤¥ó¥É¤Îɽ¼¨ % bindkey - --------------------¿Þ2¤ª¤ï¤ê----------------------------- ¤³¤ì¤é¤Î shell ¤Ç prompt ¤Ë¥Ò¥¹¥È¥êÈֹ椬Æþ¤ë¤è ¤¦¤Ë¤¹¤ë¤¿¤á¤Ë¤Ï¡¢¼¡¤Î¤è¤¦¤Ë¤·¤Æ¤ª¤±¤Ð¤è¤¤¡£ - --------------------¿Þ3¤Ï¤¸¤á----------------------------- prompt ¤ò¥»¥Ã¥È¤¹¤ë - ---------------------------------------------------------- tcsh % set prompt='[%h] %% ' [2] % bash $ PS1='[\!] $ ' [2] $ zsh % PS1='[%h] %# ' [2] % - --------------------¿Þ3¤ª¤ï¤ê----------------------------- ¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç¤Î¥«¡¼¥½¥ë°ÜÆ° ¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç¤Ï Emacs ¤ÈƱ¤¸¥­¡¼¥Ð¥¤¥ó¥É¤Ç¥«¡¼ ¥½¥ë°ÜÆ°¤¬²Äǽ¤Ç¤¢¤ë¡£¥³¥ó¥È¥í¡¼¥ëʸ»ú°Ê³°¤ÎÉáÄ̤Πʸ»ú¤òÆþÎϤ¹¤ë¤È¸½ºß¤Î¥«¡¼¥½¥ë°ÌÃ֤ˤ½¤Îʸ»ú¤¬ÆþÎÏ ¤µ¤ì¤ë¡£¤Þ¤¿¡¢¤³¤ì°Ê¹ß¤Îʸ»úºï½ü¤Ê¤É¤Î¥³¥Þ¥ó¥É¤â¸½ ºß¤Î¥«¡¼¥½¥ë°ÌÃ֤Ǽ¹Ԥµ¤ì¤ë¡£ - --------------------¿Þ4¤Ï¤¸¤á----------------------------- ¥«¡¼¥½¥ë°ÜÆ°¤Î¥­¡¼¥Ð¥¤¥ó¥É - ---------------------------------------------------------- ¥«¡¼¥½¥ë¤ò1ʸ»úʬÌ᤹ tcsh backward-char CTRL+B bash backward-char CTRL+B zsh backward-char CTRL+B ¥«¡¼¥½¥ë¤ò1ʸ»úʬ¿Ê¤á¤ë tcsh forward-char CTRL+F bash forward-char CTRL+F zsh forward-char CTRL+F ¹ÔƬ¤Ë¥«¡¼¥½¥ë¤ò°ÜÆ° tcsh beginning-of-line CTRL+A bash beginning-of-line CTRL+A zsh beginning-of-line CTRL+A ¹ÔËö¤Ë¥«¡¼¥½¥ë¤ò°ÜÆ° tcsh end-of-line CTRL+E bash end-of-line CTRL+E zsh end-of-line CTRL+E ¼¡¤Î¥ï¡¼¥É¤Ë°ÜÆ° tcsh forward-word ESC f ¤Þ¤¿¤Ï M-f bash forward-word ESC f ¤Þ¤¿¤Ï M-f zsh forward-word ESC f ¤Þ¤¿¤Ï M-f Á°¤Î¥ï¡¼¥É¤Ë°ÜÆ° tcsh backward-word ESC b ¤Þ¤¿¤Ï M-b bash backward-word ESC b ¤Þ¤¿¤Ï M-b zsh backword-word ESC b ¤Þ¤¿¤Ï M-b - --------------------¿Þ4¤ª¤ï¤ê----------------------------- tcsh, bash, zsh ¤É¤ì¤â Emacs ¤ÈƱ¤¸¥­¡¼ÆþÎϤǥ«¡¼ ¥½¥ë°ÜÆ°¤¬¤Ç¤­¤ë¡£Î㤨¤Ð¡¢¼¡¤Î¤è¤¦¤Ë¡¢¥³¥Þ¥ó¥É¤òÆþ ÎϤ·¤¿¤¢¤È¡¢CTRL+A ¤Ê¤É¤òÆþÎϤ¹¤ë¤ÈEmacs ¤ÈƱ¤¸¤è ¤¦¤Ë¥«¡¼¥½¥ë¤ò°ÜÆ°¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£¥«¡¼¥½¥ë¤ò°ÜÆ° ¤·¤¿¤¢¤È¡¢ÉáÄ̤Îʸ»ú¤òÆþÎϤ¹¤ë¤È¡¢¥«¡¼¥½¥ë°ÌÃ֤ˤ½ ¤Îʸ»ú¤¬ÆþÎϤµ¤ì¤ë¡£ - --------------------¿Þ5¤Ï¤¸¤á----------------------------- ¥«¡¼¥½¥ë°ÜÆ°¤ÎÎã - ---------------------------------------------------------- [5] % ls -la bin lib etc ^ CTRL+A ¤òÆþÎÏ [5] % ls -la bin lib etc ^ ESC f ¤òÆþÎÏ [5] % ls -la bin lib etc ^ CTRL+B ¤òÆþÎÏ [5] % ls -la bin lib etc ^ CTRL+F, CTRL+F ¤òÆþÎÏ [5] % ls -la bin lib etc ^ CTRL+E ¤òÆþÎÏ [5] % ls -la bin lib etc ^ ESC b ¤òÆþÎÏ [5] % ls -la bin lib etc ^ ------------------------------------------------------------ ^ ¤¬¥«¡¼¥½¥ë°ÌÃÖ - --------------------¿Þ5¤ª¤ï¤ê----------------------------- ¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç¤Îºï½ü/Éüµ¢ tcsh, bash, zsh ¤É¤ì¤Ç¤â¡¢CTRL+H, BS, DEL ¥­¡¼¤Ç ¥«¡¼¥½¥ëÁ°¤Îʸ»ú¤ò¾Ã¤¹¤³¤È¤¬¤Ç¤­¤ë¡£¤Þ¤¿¡¢¥«¡¼¥½¥ë °ÌÃÖ¤Ëʸ»ú¤¬¤¢¤ì¤ÐCTRL+D ¤Ç¤½¤Îʸ»ú¤ò¾Ã¤¹¤³¤È¤¬¤Ç ¤­¤ë¡£ - --------------------¿Þ6¤Ï¤¸¤á----------------------------- °ìʸ»úºï½ü - ---------------------------------------------------------- ¥«¡¼¥½¥ëÁ°¤Îʸ»ú¤òºï½ü tcsh backward-delete-char CTRL+H ¤Þ¤¿¤Ï DEL bash backward-delete-char CTRL+H ¤Þ¤¿¤Ï DEL zsh backward-delete-char CTRL+H ¤Þ¤¿¤Ï DEL ¥«¡¼¥½¥ë°ÌÃÖ¤Ëʸ»ú¤¬¤¢¤ì¤Ð¤½¤ì¤òºï½ü ¤Ê¤±¤ì¤Ð¥Õ¥¡¥¤¥ë̾Êä´°¤Î¥ê¥¹¥È¤òɽ¼¨ tcsh delete-char-or-list CTRL+D zsh delete-char-or-list CTRL+D ¥«¡¼¥½¥ë°ÌÃÖ¤Ëʸ»ú¤¬¤¢¤ì¤Ð¤½¤ì¤òºï½ü bash delete-char CTRL+D - --------------------¿Þ6¤ª¤ï¤ê----------------------------- ¿Þ7 ¤Î¤è¤¦¤Ë CTRL+H, BS, DEL ¤òÆþÎϤ¹¤ë¤È¥«¡¼¥½ ¥ë°ÌÃÖ¤ÎÁ°¤Îʸ»ú¤ò¾Ãµî¤Ç¤­¤ë¡£¤Þ¤¿¡¢CTRL+D ¤òÆþÎÏ ¤¹¤ë¤È¥«¡¼¥½¥ë°ÌÃÖ¤Îʸ»ú¤¬¾Ãµî¤Ç¤­¤ë¡£ - --------------------¿Þ7¤Ï¤¸¤á----------------------------- ʸ»úºï½ü¤ÎÎã - ---------------------------------------------------------- [5] % ls -la bin lib etc ^ CTRL+H ¤òÆþÎÏ [5] % ls -la bin libetc ^ BS ¤òÆþÎÏ [5] % ls -la bin lietc ^ DEL ¤òÆþÎÏ [5] % ls -la bin letc ^ CTRL+D ¤òÆþÎÏ [5] % ls -la bin ltc ^ ------------------------------------------------------------ ^ ¤¬¥«¡¼¥½¥ë°ÌÃÖ - --------------------¿Þ7¤ª¤ï¤ê----------------------------- ¤Þ¤¿¡¢¿Þ8 ¤Ë¼¨¤¹¤è¤¦¤Ë¡¢CTRL ¤Î¤«¤ï¤ê¤Ë META¥­¡¼ ¤ò»È¤¦¤È1ʸ»ú¤ÎÂå¤ï¤ê¤Ë1¥ï¡¼¥É¤òºï½ü¤¹¤ë¤³¤È¤¬¤Ç¤­ ¤ë¡£META ¤Î¤Û¤«¤Ë¡¢ESC ¤òÆþÎϤ·¤Æ¤«¤é CTRL+H ¤ä D ¤òÆþÎϤ¹¤ë¤³¤È¤Ç¤âƱ¤¸¤è¤¦¤Ë¥ï¡¼¥Éºï½ü¤¬²Äǽ¤Ç¤¢ ¤ë¡£ - --------------------¿Þ8¤Ï¤¸¤á----------------------------- ºï½ü/Éüµ¢- ---------------------------------------------------------- Á°¤Î¥ï¡¼¥É¤ò¾Ãµî tcsh backward-delete-word ESC CTRL+H ¤Þ¤¿¤Ï M-CTRL+H bash backward-kill-word ESC DEL zsh backward-kill-word CTRL+W ¤Þ¤¿¤Ï ESC CTRL+H ¥ï¡¼¥É¤ò¾Ãµî tcsh delete-word ESC d ¤Þ¤¿¤Ï M-d bash kill-word ESC d zsh delete-word ESC d ÆþÎϹÔÁ´Éô¤ò¾Ãµî tcsh kill-whole-line CTRL+U bash unix-line-discard CTRL+U zsh kill-whole-line CTRL+U ¥«¡¼¥½¥ë°ÌÃÖ¤«¤é¹ÔËö¤Þ¤Ç¾Ãµî tcsh kill-line CTRL+K bash kill-line CTRL+K zsh kill-line CTRL+K ¥Þ¡¼¥¯¥»¥Ã¥È tcsh set-mark-command CTRL+@ zsh set-mark-command CTRL+@ ¥«¡¼¥½¥ë¤È¥Þ¡¼¥¯¤òÆþ¤ì´¹¤¨¤ë tcsh exchange-point-and-mark CTRL+X CTRL+X zsh exchange-point-and-mark CTRL+X CTRL+X Îΰè¾Ãµî tcsh kill-region CTRL+W ¾Ãµî¤·¤¿Ê¸»úÎó¤ò¥«¡¼¥½¥ë°ÌÃÖ¤ËÁÞÆþ tcsh yank CTRL+Y bash yank CTRL+Y zsh yank CTRL+Y Îΰè¤ò¥³¥Ô¡¼¤¹¤ë¤¬ºï½ü¤Ï¤·¤Ê¤¤ tcsh copy-region-as-kill ESC w ¤Þ¤¿¤Ï M-w zsh copy-region-as-kill ESC w - --------------------¿Þ8¤ª¤ï¤ê----------------------------- - --------------------¿Þ9¤Ï¤¸¤á----------------------------- ¥ï¡¼¥Éºï½ü¤ÎÎã - ---------------------------------------------------------- [6] % ls -la bin lib etc ^ M-CTRL+H (¤Þ¤¿¤Ï ESC CTRL+H)¤òÆþÎÏ [6] % ls -la bin etc ^ M-DEL (¤Þ¤¿¤Ï ESC DEL)¤òÆþÎÏ [6] % ls -la etc ^ M-D (¤Þ¤¿¤Ï ESC D)¤òÆþÎÏ [6] % ls -la ^ ------------------------------------------------------------ ^ ¤¬¥«¡¼¥½¥ë°ÌÃÖ - --------------------¿Þ9¤ª¤ï¤ê----------------------------- ¿Þ10 ¤Î¤è¤¦¤Ë Emacs ¤ÈƱ¤¸¤¯ CTRL+K ¤Ç¥«¡¼¥½¥ë°Ì ÃÖ¤«¤é¹ÔËö¤Þ¤Ç¤¬ºï½ü¤Ç¤­¤ë¤·¡¢tcsh ¤Î¾ì¹ç¤ÏCTRL+@ ¤Ç¥Þ¡¼¥¯¤ò¥»¥Ã¥È¤·¤Æ¤ª¤¤¤Æ CTRL+W ¤ÇÎΰèºï½ü¤â²Ä ǽ¤Ç¤¢¤ë¡£bash ¤Ç¤Ï ¥Þ¡¼¥¯¥»¥Ã¥È¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹ ¤ë¥­¡¼¥Ð¥¤¥ó¥É¤¬¤Ê¤¤¤Î¤Ç¤³¤ì¤Ï¤Ç¤­¤Ê¤¤¡£zsh ¤Ç¤Ï default ¤Ç¤Ï kill-region ¤¬¥Ð¥¤¥ó¥É¤µ¤ì¤Æ¤¤ ¤Ê¤¤¤¬¡¢¤³¤ì¤òŬÅö¤Ê¥­¡¼¤Ë¥Ð¥¤¥ó¥É¤¹¤ì¤Ð tcsh ¤ÈƱ ¤¸¤è¤¦¤Ë¼Â¹Ô¤Ç¤­¤ë¡£ - --------------------¿Þ10¤Ï¤¸¤á----------------------------- ºï½ü¤ÎÎã - ---------------------------------------------------------- [7] % ls -la bin lib etc ^ CTRL+K ¤òÆþÎÏ [7] % ls -la bin lib ^ M-b, M-b ¤Ç¥«¡¼¥½¥ë°ÜÆ° [7] % ls -la bin lib ^ CTRL+@ ¤Ç¥Þ¡¼¥¯¥»¥Ã¥È [7] % ls -la bin lib ^ M-f ¤Ç¥«¡¼¥½¥ë°ÜÆ° [7] % ls -la bin lib @ ^ CTRL+W ¤ÇÎΰèºï½ü [7] % ls -la lib ^ ------------------------------------------------------------ ^ ¤¬¥«¡¼¥½¥ë°ÌÃÖ - --------------------¿Þ10¤ª¤ï¤ê----------------------------- tcsh ¤ä zsh ¤Ç¤Ï¡¢¿Þ10¤ÎºÇ¸å¤Î¾õÂÖ¤Ç CTRL+Y ¤òÆþ ÎϤ¹¤ì¤Ð Emacs ¤ÈƱ¤¸¤è¤¦¤Ë¤µ¤Ã¤­ CTRL+W ¤Çºï½ü¤· ¤¿Ê¸»úÎ󤬥«¡¼¥½¥ë°ÌÃÖ¤ËÁÞÆþ¤µ¤ì¤ë¡£ - --------------------¿Þ11¤Ï¤¸¤á----------------------------- yank ¤ÎÎã - ---------------------------------------------------------- [7] % ls -la lib ^ M-f ¤Ç¥«¡¼¥½¥ë°ÜÆ° [7] % ls -la lib ^ CTRL+Y ¤Ç yank [7] % ls -la libbin ¤µ¤Ã¤­ºï½ü¤·¤¿ bin¤¬ÁÞÆþ ^ ¤µ¤ì¤ë ------------------------------------------------------------- ^ ¤¬¥«¡¼¥½¥ë°ÌÃÖ - --------------------¿Þ11¤ª¤ï¤ê----------------------------- sh ¤ä csh ¤Î¤è¤¦¤Ë¡¢ CTRL+U ¤òÆþÎϤ¹¤ë¤È¸½ºß¤ÎÆþ ÎϹԤòÁ´Éôºï½ü¤·¤ÆÆþÎϤ·¤Ê¤ª¤¹¤³¤È¤¬¤Ç¤­¤ë¡£ - --------------------¿Þ12¤Ï¤¸¤á----------------------------- CTRL+U¤ÎÎã - ---------------------------------------------------------- [7] % ls -la libbin ^ CTRL+U ¤òÆþÎÏ [7] % ^ ------------------------------------------------------------- ^ ¤¬¥«¡¼¥½¥ë°ÌÃÖ - --------------------¿Þ12¤ª¤ï¤ê----------------------------- tcsh ¤ä zsh ¤Ç¤Ï Emacs ¤ÈƱ¤¸¤è¤¦¤Ë¥Þ¡¼¥¯¤È¥ê¡¼ ¥¸¥ç¥ó¤È¤¤¤¦³µÇ°¤¬¤¢¤ë¡£¥Þ¡¼¥¯¤Ë¤Ä¤¤¤Æ¤Ï CTRL+X CTRL+X ¤Ç Emacs ¤ÈƱ¤¸¤è¤¦¤Ë¥Þ¡¼¥¯¤È¥«¡¼¥½¥ë°ÌÃÖ¤ò Æþ¤ì´¹¤¨¤ë¤³¤È¤¬¤Ç¤­¤ë¤·¡¢CTRL+W ¤Î¤«¤ï¤ê¤Ë M-W (¤Þ¤¿¤Ï ESC W) ¤òÆþÎϤ¹¤ì¤Ð¼ÂºÝ¤ËÎΰè¤ò¾Ã¤µ¤º¤Ëºï ½ü¥Ð¥Ã¥Õ¥¡¤Ë¥³¥Ô¡¼¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£ ¥Ò¥¹¥È¥êµ¡Ç½ tcsh ¤Ç¤Ï csh ¤Î¥Ò¥¹¥È¥êµ¡Ç½¤Ë²Ã¤¨¤Æ¥³¥Þ¥ó¥É¹Ô¤Ç ¼ÂºÝ¤Ë¥Ò¥¹¥È¥ê¤ò¤¿¤É¤ë¤³¤È¤¬¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£ bash ¤ä zsh ¤Ç¤â¡¢csh ¤Î '!' ¤Ê¤É¤ò»È¤Ã¤¿¥Ò¥¹¥È¥ê µ¡Ç½¤¬»È¤¨¤ë¤Û¤«¡¢tcsh ¤ÈƱ¤¸¤¯¥³¥Þ¥ó¥É¹Ô¤Ç¼ÂºÝ¤Ë ¥Ò¥¹¥È¥ê¤ò¤¿¤É¤ë¤³¤È¤¬¤Ç¤­¤ë¡£ csh ¤Ç¤Ï '!' ¤Ê¤É¤ò»È¤Ã¤Æ¥Ò¥¹¥È¥ê¤ÎÃæ¤Î¥³¥Þ¥ó¥É ¤ò»ØÄꤹ¤ë¤¬ tcsh ¤ä bash, zsh ¤Ç¤Ï CTRL+P ¤ä CTRL+N ¤Ê¤É¤ò¤Ä¤«¤Ã¤Æ¥Ò¥¹¥È¥ê¤ÎÃæ¤ò¸½ºß¤Î¥³¥Þ¥ó¥É ¹Ô¤Ë½Ð¤·¤Æ¤¯¤ë¤³¤È¤¬¤Ç¤­¤ë¡£ - --------------------¿Þ13¤Ï¤¸¤á----------------------------- ¥Ò¥¹¥È¥êµ¡Ç½ - ---------------------------------------------------------- Á°¤Î¥Ò¥¹¥È¥ê¤ò¸½ºß¤ÎÆþÎϹԤˤ¹¤ë tcsh up-history CTRL+P bash previous-history CTRL+P Ê£¿ô¹Ô¤Î¤È¤­¤Ï¾å¤Î¹Ô¤Ë¥«¡¼¥½¥ë¤ò°ÜÆ°¤¹¤ë¡£ ¤½¤¦¤Ç¤Ê¤¤¤È¤­¤Ï¡¢Á°¤Î¥Ò¥¹¥È¥ê¤ò¸½ºß¤ÎÆþÎϹԤˤ¹¤ë¡£ zsh up-line-or-history CTRL+P ¼¡¤Î¥Ò¥¹¥È¥ê¤ò¸½ºß¤ÎÆþÎϹԤˤ¹¤ë tcsh down-history CTRL+N bash next-history CTRL+N Ê£¿ô¹Ô¤Î¤È¤­¤Ï²¼¤Î¹Ô¤Ë¥«¡¼¥½¥ë¤ò°ÜÆ°¤¹¤ë¡£ ¤½¤¦¤Ç¤Ê¤¤¤È¤­¤Ï¡¢¼¡¤Î¥Ò¥¹¥È¥ê¤ò¸½ºß¤ÎÆþÎϹԤˤ¹¤ë¡£ zsh down-line-or-history CTRL+N ¥Ò¥¹¥È¥ê¤ÎÃæ¤ò¸å¤Ë¥µ¡¼¥Á¤¹¤ë tcsh history-search-backward ESC p ¤Þ¤¿¤Ï M-p zsh history-search-backward ESC p ¥Ò¥¹¥È¥ê¤ÎÃæ¤ò¸å¤Ë¥¤¥ó¥¯¥ê¥á¥ó¥¿¥ë¥µ¡¼¥Á¤ò¤¹¤ë bash reverse-search-history CTRL+R zsh history-incremental-search-backward CTRL+R ¤Þ¤¿¤Ï CTRL+X r ¥Ò¥¹¥È¥ê¤ÎÃæ¤òÁ°¤Ë¥µ¡¼¥Á¤¹¤ë tcsh history-search-forward ESC n ¤Þ¤¿¤Ï M-n zsh history-search-backward ESC p ¥Ò¥¹¥È¥ê¤ÎÃæ¤òÁ°¤Ë¥¤¥ó¥¯¥ê¥á¥ó¥¿¥ë¥µ¡¼¥Á¤ò¤¹¤ë bash forward-search-history CTRL+S zsh history-incremental-search-forward CTRL+S ¤Þ¤¿¤Ï CTRL+X s csh ¤Î¥Ò¥¹¥È¥ê¤ò¼ÂºÝ¤ËŸ³«¤¹¤ë¡£ tcsh expand-history ESC ! ¤Þ¤¿¤Ï ESC SPACE ¤Ê¤É bash shell-expand-line ESC CTRL+E zsh expand-history ESC ! ¤Þ¤¿¤Ï ESC SPACE ¥Ò¥¹¥È¥ê¤ÎÀèƬ¤ò¸½ºß¤ÎÆþÎϹԤˤ¹¤ë bash beginning-of-history ESC < Ê£¿ô¹Ô¤Î¤È¤­¤ÏÀèƬ¤Ë¥«¡¼¥½¥ë¤ò°ÜÆ°¤¹¤ë¡£ ¤½¤¦¤Ç¤Ê¤¤¤È¤­¤Ï¡¢¥Ò¥¹¥È¥ê¤ÎÀèƬ¤ò¸½ºß¤ÎÆþÎϹԤˤ¹¤ë¡£ zsh beginning-of-buffer-or-history ESC < ¥Ò¥¹¥È¥ê¤ÎºÇ¸å¤ò¸½ºß¤ÎÆþÎϹԤˤ¹¤ë bash end-of-history ESC > Ê£¿ô¹Ô¤Î¤È¤­¤ÏºÇ¸å¤Ë¥«¡¼¥½¥ë¤ò°ÜÆ°¤¹¤ë¡£ ¤½¤¦¤Ç¤Ê¤¤¤È¤­¤Ï¡¢¥Ò¥¹¥È¥ê¤ÎºÇ¸å¤ò¸½ºß¤ÎÆþÎϹԤˤ¹¤ë¡£ zsh end-of-buffer-or-history ESC > ¸½ºß¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¡¢¤½¤Î¥³¥Þ¥ó¥É¤¬½ªÎ»¤·¤¿¤é¡¢ ¥Ò¥¹¥È¥ê¤Î¼¡¤Î¥³¥Þ¥ó¥É¤ò¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ë½Ð¤¹¡£ ¥Ò¥¹¥È¥ê¤Î¼¡¤Î¥³¥Þ¥ó¥É¤¬¤Ê¤¤¤È¤­¤Ï¡¢¸½ºß¤Î¥³¥Þ¥ó¥É¤â¼Â¹Ô¤µ¤ì¤Ê¤¤¡£ zsh accept-line-and-down-history CTRL+O ¥Ò¥¹¥È¥ê¤ËÅÐÏ¿¤¹¤ë¤Î¤ò¡¢ÆþÎϹԤ½¤Î¤Þ¤Þ¤«¥·¥§¥ë¤Ë¤è¤Ã ¤Æ½èÍý¤µ¤ì¤¿¸å¤Î¹Ô¤Ë¤¹¤ë¤«¤ò¤­¤ê¤«¤¨¤ë¡£ tcsh toggle-literal-history ESC r ¤Þ¤¿¤Ï M-r zsh toggle-literal-history ESC r ¤Þ¤¿¤Ï M-r - --------------------¿Þ13¤ª¤ï¤ê----------------------------- tcsh, bash, zsh ¤Ç¤Ï¡¢ ¿Þ14¤Î¤è¤¦¤Ë CTRL+P, CTRL+N ¤ò»È¤¨¤Ð¥³¥Þ¥ó¥É¹Ô¤Ç¥Ò¥¹¥È¥ê¤ò¤¿¤É¤ë¤³¤È¤¬ ¤Ç¤­¤ë¡£¼Â¹Ô¤·¤¿¤¤¥³¥Þ¥ó¥É¤¬¸«¤Ä¤«¤ì¤Ð¤½¤³¤Ç RETURN ¤òÆþÎϤ¹¤ì¤Ð¡¢¥³¥Þ¥ó¥É¹Ô¤Çɽ¼¨¤µ¤ì¤Æ¤¤¤ë¥³ ¥Þ¥ó¥É¤¬¼Â¹Ô¤µ¤ì¤ë¡£ - --------------------¿Þ14¤Ï¤¸¤á----------------------------- ¥Ò¥¹¥È¥ê¤ÎÎã (tcsh ¤Î¾ì¹ç, bash¤äzsh¤Ç¤â¤Û¤ÜƱ¤¸) - ---------------------------------------------------------- [7] % history ( history ¤Î¼Â¹Ô ) 1 0:02 set history=20 2 0:02 set prompt='[%h] %% ' 3 0:03 ls 4 0:05 ls -l 5 0:07 ls -la bin ltc 6 0:10 ls -la [8] % ^ CTRL+P ¤òÆþÎÏ [8] % history ¥Ò¥¹¥È¥ê 7 ¤Î¥³¥Þ¥ó¥É ^ CTRL+P ¤òÆþÎÏ [8] % ls -la bin ltc ¥Ò¥¹¥È¥ê 6 ¤Î¥³¥Þ¥ó¥É ^ CTRL+N ¤òÆþÎÏ [8] % history ¥Ò¥¹¥È¥ê 7 ¤Î¥³¥Þ¥ó¥É ^ ------------------------------------------------------------- ^ ¤¬¥«¡¼¥½¥ë°ÌÃÖ - --------------------¿Þ14¤ª¤ï¤ê----------------------------- CTRL+P, CTRL+N ¤Ç¥Ò¥¹¥È¥ê¤ò¤¿¤É¤Ã¤Æɽ¼¨¤·¤¿¥³¥Þ ¥ó¥É¹Ô¤â¥«¡¼¥½¥ë°ÜÆ°¥³¥Þ¥ó¥É¤Ç¥«¡¼¥½¥ë¤ò°ÜÆ°¤·¤Æ ʸ»ú¤ÎÁÞÆþ¤äºï½ü¤â¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£¥³¥Þ¥ó¥É¹Ô¤ÎÊÔ ½¸¤¬ºÑ¤á¤Ð¡¢RETURN ¥­¡¼¤òÆþÎϤ·¤Æ¼Â¹Ô¤¹¤ì¤Ð¤è¤¤¡£ ¥³¥Þ¥ó¥É¹Ô¤ÇÊÔ½¸¤·¤Æ¤â¥Ò¥¹¥È¥ê¤ÎÃæ¤Î¹Ô¤ÏÊѹ¹¤ò¼õ¤± ¤ë¤³¤È¤Ï¤Ê¤¤¡£ - --------------------¿Þ15¤Ï¤¸¤á----------------------------- ¥Ò¥¹¥È¥ê¤ÎÎã2 - ---------------------------------------------------------- [8] % history ¥Ò¥¹¥È¥ê 7 ¤Î¥³¥Þ¥ó¥É ^ CTRL+P CTRL+P ¤òÆþÎÏ [8] % ls -la bin ltc ¥Ò¥¹¥È¥ê 5 ¤Î¥³¥Þ¥ó¥É ^ CTRL+B CTRL+B 'ib e' ¤òÁÞÆþ [8] % ls -la bin lib etc ^ RETURN ( ls -la bin lib etc ¤¬¼Â¹Ô¤µ¤ì¤ë) [9] % ^ CTRL+P [9] % ls -la bin lib etc ¥Ò¥¹¥È¥ê 8 ¤Î¥³¥Þ¥ó¥É ^ CTRL+P, CTRL+P, CTRL+P [9] % ls -la bin ltc ¥Ò¥¹¥È¥ê 5 ¤Î¥³¥Þ¥ó¥É ^ ------------------------------------------------------------- ^ ¤¬¥«¡¼¥½¥ë°ÌÃÖ - --------------------¿Þ15¤ª¤ï¤ê----------------------------- tcsh ¤Ç¤Ï¡¢ESC P, ESC N ¤Ê¤É¤ò»È¤Ã¤Æ¥Ò¥¹¥È¥ê¤ÎÃæ ¤Ç¥µ¡¼¥Á¤¬¤Ç¤­¤ë¡£¡£¥³¥Þ¥ó¥É¹Ô¤Çʸ»úÎó¤òÆþÎϤ·¤Æ ESC P ¤òÆþÎϤ¹¤ë¤È¤½¤Î¥³¥Þ¥ó¥É¹Ô¤Îʸ»úÎó¤Ç¤Ï¤¸¤Þ¤ë ¤è¤¦¤Ê¥³¥Þ¥ó¥É¹Ô¤ò¥Ò¥¹¥È¥ê¤ÎÃæ¤ò¸å¤«¤é½ç¤Ë¥µ¡¼¥Á¤¹ ¤ë¡£ESC N ¤Ï ESC P ¤È¤ÏµÕ¸þ¤­¤Î¥µ¡¼¥Á¤ò¤ª¤³¤Ê¤¦¡£ bash ¤ä zsh ¤Ç¤Ï CTRL+R, CTRL+S ¤ò»È¤Ã¤Æ¥Ò¥¹¥È¥ê¤Î Ãæ¤ò¥¤¥ó¥¯¥ê¥á¥ó¥¿¥ë¥µ¡¼¥Á¤¬¤Ç¤­¤ë¡£ - --------------------¿Þ16¤Ï¤¸¤á----------------------------- ¥Ò¥¹¥È¥ê¥µ¡¼¥Á¤ÎÎã (tcsh ¤Î¾ì¹ç) - ---------------------------------------------------------- [9] % ls -la bin ltc ¥Ò¥¹¥È¥ê 5 ¤Î¥³¥Þ¥ó¥É ^ CTRL+N, CTRL+N [9] % history ¥Ò¥¹¥È¥ê 7 ¤Î¥³¥Þ¥ó¥É ^ RETURN ( history ¤Î¼Â¹Ô ) 1 0:02 set history=20 2 0:02 set prompt='[%h] %% ' 3 0:03 ls 4 0:05 ls -l 5 0:07 ls -la bin ltc 6 0:10 ls -la 7 0:14 history 8 0:20 ls -la bin lib etc [10] % ^ 'ls' ¤òÆþÎÏ [10] % ls ^ ESC P ¤òÆþÎÏ ls¤Ç¤Ï¤¸¤Þ¤ë¹Ô¤ò¥µ¡¼¥Á [10] % ls -la bin lib etc ^ ESC P ¤òÆþÎÏ ls¤Ç¤Ï¤¸¤Þ¤ë¹Ô¤ò¥µ¡¼¥Á [10] % ls -la ^ ESC P ¤òÆþÎÏ ls¤Ç¤Ï¤¸¤Þ¤ë¹Ô¤ò¥µ¡¼¥Á [10] % ls -la bin ltc ^ ESC N ¤òÆþÎÏ ls¤Ç¤Ï¤¸¤Þ¤ë¹Ô¤ò¥µ¡¼¥Á [10] % ls -la ^ ------------------------------------------------------------- ^ ¤¬¥«¡¼¥½¥ë°ÌÃÖ - --------------------¿Þ16¤ª¤ï¤ê----------------------------- - --------------------¿Þ17¤Ï¤¸¤á----------------------------- ¥Ò¥¹¥È¥ê¥µ¡¼¥Á¤ÎÎã (bash ¤Î¾ì¹ç) - ---------------------------------------------------------- [10] % ^ CTRL+R ¤òÆþÎÏ (reverse-i-search)`': ^ ls ¤ÈÆþÎÏ Emacs ¤Î¤è¤¦¤Ë¥¤¥ó¥¯¥ê¥á¥ó¥¿¥ë¥µ¡¼¥Á ¤ò¤ª¤³¤Ê¤¦¡£ (reverse-i-search)`ls': ls -la bin lib etc ^ CTRL+R ¤òÆþÎÏ ls¤Ç¤Ï¤¸¤Þ¤ë¹Ô¤ò¤µ¤é¤Ë¥µ¡¼¥Á (reverse-i-search)`ls': ls -la ^ CTRL+R ¤òÆþÎÏ ls¤Ç¤Ï¤¸¤Þ¤ë¹Ô¤ò¤µ¤é¤Ë¥µ¡¼¥Á ------------------------------------------------------------- ^ ¤¬¥«¡¼¥½¥ë°ÌÃÖ - --------------------¿Þ17¤ª¤ï¤ê----------------------------- - --------------------¿Þ18¤Ï¤¸¤á----------------------------- ¥Ò¥¹¥È¥ê¥µ¡¼¥Á¤ÎÎã (zsh ¤Î¾ì¹ç) - ---------------------------------------------------------- [10] % ^ CTRL+R ¤òÆþÎÏ [10] % ^ i-search: ls ¤ÈÆþÎÏ Emacs ¤Î¤è¤¦¤Ë¥¤¥ó¥¯¥ê¥á¥ó¥¿¥ë¥µ¡¼¥Á ¤ò¤ª¤³¤Ê¤¦¡£ [10] % ls -la bin lib etc ^ i-search: ls CTRL+R ¤òÆþÎÏ ls¤Ç¤Ï¤¸¤Þ¤ë¹Ô¤ò¤µ¤é¤Ë¥µ¡¼¥Á [10] % ls -la ^ i-search: ls CTRL+R ¤òÆþÎÏ ls¤Ç¤Ï¤¸¤Þ¤ë¹Ô¤ò¤µ¤é¤Ë¥µ¡¼¥Á ------------------------------------------------------------- ^ ¤¬¥«¡¼¥½¥ë°ÌÃÖ - --------------------¿Þ18¤ª¤ï¤ê----------------------------- tcsh ¤Ç¤Ï csh ¤Î¥Ò¥¹¥È¥êµ¡Ç½¤ò¤½¤Î¤Þ¤Þ»È¤¨¤ë¡£¤Þ ¤¿¡¢bash ¤ä zsh ¤Ç¤â csh ¤Î '!' ¤ä '^' ¤ò»È¤Ã¤¿¥Ò ¥¹¥È¥êµ¡Ç½¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤ë¡£ ¤µ¤é¤Ë¡¢tcsh ¤È zsh ¤Ë¤Ï expand-history¡¢ bash ¤Ç¤Ï shell-expand-line ¤È¤¤¤¦ÊØÍø¤Êµ¡Ç½¤âÍÑ°Õ¤µ¤ì¤Æ ¤¤¤ë¡£¤³¤ì¤ò»È¤¨¤Ð¡¢¿Þ19¤Î¤è¤¦¤Ë¥Ò¥¹¥È¥ê¤ò¥³¥Þ¥ó¥É ¹Ô¤Ë½Ð¤·¤Æ¤¯¤ë¤³¤È¤¬¤Ç¤­¤ë¡£ ¤â¤Á¤í¤ó¡¢Å¸³«¤µ¤ì¤¿¥Ò¥¹¥È¥ê¤Ï¤½¤Î¾ì¤ÇÊÔ½¸¤¹¤ë¤³ ¤È¤â²Äǽ¤Ç¤¢¤ë¡£ - --------------------¿Þ19¤Ï¤¸¤á----------------------------- ¥Ò¥¹¥È¥êŸ³«¤ÎÎã - ---------------------------------------------------------- [11] % ^ '!!' ¤òÆþÎÏ [11] % !! ^ M-! ¤òÆþÎÏ (bash ¤Ï ESC CTRL+E) [11] % ls -la ^ ------------------------------------------------------------- ^ ¤¬¥«¡¼¥½¥ë°ÌÃÖ - --------------------¿Þ19¤ª¤ï¤ê----------------------------- - --------------------¿Þ20¤Ï¤¸¤á----------------------------- ¥Ò¥¹¥È¥êŸ³«¤ÎÎã 2 - ---------------------------------------------------------- [12] % !his ^ M-! ¤òÆþÎÏ (bash ¤Ï ESC CTRL+E) [12] % history ^ ------------------------------------------------------------- ^ ¤¬¥«¡¼¥½¥ë°ÌÃÖ - --------------------¿Þ20¤ª¤ï¤ê----------------------------- zsh ¤Ç¤Ï¡¢Ê£¿ô¹Ô¤Ë¤ï¤¿¤ë¥³¥Þ¥ó¥É¤â¤Ò¤È¤Ä¤Î¥³¥Þ¥ó ¥É¤È¤·¤Æǧ¼±¤¹¤ë¤Î¤Ç¡¢¥Ò¥¹¥È¥ê¤ò»È¤¦»þ¤âÊ£¿ô¹Ô¤Î¥³ ¥Þ¥ó¥É¤Ï¿Þ21¤Î¤è¤¦¤Ë¤Ò¤È¤Ä¤È¤ß¤Ê¤µ¤ì¤ë¤Î¤ÇÈó¾ï¤ËÊØ Íø¤Ç¤¢¤ë¡£¤³¤Î¤è¤¦¤ËÊ£¿ô¹Ô¤Ï Emacs ¤Î buffer ¤ÎÃæ ¤ÈƱ¤¸¤è¤¦¤Ë¥«¡¼¥½¥ë°ÜÆ°¤â¤Ç¤­¤ë¡£ - --------------------¿Þ21¤Ï¤¸¤á----------------------------- zsh ¤Î¥Ò¥¹¥È¥ê - ---------------------------------------------------------- [12] % for i in * > do > nkf -e $i > $i.euc > done [13] % ^ CTRL+P ¤òÆþÎÏ [13] % for i in * do nkf -e $i > $i.euc done ^ CTRL+P ¤òÆþÎÏ [13] % for i in * do nkf -e $i > $i.euc CTRL+P ¤òÆþÎÏ ^done [13] % for i in * do CTRL+P ¤òÆþÎÏ ^nkf -e $i > $i.euc done [13] % for i in * CTRL+P ¤òÆþÎÏ do ^ nkf -e $i > $i.euc done [13] % history ^ ------------------------------------------------------------- ^ ¤¬¥«¡¼¥½¥ë°ÌÃÖ - --------------------¿Þ21¤ª¤ï¤ê----------------------------- ̾Á°Êä´°µ¡Ç½ csh ¤Ç¤Ï set filec ¤ò¤¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ¥Õ¥¡¥¤¥ë̾ Êä´°¤ò¤¹¤ë¤³¤È¤¬²Äǽ¤Ç¤¢¤ë¡£ tcsh ¤ä bash¡¢zsh ¤Ç¤Ï¤µ¤é¤ËÊØÍø¤ÊÊä´°µ¡Ç½¤¬ÍøÍÑ ¤Ç¤­¤ë¡£ csh ¤Ç¤Ï ESC ¤Ç¥Õ¥¡¥¤¥ë̾Êä´°¤ò¤ª¤³¤Ê¤¦¤¬¡¢tcsh, bash, zsh ¤Ç¤Ï CTRL+I (TAB) ¤Ç¥Õ¥¡¥¤¥ë̾Êä´°¤ò¤ª¤³ ¤Ê¤¦¤³¤È¤¬¤Ç¤­¤ë¡£ - --------------------¿Þ22¤Ï¤¸¤á----------------------------- Êä´°µ¡Ç½ - ---------------------------------------------------------- Êä´°¤¹¤ë tcsh complete-word CTRL+I ¤Þ¤¿¤Ï ESC ESC ¤Ê¤É bash complete CTRL+I Êä´°¤¹¤ë¤«¡¢globbing(¥ï¥¤¥ë¥É¥«¡¼¥É)¤Ê¤É¤òŸ³«¤¹¤ë¡£ zsh expand-or-complete CTRL+I ¥«¡¼¥½¥ë°ÌÃÖ¤Ëʸ»ú¤¬¤¢¤ì¤Ð¤½¤ì¤òºï½ü ¤Ê¤±¤ì¤ÐÊä´°¤Î¥ê¥¹¥È¤òɽ¼¨ tcsh delete-char-or-list CTRL+D zsh delete-char-or-list CTRL+D globbing¤òŸ³«¤¹¤ë tcsh expand-glob CTRL+X * ÊÑ¿ô¤òŸ³«¤¹¤ë tcsh expand-variables CTRL+X $ ¥ï¡¼¥É¤òŸ³«¤¹¤ë(globbing¤äÊÑ¿ô¤Ê¤É) zsh expand-word CTRL+X * globbing ¤òŸ³«¤·¤¿¥ê¥¹¥È¤òɽ¼¨¤¹¤ë tcsh list-glob CTRL+X g zsh list-expand CTRL+X g ¥³¥Þ¥ó¥É̾¤òÊä´°¤¹¤ë bash complete-command ESC ! ¥Õ¥¡¥¤¥ë̾¤òÊä´°¤¹¤ë bash complete-filename ESC / ¥Û¥¹¥È̾¤òÊä´°¤¹¤ë bash complete-hostname ESC @ ¥æ¡¼¥¶Ì¾¤òÊä´°¤¹¤ë bash complete-username ESC ~ ÊÑ¿ô¤òÊä´°¤¹¤ë bash complete-variable ESC $ ¥Õ¥¡¥¤¥ë̾¤òÀµµ¬²½¤¹¤ë(symbolic link ¤Ê¤É¤ò´Þ¤ó¤Ç¤¤¤ë¾ì¹ç¤Ê¤É) tcsh normalize-path CTRL+X n Êä´°¥ê¥¹¥È¤Îɽ¼¨ tcsh list-choices ESC CTRL+D ¤Þ¤¿¤Ï M-CTRL+D bash possible-completions ESC ? zsh list-choices ESC CTRL+D Êä´°¥ê¥¹¥È¤Îɽ¼¨(¥³¥Þ¥ó¥É) bash possible-command-completions CTRL+X ! Êä´°¥ê¥¹¥È¤Îɽ¼¨(¥Õ¥¡¥¤¥ë̾) bash possible-command-completions CTRL+X / Êä´°¥ê¥¹¥È¤Îɽ¼¨(¥Û¥¹¥È̾) bash possible-command-completions CTRL+X @ Êä´°¥ê¥¹¥È¤Îɽ¼¨(¥æ¡¼¥¶Ì¾) bash possible-command-completions CTRL+X ~ Êä´°¥ê¥¹¥È¤Îɽ¼¨(ÊÑ¿ô̾) bash possible-command-completions CTRL+X $ - --------------------¿Þ22¤ª¤ï¤ê----------------------------- - --------------------¿Þ23¤Ï¤¸¤á----------------------------- ¥Õ¥¡¥¤¥ë̾Êä´°¤ÎÎã - ---------------------------------------------------------- [14] % ls Mail News bin lib work [15] % ls b ^ TAB ¤òÆþÎÏ [15] % ls bin ^ ------------------------------------------------------------- ^ ¤¬¥«¡¼¥½¥ë°ÌÃÖ - --------------------¿Þ23¤ª¤ï¤ê----------------------------- tcsh, bash, zsh ¤Ç¤Ï¥³¥Þ¥ó¥É¹Ô¤ÎÀèƬ¤Ç¤Ï path ¾å ¤Ë¤¢¤ë¥³¥Þ¥ó¥É¤¬Êä´°¤µ¤ì¤ë¤·¡¢¤½¤Î¤Û¤«¥·¥§¥ëÊÑ¿ô¤ä csh ¤Î ~ ¤Î¸å¤Î¥æ¡¼¥¶Ì¾ÃÖ´¹¤ËÂФ·¤Æ¤âÊä´°¤·¤Æ¤¯¤ì ¤ë¡£ÆþÎϤ·¤¿Ê¸»ú¤Ë°ìÃפ¹¤ë̾Á°¤¬¸«¤Ä¤«¤é¤Ê¤«¤Ã¤¿¤È ¤­¤Ï¥Ó¡¼¥×¤òÌĤ餹¡£¤Þ¤¿¡¢ÆþÎϤ·¤¿Ê¸»ú¤Ç¤Ï¤¸¤Þ¤ë̾ Á°¤ò»ý¤Ä¤â¤Î¤¬Ê£¿ô¸ºß¤¹¤ë¤È¤­¤Ï¶¦Ä̤¹¤ëÉôʬ¤Þ¤Ç¤¬ Êä´°¤µ¤ì¸å¥Ó¡¼¥×¤òÌĤ餹¡£ ~ ¤¬¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤òɽ¤ï¤¹¤³¤È¤òÃΤäƤ¤¤ë¤Î ¤ÇÊä´°¤Î»þ¤Ë¤â´üÂÔÄ̤ê¤ÎÆ°ºî¤ò¤·¤Æ¤¯¤ì¤ë¡£¤Þ¤¿¡¢¥·¥§ ¥ëÊÑ¿ô¤â´üÂÔÄ̤ê¤ËÊä´°¤·¤Æ¤¯¤ì¤ë¡£ - --------------------¿Þ24¤Ï¤¸¤á----------------------------- ̾Á°Êä´°¤ÎÎã (tcsh, zsh) - ---------------------------------------------------------- [16] % set sys=/usr1/386BSD/v0.1/sys ( zsh ¤Ç¤Ï [16] % sys=/usr1/386BSD/v0.1/sys ¤È¤¹¤ë ) [17] % ls $sy ^ TAB ¤òÆþÎÏ [17] % ls $sys/ ^ p ¤òÆþÎÏ [17] % ls $sys/p ^ TAB ¤òÆþÎÏ [17] % ls $sys/pc beep ¤¬ÌĤë ^ 9 ¤òÆþÎÏ [17] % ls $sys/pc9 ^ TAB ¤òÆþÎÏ [17] % ls $sys/pc98/ ^ ------------------------------------------------------------- ^ ¤¬¥«¡¼¥½¥ë°ÌÃÖ - --------------------¿Þ24¤ª¤ï¤ê----------------------------- ¤³¤Î¤è¤¦¤Ëtcsh, zsh ¤Ç¤Ï¡¢¥Õ¥¡¥¤¥ë̾¤Î°ìÉô¤Ë¥·¥§ ¥ëÊÑ¿ô¤¬´Þ¤Þ¤ì¤Æ¤¤¤Æ¤âÀµ¤·¤¯Êä´°¤µ¤ì¤ë¡£ tcsh, zsh ¤Ç¤Ï¡¢csh ¤Ç set filec ¤·¤¿»þ¤ÈƱ¤¸¤è ¤¦¤Ë¥³¥Þ¥ó¥É¹Ô¤ÎºÇ¸å¤Ç CTRL+D ¤òÆþÎϤ¹¤ë¤ÈÊä´°¤Î¥ê ¥¹¥È¤òɽ¼¨¤·¤Æ¤¯¤ì¤ë¡£ - --------------------¿Þ25¤Ï¤¸¤á----------------------------- Êä´°¥ê¥¹¥Èɽ¼¨¤ÎÎã (tcsh, zsh) - ---------------------------------------------------------- [17] % ls $sys/pc98/ ^ CTRL+D ¤òÆþÎÏ Makefile conf/ i386/ include/ pc98/ stand/ [17] % ls $sys/pc98/ ^ ------------------------------------------------------------- ^ ¤¬¥«¡¼¥½¥ë°ÌÃÖ - --------------------¿Þ25¤ª¤ï¤ê----------------------------- ¤µ¤é¤Ë tcsh, zsh ¤Ç¤Ï * ¤Ê¤É¤ò´Þ¤ó¤À¥Õ¥¡¥¤¥ë̾¤òŸ³« ¤·¤¿¤ê¡¢¥·¥§¥ëÊÑ¿ô¤òŸ³«¤·¤Æ¤¯¤ì¤ë¡£ - --------------------¿Þ26¤Ï¤¸¤á----------------------------- globbing ¤ä¥·¥§¥ëÊÑ¿ô¤ÎŸ³«¤ÎÎã (tcsh) - ---------------------------------------------------------- [17] % ls $sys/pc98/ ^ CTRL+X $ ¤òÆþÎÏ [17] % ls /usr1/386BSD/v0.1/sys/pc98/ ^ *98¤òÆþÎÏ [17] % ls /usr1/386BSD/v0.1/sys/pc98/*98 ^ CTRL+X g ¤òÆþÎÏ /usr1/386BSD/v0.1/sys/pc98/pc98 [17] % ls /usr1/386BSD/v0.1/sys/pc98/*98 ^ CTRL+X * ¤òÆþÎÏ [17] % ls /usr1/386BSD/v0.1/sys/pc98/pc98 ^ ------------------------------------------------------------- ^ ¤¬¥«¡¼¥½¥ë°ÌÃÖ - --------------------¿Þ26¤ª¤ï¤ê----------------------------- - --------------------¿Þ27¤Ï¤¸¤á----------------------------- globbing ¤ä¥·¥§¥ëÊÑ¿ô¤ÎŸ³«¤ÎÎã (zsh) - ---------------------------------------------------------- [17] % ls $sys/pc98/ ^ CTRL+X * ¤òÆþÎÏ [17] % ls /usr1/386BSD/v0.1/sys/pc98/ ^ ¥¹¥Ú¡¼¥¹¤¬¤Ï¤¤¤ë¤Î¤Ç1ʸ»ú¤â¤É¤Ã¤Æ *98 ¤òÆþÎÏ [17] % ls /usr1/386BSD/v0.1/sys/pc98/*98 ^ CTRL+X g ¤òÆþÎÏ /usr1/386BSD/v0.1/sys/pc98/pc98 [17] % ls /usr1/386BSD/v0.1/sys/pc98/*98 ^ CTRL+I ¤òÆþÎÏ [17] % ls /usr1/386BSD/v0.1/sys/pc98/pc98 ^ ------------------------------------------------------------- ^ ¤¬¥«¡¼¥½¥ë°ÌÃÖ - --------------------¿Þ27¤ª¤ï¤ê----------------------------- ¼¡²ó¤Ï¡¢º£²óÀâÌÀ¤Ç¤­¤Ê¤«¤Ã¤¿¥Õ¥¡¥¤¥ë̾ÄûÀµµ¡Ç½¤ä¡¢help µ¡Ç½¤Ê¤É¤Ë¤Ä¤¤ ¤ÆÀâÌÀ¤·¤è¤¦¤È»×¤¦¡£