������ 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 ��ǽ�ʤɤˤĤ� ���������褦�Ȼפ���