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

why metadb requires a seperate slice to create Solaris volume manager

0 Answers   Wipro,


distinguish between physical addresses and logical address?

23 Answers   College School Exams Tests, CTS, Infosys, SAX, TATA, TCS,


How would you change all occurrences of a value using VI?

4 Answers  


What is grep command in unix with examples?

0 Answers  


How will you know who are the users logged in to the system before 15 minutes?

4 Answers   Amazon,


Can you write a command to erase all files in the current directory including all its sub-directories?

1 Answers  


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

5 Answers   MEIT, Syntel,


in a growing log file how will you see the 1st 99 lines?

7 Answers  


How can you change the owner or group of a file?

1 Answers  


In UNIX, what is the command to kill a process?

10 Answers  


write grep commands to select the lines that have exactly two characters

8 Answers   PSI Data Systems,


what is the difference between relative path and absolute path?

7 Answers  


Categories