Files
cheatsheet-tldr/tldr/linux/chsh
2024-09-20 00:16:41 +00:00

27 lines
508 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# 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`
- Set a specific login [s]hell for the current user:
`chsh --shell {{path/to/shell}}`
- Set a login [s]hell for a specific user:
`sudo chsh --shell {{path/to/shell}} {{username}}`
- [l]ist available shells:
`chsh --list-shells`