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 does pipe () return?

0 Answers  


How do you repeat a command in terminal?

0 Answers  


How many unix commands are there?

0 Answers  


Write a command to display a file’s contents in various formats?

0 Answers  


When the shell is reading the command line what is the difference between text enclosed between double quotes ( ” ) and text enclosed between signal quotes ( ’ )?

3 Answers  






What is the use of awk command in unix?

0 Answers  


How to delete a directory containing files and folders?

3 Answers  


What are the commands in UNIX to list the files in a Directory?

0 Answers   CGI,


what do you understand bythe term 'de-mountable volumes'?

2 Answers   Infosys,


What does the “echo” command do?

0 Answers  


How does the user view the contents of a text file in UNIX?

9 Answers   IBM,


how to make IGNITE-BACKUP in HP-UX?

4 Answers   HP,


Categories