Click to See Complete Forum and Search --> : Where is .bash_profile ???!!!


Delilah
12-26-2001, 02:42 PM
Hi All,

I'm new to Solaris (8) and am trying to add to bash's (the one that came default with the os) search path. In Linux I just go to /root/.bash_profile and edit the file. On this os, I can't find .bash_profile or .bashrc. Tried a "whereis" and "find" to no avail. Does anyone know if these files are used and if so, where?

Thanks much,

Delilah

Beowulfs_Ghost
12-26-2001, 06:26 PM
I think you are asking yourself the wrong question. The question should be; What shell does Solaris use?

As far as I know, Linux is the only Unix that uses bash by default. FreeBSD defaults to csh (C Shell) and, IIRC, AIX defaults to ksh (Korn Shell).

stiles
12-26-2001, 09:27 PM
In short, sun only provides the bash binary (version 2.03.0(1) in my case). If you want to set up your machine for bash you should add .bash_logout .bash_profile .bashrc to /etc/skel and /etc/bash.bashrc is your global bashrc file. But if it's just for one account just add the three files to $HOME of that account.

Don't change root's shell from sh, it's not a good idea. If your using root interactivelly go ahead and change shells for that session, but don't change root's /etc/passwd entry for the shell.

You may want to try the korn shell. It's a very nice shell, more powerful for scripting but has less of a focus on interactive use. Same applys for ksh too. It's kinda sad, Sun only provides csh and sh skel files. It's easy to add the different files needed.

Delilah
12-27-2001, 03:33 PM
Thank you both for responding. I grabbed bash from sunfreeware.com and just pkgadd-ed it. I'll just modify my sh search path for now and maybe give ksh a whirl later on.

Take care,

Delilah

Delilah
12-27-2001, 03:35 PM
ps- by "default" I meant packaged with the Solaris 8 dist. Indeed, sh was installed by default.

-D