tldr/pages/common/chsh.md

21 lines
362 B
Markdown
Raw Permalink Normal View History

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.
> More information: <https://manned.org/chsh>.
2014-04-28 12:40:00 +01:00
- Change the current user's login shell interactively:
2014-04-28 12:40:00 +01:00
`chsh`
- Change the login shell of the current user:
`chsh -s {{path/to/shell}}`
2022-02-17 04:36:58 +00:00
- Change the login shell for a given user:
`chsh -s {{path/to/shell}} {{username}}`
- List available shells:
`chsh --list-shells`