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:
parent
27822976ef
commit
c78e90ad76
1 changed files with 10 additions and 2 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Reference in a new issue