1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-06 11:46:00 +02:00

chsh: add interactive and --list-shells examples (#6555)

This commit is contained in:
Janek 2021-09-21 19:01:49 +02:00 committed by GitHub
parent 27822976ef
commit c78e90ad76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,14 @@
> Change the user's login shell.
> More information: <https://manned.org/chsh>.
- Change the user's login shell:
- Change the current user's login shell interactively:
`chsh -s {{path/to/shell_binary}} {{username}}`
`chsh`
- Change the login shell for a given user to Zsh:
`chsh --shell {{/bin/zsh}} {{username}}`
- List available shells:
`chsh --list-shells`