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 pid?
What does the metacharacter mean?
Why is it called grep?
What is use of sed command?
12 Answers BitWise, Infosys, Reliance,
What command is used to replace the existing string with some other?
What does the “echo” command do?
How to use grep command to list find the records of a file containing 10 different strings?
Explain iostat, vmstat and netstat.
How do you find which version and name of unix you are using at the command prompt?
Can you write a command to erase all files in the current directory including all its sub-directories?
How do you remove a crontab file?
What does grep v do?