what is the cmd to display the last exit status in UNIX?

Answers were Sorted based on User's Feedback



what is the cmd to display the last exit status in UNIX?..

Answer / arvind kumar

echo $? will give you status og last command.

Is This Answer Correct ?    18 Yes 0 No

what is the cmd to display the last exit status in UNIX?..

Answer / siva

Try this command

$?

Is This Answer Correct ?    11 Yes 2 No

what is the cmd to display the last exit status in UNIX?..

Answer / arjun

$? it will give the status of the previous command
it will give 0(zero) last command is successful else it will
give any non-zero character.

Is This Answer Correct ?    6 Yes 0 No

what is the cmd to display the last exit status in UNIX?..

Answer / arun kumrr

echo $?

Is This Answer Correct ?    4 Yes 0 No

what is the cmd to display the last exit status in UNIX?..

Answer / kk11749

$?

Is This Answer Correct ?    4 Yes 2 No

Post New Answer

More Unix Commands Interview Questions

What is use of sed command?

12 Answers   BitWise, Infosys, Reliance,


What is the difference between AWK and SED commands? Plz give example and explain...

3 Answers   RBS,


how to delete entire records in unix ?

13 Answers   Cap Gemini,


How to see unused port number in Solaris?

2 Answers   HCL,


What do chgrp command do?

0 Answers  


What is command substitution?

0 Answers  


Give Command that will change the name of a directly from paypal to eBay

3 Answers   Alcatel, IBM,


What is awk used for?

0 Answers  


Which RAID Levels supported by LVM?

5 Answers  


Suppose 1000 processes are running on the system out of those if you have to show only certain process ids which command will you use?

5 Answers  


What is an Environment Variable?

4 Answers   CTS,


What do know about tee command?

0 Answers  


Categories