- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: default 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
08-14-2005 04:30 PM
08-14-2005 04:30 PM
What is the command to verify defualt shell ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2005 04:38 PM
08-14-2005 04:38 PM
Re: default shell
for more information on the different shell, do "man sh"
to futher drill down on the man pages, try:
man sh-bourne #Bourne Shell (/usr/old/bin/sh) description.
man ksh #Korn Shell (/usr/bin/ksh) description.
man sh-posix #POSIX Shell (/usr/bin/sh) description.
man csh #C Shell (/usr/bin/csh) description.
man keysh #Key Shell (/usr/bin/keysh) description.
to verify the default shell,
do:
echo $SHELL
hope this helps too!
regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2005 04:44 PM
08-14-2005 04:44 PM
Re: default shell
note that the default shell in hp-ux is the POSIX shell. Note that the Bourne shell is a subset of the default HP-UX shell.
read more on page 466 on marty's book!
regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2005 04:54 PM
08-14-2005 04:54 PM
Re: default shell
to verify shell:
# echo $SHELL
or
# cat /etc/passwd
the last parameter for each user
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2005 04:56 PM
08-14-2005 04:56 PM
Re: default shell
forgot the first part of your questions, here goes:
http://docs.hp.com/en/B2355-90046/ch15s03.html
http://docs.hp.com/en/B2355-90164/ch03s04.html
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2005 05:29 PM
08-14-2005 05:29 PM
Re: default shell
You can ehco the shell when you logged on as a user to fing the default shell
by
echo $SHELL
or the password file /etc/passwd has a record of the username, user-id, user group, home directory and the default shell for the user.
IA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2005 07:39 PM
08-14-2005 07:39 PM
Re: default shell
echo $SHELL
may show what you actually running shell;
also for to understand your users running
shell;
cat /etc/passwd|grep -i userid or username
Good Luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2005 12:58 AM
08-15-2005 12:58 AM
Solutionexport x=1
In Bourne, the produces the error:
x=1: is not an identifier
but for POSIX shells, the command works just fine. Notice I said "POSIX shells"? POSIX is a standards organization and you can read more about it at http://www.posix.com/posix.html
The Korn shell is the model for POSIX standard so the Korn shell, BASH and HP's POSIX shell are all POSIX-compliant shells which means that they are virtually identical. Most of the differences are in user profiles, specialized user interfaces such as defining non-ASCII keys (like arrow keys), and command line recall/editing options.
So if you're familiar with Korn or BASH, there is virtually no difference between the shells. NOTE: in HP-UX, the root shell *MUST* be /sbin/sh. The /sbin directory is the special purpose directory used for bootup and single user mode. All commands in /sbin have been compiled to not require the /usr/lib directory (which is not present in single user mode).
Bill Hassell, sysadmin