Ubuntu 20にcshをインストールしてみました。
もう標準でcshがインストールされないのですね。
1 2 3 4 5 6 7 8 9 |
rootlinks@Ubuntu20:~$ cat /etc/shells # /etc/shells: valid login shells /bin/sh /bin/bash /usr/bin/bash /bin/rbash /usr/bin/rbash /bin/dash /usr/bin/dash |
1 2 |
rootlinks@Ubuntu20:~$ csh -bash: /usr/bin/csh: No such file or directory |
- インストール
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
rootlinks@Ubuntu20:~$ sudo apt search ^csh Sorting... Done Full Text Search... Done csh/focal 20110502-5 amd64 Shell with C-like syntax rootlinks@Ubuntu20:~$ sudo apt install csh Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libfprint-2-tod1 libllvm10 linux-headers-5.4.0-42 linux-headers-5.4.0-42-generic linux-image-5.4.0-42-generic linux-modules-5.4.0-42-generic linux-modules-extra-5.4.0-42-generic Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed: csh 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 243 kB of archives. After this operation, 367 kB of additional disk space will be used. Get:1 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 csh amd64 20110502-5 [243 kB] Fetched 243 kB in 0s (1650 kB/s) Selecting previously unselected package csh. (Reading database ... 204120 files and directories currently installed.) Preparing to unpack .../csh_20110502-5_amd64.deb ... Unpacking csh (20110502-5) ... Setting up csh (20110502-5) ... update-alternatives: using /bin/bsd-csh to provide /bin/csh (csh) in auto mode Processing triggers for man-db (2.9.1-1) ... |
1 2 3 4 5 6 7 8 9 10 11 |
rootlinks@Ubuntu20:~$ cat /etc/shells # /etc/shells: valid login shells /bin/sh /bin/bash /usr/bin/bash /bin/rbash /usr/bin/rbash /bin/dash /usr/bin/dash /bin/csh /usr/bin/csh |
1 2 |
rootlinks@Ubuntu20:~$ which csh /usr/bin/csh |
1 2 3 4 5 |
rootlinks@Ubuntu20:~$ csh % ps -p $$ PID TTY TIME CMD 36753 pts/0 00:00:00 csh |