No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

FAQ-How to Query the Shell Used by Current Users

Publication Date:  2012-07-25 Views:  26 Downloads:  0
Issue Description
Q:
How to query the shell used by current users on Solaris? 
 
Alarm Information
Null
Handling Process
A:
Run the following command:
#ps | grep $$ | awk ’{print $4}’
Where,
The ps command without parameters displays the process related to the current terminals.
The $$ variable stores the PID of the current process.
The fourth column of ps lists the commands used by the process. In case of shell command, the name of shell (such as sh/ksh) is displayed. awk ’{print $4}’ means that only the values in the fourth column are displayed.
In addition, run the echo $SHELL command to view the default shell. 
 
Root Cause
Null
Suggestions
Null

END