how to identify the type of shell using comands..


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting how to identify the type of shell using comands..
# 1  
Old 01-17-2006
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
This User Gave Thanks to swamymns For This Post:
# 2  
Old 01-17-2006
$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  
Old 01-18-2006
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Use of the below ftp comands

plz let me know what the below ftp is doing it . ftp -m amazon-d . -i /test/load/y748_W*.stc (1 Reply)
Discussion started by: ramkumar15
1 Replies

2. Shell Programming and Scripting

Identify variables used in the shell script

Hi, Is there any simple way to get/identify the variables that are used in a file and print those variable names. If I have something like this in a file, /$var/temp_dir/${var2}${var3}.log I want to display the variables 'var', 'var2' and 'var3' from that file. I tried something like... (6 Replies)
Discussion started by: pvamsikr
6 Replies

3. Solaris

identify server type from ufsdump

Hi guys I have a little problem. I need to identify the server type from some ufsdumps. How can i do that? I grepped with: grep Sun messages* but with this command, if there server was never rebooted, i cannot recognize the server type. any other idea? thx in advance Ivan (5 Replies)
Discussion started by: beta17
5 Replies

4. Shell Programming and Scripting

test script to identify SHELL

I am new to BASH and writing a small script to identify the SHELL . #!/bin/bash BASH='/bin/bash' KSH='/bin/ksh' if then echo "it's Bash" else echo "it's not Bash" fi $ bash -x a.sh + BASH=/bin/bash + KSH=/bin/ksh + '' a.sh: line 4: where am I missing . PLease advice . (10 Replies)
Discussion started by: talashil
10 Replies

5. Solaris

How to identify which type of Apache is installed?

Hi, I need to find out which type of Apache is installed. following is the list of Apache types Covalent, IBM HTTP, HP Apache-based, Oracle, Stronghold and may be some other as well. If anyone know how to figure out this, please share it with me. Thanks Sarwan (3 Replies)
Discussion started by: sarwan
3 Replies

6. Linux

how to identify the raid type on Linux?

Hi any idea on why I am getting this? /sbin/mdadm --detail /dev/md0 mdadm: md device /dev/md0 does not appear to be active. thanks. (2 Replies)
Discussion started by: melanie_pfefer
2 Replies

7. AIX

how to identify the raid type on aix

hi how to identify the raid type on aix? thx (1 Reply)
Discussion started by: melanie_pfefer
1 Replies

8. Solaris

identify the child shell

how can we identify which child shell being created by the sh command. Is it necessary that the child shell created will be the same as parent shell or it may be different. How can we change this setting? please help Thanks in advance (1 Reply)
Discussion started by: arpit_narula
1 Replies

9. Shell Programming and Scripting

Identify type of file

hi all, i have the next question: how can i identify the type of a file? . I'm working in Unix (Solaris 5.7) and i would like identify if a file is or not is a "flat file". I need have a program what separates the flat file in a directory, and the excel file in another directory. I must get... (1 Reply)
Discussion started by: DebianJ
1 Replies

10. Programming

External comands in C?

Hey all, I'm writting my first C program (Apart from the little ones I did to learn the program). What I want for this program to do is ping a range of IP's and then place the reply if alive into a file the compare all in that file to the /etc/hosts file to find the host name. I know I... (2 Replies)
Discussion started by: merlin
2 Replies
Login or Register to Ask a Question