2024-02-04 13:02:18 -03:00
|
|
|
# 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:
|
|
|
|
|
2024-09-19 14:09:48 +03:00
|
|
|
`chsh`
|
2024-02-04 13:02:18 -03:00
|
|
|
|
2025-03-22 08:37:12 +02:00
|
|
|
- List available shells:
|
2024-02-04 13:02:18 -03:00
|
|
|
|
2025-03-31 02:21:37 +02:00
|
|
|
`chsh {{[-l|--list-shells]}}`
|
2024-02-04 13:02:18 -03:00
|
|
|
|
2025-03-22 08:37:12 +02:00
|
|
|
- Set a specific login shell for the current user:
|
2024-02-04 13:02:18 -03:00
|
|
|
|
2025-03-22 08:37:12 +02:00
|
|
|
`chsh {{[-s|--shell]}} {{path/to/shell}}`
|
|
|
|
|
|
|
|
- Set a login shell for a specific user:
|
|
|
|
|
|
|
|
`sudo chsh {{[-s|--shell]}} {{path/to/shell}} {{username}}`
|