最近接手同事的案子, 拿到一台 server 的登錄權限.
但登進去後發現 default shell 不是 bash
有點小崩潰 … 趕緊想辦法換一下.
在沒有 root 權限的情況下, 用 chsh
是最快的作法.
# Change default shell to bash
$ chsh -s /bin/bash
若要查詢系統安裝了哪些 shell.
$ cat /etc/shells
Linux
Written on
March
18th,
2021
by
Borting