Linux 修改用户默认的Shell类型

修改 Shell

我们都知道,Linux 下面 Shell 的种类繁多,比如常见的有 bashzshashcshkshfish 等等... 大部分 Linux 的发行版为其用户指定的默认 Shell 都是 Bash,如果我们想要使用其他的 Shell 类型,只需要通过 usermod 命令 设置即可。当然前提是需要事先把这个 Shell 类型安装到主机上。

usermod -s /bin/fish testuser // 把 testuser 用户的默认 Shell 类型设置成 fish
更多教程 HTML5 教程 CSS3 教程 JavaScript 教程 JQuery 教程 React.js 教程 Node.js 教程 Koa2 教程 Python 教程 Linux 教程