The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-02-2004
Registered User
 

Join Date: Aug 2004
Posts: 4
Shell Diferrence

Hi I'm new to Unix, we're using HP-UX 11.
What are the difference of Korn, C, Bourne shells? And how would I know if what shell my unix is?

Thanks!
Reply With Quote
Forum Sponsor
  #2  
Old 09-02-2004
google's Avatar
Moderator
 

Join Date: Jul 2002
Location: Atlanta
Posts: 740
See this thread for a nice comparison of several shells
Reply With Quote
  #3  
Old 09-02-2004
Registered User
 

Join Date: Aug 2004
Posts: 4
Thanks google, but that is very much advance for me,

How will I know what login shell I used when I logged in?
Reply With Quote
  #4  
Old 09-02-2004
google's Avatar
Moderator
 

Join Date: Jul 2002
Location: Atlanta
Posts: 740
When you log into your system, type the following echo $SHELL What does it return? You can also look at the file /etc/passwd. Find the entry that corresponds to your userid. Your information will be contained on one line, each field is separated by a colon. What does the 7th field say? This field defines your default shell.

More than likely you are using either the Korn shell (ksh) or the Bourne shell (sh)

Last edited by google; 09-02-2004 at 07:11 PM.
Reply With Quote
  #5  
Old 09-03-2004
Ygor's Avatar
Moderator
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,249
.

HP-UX uses the posix shell by default, but also comes with ksh, csh, keysh, etc. See "man sh" for details.
Reply With Quote
  #6  
Old 09-06-2004
Registered User
 

Join Date: Aug 2004
Posts: 4
Hi google, when I type echo $SHELL, no information appears. When I type "env" there is one line that says SHELL=/usr/bin/sh, could that be the posix that Ygor mentioneeeeed, coz in man sh, it was the path given under posix while for bourne shell it /usr/bin/old/sh.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:01 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0