Tag Archives: sh

How to change the Solaris Shell to Bash

“sh is a command language described by the POSIX standard. It has many implementations (ksh88, dash, …). bash can also be considered an implementation.

Another point of view on bash is that it is a separate language, a dialect of sh. Indeed it supports huge number of features beyond POSIX specification.”

Personally, I like bash over sh. But on Solaris 10, sh is the default shell. So, in this post, I will show you that how to change the shell from sh to bash.

First verify the shell for current  user (In my case, it’s arbab):

grep arbab /etc/passwd

Now switch to root user and enter the following command:

usermod  -s  /usr/bin/bash arbab

Now go back as user arbab(that’s for me, you will use your’s) and verify the change:

grep arbab /etc/passwd

We are done 🙂

Hope this will help you!

Please Remember me in your prayers!

%d bloggers like this: