I know that chsh is use to change the login shell with the shell listed in this file. Okay,
But what is actually Login shell is? Can anyone tell me this as simple as you can? ;)
I know that chsh is use to change the login shell with the shell listed in this file. Okay,
But what is actually Login shell is? Can anyone tell me this as simple as you can? ;)
It's the shell you are running when you login.
E.g. when I ssh
into my remote servers, I like to have bash
:
chsh [ENTER]
/bin/bash [ENTER]
You might want to read more on this topic:
A login shell is the first process that executes under your user ID when you log in for an interactive session.
The login shell, as the name says, is the shell (bash
, zsh
, etc) that is given to an user when they log in and where they type commands.
It's stored as the last field in /etc/passwd
:
jdoe:x:1031:1031:John Doe:/home/jdoe:/bin/bash
/etc/passwd
β ... on systems which use /etc/passwd
to define their users.
β Stephen Kitt
Dec 12 '17 at 09:37