chsh command not found 解决

今天尝试修改 AlmaLinux(RHEL 系)默认 Shell 时遇到错误:

$ chsh -s /usr/bin/zsh
-bash: chsh: command not found

解决方法:安装 util-linux-user 库(注意不是 util-linux 库)

sudo dnf install util-linux-user
posted @ 2025-01-17 15:35  Undefined443  阅读(118)  评论(0)    收藏  举报