2015-10-22 15:31:52 +08:00
|
|
|
# chsh
|
2014-04-28 15:40:00 +04:00
|
|
|
|
2023-01-10 02:35:58 +10:00
|
|
|
> Change user's login shell.
|
2024-02-04 13:02:18 -03:00
|
|
|
> See platform-specific pages for more options.
|
2021-04-12 08:54:04 +02:00
|
|
|
> More information: <https://manned.org/chsh>.
|
2014-04-28 15:40:00 +04:00
|
|
|
|
2023-01-10 02:35:58 +10:00
|
|
|
- Set a specific login shell for the current user interactively:
|
2014-04-28 15:40:00 +04:00
|
|
|
|
2021-09-21 19:01:49 +02:00
|
|
|
`chsh`
|
|
|
|
|
2023-01-10 02:35:58 +10:00
|
|
|
- Set a specific login [s]hell for the current user:
|
2021-09-21 19:01:49 +02:00
|
|
|
|
2022-02-24 04:42:34 -08:00
|
|
|
`chsh -s {{path/to/shell}}`
|
2022-02-16 20:36:58 -08:00
|
|
|
|
2023-01-10 02:35:58 +10:00
|
|
|
- Set a login [s]hell for a specific user:
|
2022-02-16 20:36:58 -08:00
|
|
|
|
2022-02-24 04:42:34 -08:00
|
|
|
`chsh -s {{path/to/shell}} {{username}}`
|