![]() |
|
|
|
|
|||||||
| 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 | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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! |
| Forum Sponsor | ||
|
|
|
#3
|
|||
|
|||
|
Thanks google, but that is very much advance for me,
How will I know what login shell I used when I logged in? |
|
#4
|
||||
|
||||
|
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. |
|
#5
|
||||
|
||||
|
.
HP-UX uses the posix shell by default, but also comes with ksh, csh, keysh, etc. See "man sh" for details.
|
|
#6
|
|||
|
|||
|
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.
|
|||
| Google The UNIX and Linux Forums |