never touched Solaris before is there an easy command to see if Bash is installed?
Probably a silly question, thanks for your help
Maybe I'm oversimplifying this but have you tried typing "bash" at the command prompt?
To check if bash package is installed try this command (verified on Solaris 10):
pkginfo -l SUNWbash
It may be also installed from 3rd-party software repository, then, try:
pkginfo | grep -i bash
grep
to look into /var/sadm/install/contents
, that file lists all the files installed in packages. grep bin/bash /var/sadm/install/contents
Oct 14, 2014 at 4:00
If bash is installed the follwing will state which version you have, otherwise thorw an error
/usr/bin/bash --version
Remember that can bash can also be compiled from the source by a regular user account and run from a home directory. Try find / -name '*bash*'
or so.
The locate command simply searches a database of files on the system. My hack on my SUNOS uses the find command to create a text database and then just greps that datebase for future file hunts. Note that creating the text database (about 200 Mbytes) on my SUNOS takes a long time. The grep only takes a few seconds per search.
find / > ~/locate_db
grep bin/bash ~/locate_db