Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

How to change the login shell?

Answer:

To change the current user login shell, use the following command

e.g. change to /bin/sh

chsh -s /bin/sh

Logout and login again.

  1. How to avoid saving current shell session history
  2. Display current login user information
  3. How do I know if I am running a shell inside another shell?
  4. How to list which login shells are available in the system
  5. Show the current user in MySQL

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>