![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| identify the child shell | arpit_narula | SUN Solaris | 1 | 10-29-2007 09:51 AM |
| how to display the shell type | yipster | UNIX for Dummies Questions & Answers | 3 | 11-04-2006 06:38 PM |
| Identify type of file | DebianJ | Shell Programming and Scripting | 1 | 11-17-2005 08:55 AM |
| Help on Simple shell that look for a file type | Peterh | Shell Programming and Scripting | 5 | 10-06-2003 09:38 PM |
| External comands in C? | merlin | High Level Programming | 2 | 01-07-2003 10:15 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
how to identify the type of shell using comands..
Dear friends,
please tell me how to identify the type of the shell (whether cShell, kshell or anything else) please tell me the command. waiting for ur reply.... regards, swamymns |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
$SHELL holds the value you are looking for.
Yet another way would be to lookup the info in /etc/passwd. Last edited by vino; 01-17-2006 at 09:39 PM. Reason: typo... |
|
#3
|
|||
|
|||
|
another way,
a simple ps command would get u the listing. shell that you use currently also would be included. Ex: let's say your default shell is /bin/ksh and in .profile at the end; loaded another shell /bin/bash ps command would give the listing of all shells spawned and the current shell you are in. |
|||
| Google The UNIX and Linux Forums |