CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Interview Success Kit - 9,000 Interview Que. & Ans.
Covers 9,000+ Interview Questions asked in actual MNC Interviews - all with model answers.
Get Your Dream Job Now - www.vyoms.com
Sponsored Links
Interview Questions
Our Services

INTERVIEW QUESTIONS LANGUAGES C++ DETAILS
Question :
How can you tell what shell you are running on UNIX system?

Category C++ Interview Questions
Rating (3.2) By 6 users
Added on 7/16/2015
Views 19
Rate it!
Answers:

You can do the Echo $RANDOM. It will return a undefined variable if you are from the C-Shell, just a return prompt if you are from the Bourne shell, and a 5 digit random numbers if you are from the Korn shell. You could also do a ps -l and look for the shell with the highest PID.



If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification Enter the above shown code: *
    Inform me about updated answers to this question

    Related Questions
    View Answer
    Suppose a 3-bit sequence number is used in the selective-reject ARQ, what is the maximum number of frames that could be transmitted at a time?

    View Answer
    Describe Stacks and name a couple of places where stacks are useful.
    View Answer
    Write the psuedo code for the Depth first Search.

    View Answer
    What are the advantages and disadvantages of B-star trees over Binary trees?

    View Answer
    Write a fucntion that will reverse a string.
    View Answer
    What is the difference between Stack and Queue?
    View Answer
    What are the differences between new and malloc?
    View Answer
    What is your reaction to this line of code?
    View Answer
    When should you use multiple inheritance?
    View Answer
    What are the debugging methods you use when came across a problem?
    View Answer
    How the compilers arranges the various sections in the executable image?
    View Answer
    What are the differences between a C++ struct and C++ class?
    View Answer
    How do you know that your class needs a virtual destructor?
    View Answer
    What is the difference between new/delete and malloc/free?
    View Answer
    What happens when a function throws an exception that was not specified by an exception specification for this function?
    View Answer
    Can you think of a situation where your program would crash without reaching the breakball, which you set at the beginning of main()?
    View Answer
    What issue do auto_ptr objects address?
    View Answer
    Is there any problem with the following:
    View Answer
    Why do C++ compilers need name mangling?
    View Answer
    Is there anything you can do in C++ that you cannot do in C?


    View Answer

    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL C++ Interview Questions & Answers

    User Options
    Latest 20 Questions
    What are the common properties Button controls used in ASP.NET?
    How to apply themes for asp.net application?
    What is the use of "HttpHandlers" in web.config ?
    What?s the difference between Linkbutton control and Hyperlink control?
    In ASP.NET how many navigation controls are there?
    List all different typesS of directives in .NET
    What are the State Management options in ASP.NET ?
    What is Global Assembly Cache ?
    What is the difference between ExecuteScalar and ExecuteNonQuery?
    What is the appSettings Section in the web.config file?
    List the major built-in objects in ASP.NET?
    What are the asp.net Security Controls?
    Explain the working of passport authentication.
    How can we apply Themes to an asp.net application?
    What are the event handlers that we can have in Global.asax file?
    Write code to send e-mail from an ASP.NET application?
    What are the different validators in ASP.NET?
    How to execute an sql query? How to fetch its result ?
    What is the difference between Session and Cookie?
    What are different types of Runtime Errors in PHP?


    Copyright ©2003-2016 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes


    Cache = 0.015625 Seconds