GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Operating System  >  Unix Programming

 Print  |  
Question:  How can you recognize a shell (C / Korn / Bourne) just by looking at the prompt?



January 01, 2008 05:23:51 #5
 nareshbhatm   Member Since: January 2008    Total Comments: 2 

RE: How can you recognize a shell (C / Korn / Bourne) just by looking at the prompt?
 
$echo $SHELL
/bin/ksh
$
$csh
% echo $SHELL
/bin/ksh
% hello
hello: Command not found.
%

-->> The variable $SHELL doesn't show the shell when I changed the shel from ksh to csh
-->> Even trying to execute a non shell command (like hello) didn't tell the name of the shell as you can see here above. 
     

 

Back To Question