mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 09:15:22 +02:00
21 lines
437 B
Markdown
21 lines
437 B
Markdown
# chsh
|
|
|
|
> Change user's login shell.
|
|
> Part of `util-linux`.
|
|
> More information: <https://manned.org/chsh>.
|
|
|
|
- Set a specific login shell for the current user interactively:
|
|
|
|
`chsh`
|
|
|
|
- List available shells:
|
|
|
|
`chsh {{[-l|--list-shells]}}`
|
|
|
|
- Set a specific login shell for the current user:
|
|
|
|
`chsh {{[-s|--shell]}} {{path/to/shell}}`
|
|
|
|
- Set a login shell for a specific user:
|
|
|
|
`sudo chsh {{[-s|--shell]}} {{path/to/shell}} {{username}}`
|