what is the cmd to display the last exit status in UNIX?
Answers were Sorted based on User's Feedback
Answer / arvind kumar
echo $? will give you status og last command.
| Is This Answer Correct ? | 18 Yes | 0 No |
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 $0 bash?
Which command will you use to change the permissions on file?
What is the unix command to confirm a remote host is alive or not?
what is the difference between relative path and absolute path?
what is the default permission for /etc/shadow file in UNIX
Why we are using UNIX OS when we are doing the testing in our application?
What is the difference between pipe and xargs?
What is the use of awk command in unix?
what is the significance of "su" command?
What is the use of pipes?
How we will execute previous command in vi editor?
How do you create a file in UNIX
36 Answers Accenture, EMG, Nokia, QA, TD,