2015-10-22 08:31:52 +01:00
|
|
|
# chsh
|
2014-04-28 12:40:00 +01:00
|
|
|
|
2021-03-31 11:24:36 +01:00
|
|
|
> Change the user's login shell.
|
2021-04-12 07:54:04 +01:00
|
|
|
> More information: <https://manned.org/chsh>.
|
2014-04-28 12:40:00 +01:00
|
|
|
|
2021-09-21 18:01:49 +01:00
|
|
|
- Change the current user's login shell interactively:
|
2014-04-28 12:40:00 +01:00
|
|
|
|
2021-09-21 18:01:49 +01:00
|
|
|
`chsh`
|
|
|
|
|
|
|
|
- Change the login shell for a given user to Zsh:
|
|
|
|
|
|
|
|
`chsh --shell {{/bin/zsh}} {{username}}`
|
|
|
|
|
|
|
|
- List available shells:
|
|
|
|
|
|
|
|
`chsh --list-shells`
|