- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- What kind of Shell I'm using
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
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
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-2001 01:33 AM
тАО08-14-2001 01:33 AM
What kind of Shell I'm using
I want to know what kind of shell I'm using after I login my system with prompt '#'. How can I do?
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2001 01:40 AM
тАО08-14-2001 01:40 AM
Re: What kind of Shell I'm using
There are two basic ways to find out.
# grep -i userid /etc/passwd (substitute your userid and where it states /usr/bin/ksh as the last part of the line)
or
# ps (your shell will show as 'sh' or 'ksh' as one of the active processes from the output)
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2001 02:00 AM
тАО08-14-2001 02:00 AM
Re: What kind of Shell I'm using
you can type
echo $SHELL
at the prompt to determine what kind of shell you are currently using. You can use the 'chsh' command to modify it temporarily.
For permanent modification you have to modify the .profile file with the appropriate information concerning the shell type you'd like to use.
Regards
Emanuele
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2001 02:07 AM
тАО08-14-2001 02:07 AM
Re: What kind of Shell I'm using
In /etc/passwd, there is one line per username. Columns, in each line, are field separator, the end field show you what kind of shell a giving user is using.
Sam->Accounts for Users and Groups ->Users
Hilight an antry -> Menu Actions -> Modify
See the "Star-Up Program" which mention the script a given user is using.
Don't forget to cancel the modification. It was just for showing the startup script.
Magdi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2001 04:39 AM
тАО08-14-2001 04:39 AM
Re: What kind of Shell I'm using
#echo $SHELL gives u the which shell u r using
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2001 06:18 AM
тАО08-14-2001 06:18 AM
Re: What kind of Shell I'm using
SHELL=/sbin/sh
which is the POSIX shell.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2001 07:12 AM
тАО08-14-2001 07:12 AM
Re: What kind of Shell I'm using
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2001 09:50 AM
тАО08-14-2001 09:50 AM
Re: What kind of Shell I'm using
you get when you log in, but it doesn't get
updated dynamically. That is, after you log into
your normal shell (say, /usr/bin/sh), if you then
start ksh or csh or whatever, $SHELL will
still say /usr/bin/sh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2001 09:54 AM
тАО08-14-2001 09:54 AM
Re: What kind of Shell I'm using
if you are at prompt # you are most probabley a root and using /bin/sh shell.
#ps will give you what shell you are using
if you using nis
#ypcat passwd |grep username (and last part tells you your username)
if you are using local password file
#cat /etc/passwd |grep username (will work)
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2001 12:40 PM
тАО08-17-2001 12:40 PM
Re: What kind of Shell I'm using
first: if you type "echo $0" you will get the name of the
shell process running (with a leading dash, perhaps ;-)
case $0 in
-sh|sh) echo POSIX-shell ;;
-ksh|ksh) echo Korn-shell ;;
-csh|csh) echo C-shell ;;
-rsh|rsh) echo restricted POSIX-shell ;;
-dtksh|dtksh) echo DeskTop Korn-shell ;;
*') some other shell... ;;
esac
second: if the name of your process is "sh" it still could
be the old Borune-shell (/usr/old/bin/sh), but this is
not very likely...
HTH,
Wodisch