Frequent Question: What Is the Default Shell in Unix?
Contents

Bash. Bash, or the Bourne-Again Shell, is by far the most widely used choice and it comes installed as the default shell in the most popular Linux distributions.

What is the default shell in Linux and why?

Bash (/bin/bash) is a popular shell on most if not all Linux systems, and it’s normally the default shell for user accounts. There are several reasons for changing a user’s shell in Linux including the following: To block or disable normal user logins in Linux using a nologin shell.

How do I find my default shell in Linux?

readlink /proc/$$/exe – Another option to get the current shell name reliably on Linux operating systems. cat /etc/shells – List pathnames of valid login shells currently installed. grep “^$USER” /etc/passwd – Print the default shell name. The default shell runs when you open a terminal window.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest