Files
tldr/pages.zh/linux/chsh.md

21 lines
410 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# chsh
> 更改用户的登录 shell。
> 属于 `util-linux`。
> 更多信息:<https://manned.org/chsh>。
- 交互式地为当前用户设置特定的登录 shell
`chsh`
- 为当前用户设置特定的登录 [s]hell
`chsh --shell {{path/to/shell}}`
- 为特定用户设置登录 [s]hell
`sudo chsh --shell {{path/to/shell}} {{username}}`
- [l]ist 可用的 shell
`chsh --list-shells`