The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
identify the child shell arpit_narula SUN Solaris 1 10-29-2007 12:51 PM
how to display the shell type yipster UNIX for Dummies Questions & Answers 3 11-04-2006 09:38 PM
Identify type of file DebianJ Shell Programming and Scripting 1 11-17-2005 11:55 AM
Help on Simple shell that look for a file type Peterh Shell Programming and Scripting 5 10-07-2003 12:38 AM
External comands in C? merlin High Level Programming 2 01-08-2003 01:15 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-17-2006
swamymns swamymns is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 25
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
  #2 (permalink)  
Old 01-17-2006
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,796
$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-18-2006 at 12:39 AM.. Reason: typo...
  #3 (permalink)  
Old 01-18-2006
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,944
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.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:21 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0