Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是免费 bsd 上的命令
sudo pw usermod ksbuild -s /usr/local/bin/bash
我如何在 RHEL 上做同样的事情?
chsh
(换壳)
或仅针对特定用户: usermod -s /usr/local/bin/bash ksbuild
要更改所有新用户的默认设置,请编辑默认文件中的设置:/etc/default/useradd