mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 22:42:08 +02:00

* It's `ch -s SHELL` to change your own shell Fixes #7800 * rephrase Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> * Use -s generically, --shell on Linux Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com>
20 lines
367 B
Markdown
20 lines
367 B
Markdown
# chsh
|
|
|
|
> Change the user's login shell.
|
|
> More information: <https://manned.org/chsh>.
|
|
|
|
- Change the current user's login shell interactively:
|
|
|
|
`chsh`
|
|
|
|
- Change the current user's login shell:
|
|
|
|
`chsh --shell {{path/to/shell}}`
|
|
|
|
- Change the login shell for a given user:
|
|
|
|
`chsh --shell {{path/to/shell}} {{username}}`
|
|
|
|
- List available shells:
|
|
|
|
`chsh --list-shells`
|