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 the use of find command in unix?

0 Answers  


How to setup sudo, only can use for particular date & time only ( for solaris10 )

1 Answers   ups,


Write a command that will output the sorted contents of a file named in.txt and place the output in another file named out.txt, while at the same time excluding duplicate entries.

1 Answers  


What are awk commands?

0 Answers  


distinguish between user mode and kernel mode?

6 Answers   Infosys,






what are the differences between CUI and GUI interfaces?

52 Answers   College School Exams Tests, HCL, HP, IBM, IBMR, NIIT, Talco, Wipro,


How do you move a process which is running background to foreground?

9 Answers  


what are the different commands used to view the contents of a file?

5 Answers  


What are filter commands in unix?

0 Answers  


What is shrinking file system in AIX where it actually resides?

0 Answers  


Explain the steps that a shell follows while processing a command.

0 Answers  


How do you grep a case insensitive?

0 Answers  


Categories