![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Linux Shell Question: how to print the shell script name ? | meili100 | UNIX for Dummies Questions & Answers | 3 | 07-01-2008 10:55 AM |
| Difference between writing Unix Shell script and AIX Shell Scripts | haroonec | AIX | 0 | 04-11-2006 11:27 PM |
| How to run unix commands in a new shell inside a shell script? | hkapil | Shell Programming and Scripting | 2 | 01-04-2006 03:56 AM |
| how to convert from korn shell to normal shell with this code? | forevercalz | Shell Programming and Scripting | 21 | 11-22-2005 11:18 PM |
| simple shell - how to get a parameter typed in a shell script | cmitulescu | Shell Programming and Scripting | 3 | 12-05-2001 12:04 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
Is there an easy way to tell what shell you are using? I'm used to bash and wish I had it on this system (HP-UX setup), but I can't tell what shell I'm using. The prompt doesn't give it away, but there are several (chsh, keysh, ksh, sh) in my /bin directory which I'm guessing are all shells?! Is there a command to check the current shell, and can someone direct me to a place where i might find the bash shell on the net? Thanks!
|
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
The shell for a user is specified in the /etc/passwd file entry for that user as the last field, you can take a look at that or simply echo the SHELL variable on the command line:
echo $SHELL which will tell you what shell you are using at the moment. To download bash binaries: http://www.gnu.org/software/bash/bash.html Regards |
|
#3
|
||||
|
||||
|
Thank you for the quick reply!
|
||||
| Google The UNIX and Linux Forums |