HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

chsh — Change user's login shell. Part of `util-linux`. More information: <https://manned.org/chsh>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
shellcommandloginclichangepartuserchsh
linux

Problem

How to use the chsh command: Change user's login shell. Part of util-linux. More information: <https://manned.org/chsh>.

Solution

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


List available shells:
chsh {{[-l|--list-shells]}}


Set a specific login shell for the current user:
chsh {{[-s|--shell]}} {{path/to/shell}}


Set a login shell for a specific user:
sudo chsh {{[-s|--shell]}} {{path/to/shell}} {{username}}

Code Snippets

Set a specific login shell for the current user interactively

chsh

List available shells

chsh {{[-l|--list-shells]}}

Set a specific login shell for the current user

chsh {{[-s|--shell]}} {{path/to/shell}}

Set a login shell for a specific user

sudo chsh {{[-s|--shell]}} {{path/to/shell}} {{username}}

Context

tldr-pages: linux/chsh

Revisions (0)

No revisions yet.