- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Unix Shell??
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 12:33 PM
06-21-2002 12:33 PM
Unix Shell??
Thanks,
MO.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 12:36 PM
06-21-2002 12:36 PM
Re: Unix Shell??
# env | grep sh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 12:40 PM
06-21-2002 12:40 PM
Re: Unix Shell??
MANPATH=/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/usr/local/m
an/%L:/usr/local/man:/opt/upgrade/share/man/%L:/opt/upgrade/share/man:/usr/dt/share/man:/o
pt/pd/share/man/%L:/opt/pd/share/man:/opt/hparray/share/man:/opt/ignite/share/man/%L:/opt/
ignite/share/man:/opt/resmon/share/man:/opt/perf/man/%L:/opt/perf/man:/opt/OV/man/itose/%L
:/opt/OV/man/itose:/opt/omni/lib/man:/opt/openmail/share/man:/opt/asu/lanman/man:/opt/hpnp
l//man
HISTFILE=/.sh_history
SHELL=/sbin/sh
ENV=//.shrc
SHELL?????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 12:41 PM
06-21-2002 12:41 PM
Re: Unix Shell??
You can open the /etc/password file and check.
See against the user name.
Or
env | grep SHELL
/bin/ksh - Korne shell
/bin/sh - Bourne Shell
/bin/csh - C shell
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 12:48 PM
06-21-2002 12:48 PM
Re: Unix Shell??
/bin/ksh - Korne shell
/bin/sh - Bourne Shell
/bin/csh - C shell
They should have put a "b" in front of the "sh".
Thanks Piyush/Patrick.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 12:50 PM
06-21-2002 12:50 PM
Re: Unix Shell??
HTH
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 12:50 PM
06-21-2002 12:50 PM
Re: Unix Shell??
Yes, SHELL is your current shell, hence you are running the default Bourne shell.
If you want to change your default shell to Korn, you would issue:
chsh /bin/ksh
Refer to the man pages if you want to learn more about how Bourne shell works:
man sh
Hope that helps.
-Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 12:50 PM
06-21-2002 12:50 PM
Re: Unix Shell??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 12:52 PM
06-21-2002 12:52 PM
Re: Unix Shell??
No, you are running the Posix (standard) shell.
'/bin/sh' is a symbolic link to /usr/bin/sh. This is the Posix shell and is most desirable.
The old Bourne shell is really:
/usr/old/bin/sh
...and you don't want that!
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 12:54 PM
06-21-2002 12:54 PM
Re: Unix Shell??
/usr/bin/sh means POSIX or BOURNE?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 12:57 PM
06-21-2002 12:57 PM
Re: Unix Shell??
Its the Posix shell.../usr/bin/sh.
Sorry guys...I confused all of you.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 12:58 PM
06-21-2002 12:58 PM
Re: Unix Shell??
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 01:01 PM
06-21-2002 01:01 PM
Re: Unix Shell??
HP-UX offers the POSIX shell (statically linked in /sbin/sh, and dynamically linked in /usr/bin/sh). This is the preferred shell. In fact, /sbin/sh *must* be used for the root account. Failure to do so will lead to an unbootable system.
The Posix shell is a superset of Korn.
The old Bourne shell is useless.
As for the C-shell, this is a bug-laden poor-excuse for a shell. Stay away from it.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 01:01 PM
06-21-2002 01:01 PM
Re: Unix Shell??
Thank you all!!! and my hat off to HP for this wonderful forum. Honestly, I did not expect an answer so quickly. I'm hooked. My goal in the next few months is to learn all I can about Unix OS. Hopefully in a few months I'll be helping you guys out.
Thanks once again,
MO.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 01:06 PM
06-21-2002 01:06 PM
Re: Unix Shell??
HTH
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 01:08 PM
06-21-2002 01:08 PM
Re: Unix Shell??
For more info on the shells do a 'man sh'. It will tell you the difference between all the shells and where they are located.
If you want some online docs have a look at:
For 10.X:
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/A2615-90003/A2615-90003_top.html&con=/hpux/onlinedocs/A2615-90003/00/01/151-con.html&toc=/hpux/onlinedocs/A2615-90003/00/01/151-toc.html&searchterms=POSIX%7cshell&queryid=20020621-141357
Shell's user guide:
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90046/B2355-90046_top.html&con=/hpux/onlinedocs/B2355-90046/00/00/64-con.html&toc=/hpux/onlinedocs/B2355-90046/00/00/64-toc.html&searchterms=POSIX%7cshell&queryid=20020621-141448
POSIX shell:
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90072/B2355-90072_top.html&con=/hpux/onlinedocs/B2355-90072/00/00/10-con.html&toc=/hpux/onlinedocs/B2355-90072/00/00/10-toc.html&searchterms=POSIX%7cshell&queryid=20020621-141535
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2002 12:42 AM
06-22-2002 12:42 AM
Re: Unix Shell??
echo $SHELL.
Not only shell using the above command (echo $XXX. XXX is any environment variable) u can get the value of any environment variable.
Regards,
Sridhar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 01:02 AM
06-24-2002 01:02 AM
Re: Unix Shell??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 12:25 PM
06-24-2002 12:25 PM
Re: Unix Shell??
necessarily the same as the shell you're currently
in:
unix% echo $SHELL
/usr/bin/tcsh
unix% ksh
unix% echo $SHELL
/usr/bin/tcsh