-2

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? ;)

2 Answers2

2

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.

simlev
  • 1,495
2

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
dr_
  • 29,602
  • β€œIt's stored as the last field in /etc/passwd” ... on systems which use /etc/passwd to define their users. – Stephen Kitt Dec 12 '17 at 09:37