- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Which is posix 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
03-10-2002 09:35 PM
03-10-2002 09:35 PM
I am always confused about this issue.
Which is the posix shell in HP-UX? Is it /usr/bin/sh or /sbin/sh?
Is there a command to know the type of shell I am using?
Please enlighten me!!!
bye,
Raghu.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2002 09:55 PM
03-10-2002 09:55 PM
Re: Which is posix shell?
As of the HP-UX 10.0 release, the OSF POSIX Shell replaces the Korn Shell and Bourne Shell. Thus, /usr/bin/sh will be the POSIX Shell, and /usr/bin/ksh will be linked to /usr/bin/sh. However, /usr/old/bin/sh will contain the Bourne Shell for those users who still need it.
Hopre you are enlighten now :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2002 09:57 PM
03-10-2002 09:57 PM
Re: Which is posix shell?
For more information read the man pages.
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90164/B2355-90164_top.html&con=/hpux/onlinedocs/B2355-90164/00/00/36-con.html&toc=/hpux/onlinedocs/B2355-90164/00/00/36-toc.html&searchterms=shell%7cposix&queryid=20020310-215807
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2002 10:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2002 10:43 PM
03-10-2002 10:43 PM
Re: Which is posix shell?
really ur response DID enlighten me ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 07:08 AM
03-11-2002 07:08 AM
Re: Which is posix shell?
The answer is BOTH!
/usr/bin/sh is the dynamically linked POSIX shell which should be generally used. That's what I use in my scripts though /sbin/sh will also work.
/sbin/sh is the statically linked POSIX shell that should be used by root. DO NOT CHANGE ROOT'S DEFAULT SHELL! When you boot into single user or maintenance mode, the dynamic libraries are not available by default. Root needs to use /sbin/sh to avoid that problem. Changing root's shell can cause you to have to boot into a recovery shell to access the system for maintenance.
Darrell