mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-19 22:50:27 +00:00
Update cheatsheets
This commit is contained in:
26
linux/chsh
Normal file
26
linux/chsh
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
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:
|
||||
|
||||
`sudo chsh`
|
||||
|
||||
- Set a specific login [s]hell for the current user:
|
||||
|
||||
`sudo 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:
|
||||
|
||||
`sudo chsh --list-shells`
|
||||
Reference in New Issue
Block a user