Setting Default Linux Shell

My new user I created did not have any shell when I logged in. To set up a shell you need to know where the shell resides with this command:
$ which bash
where bash is the shell name. Replace bash with your choice of shell e.g csh. Now you need to set your default shell and tell Linux where it is:
chsh -s /usr/local/bin/bash danny. CHSH – change shell with parameter -s. /usr/local/bin/bash is the path to the shell. This should be replaced with the out from the first command which. Danny is the username. Change this to your respected user name. It will prompt you for your password. Once authenticated you need to logout and log back in to see your changes.

Setting bash as default shell

About Danny

I.T software professional always studying and applying the knowledge gained and one way of doing this is to blog. Danny also has participates in a part time project called Energy@Home [] for monitoring energy usage on a premise. Dedicated to I.T since studying pure Information Technology since the age of 16, Danny Tsang working in the field that he has aimed for since leaving school. View all posts by Danny → This entry was posted in Linux and tagged , , , , , . Bookmark the permalink.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.