chsh: add interactive and --list-shells examples (#6555)
This commit is contained in:
@@ -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`
|
||||
|
Reference in New Issue
Block a user