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 |
How do I delete files from command prompt?
Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be highly appreciated...
How would you change all occurrences of a value using VI?
how to change a normal file into hidden file
What is difference between grep and find command in unix?
How many unix commands are there?
What is time_t?
Which mode is used for allowing file write,read and append mode?
Will rm -r* removes hidden files?
What does sed command do in unix?
Which RAID Levels supported by LVM?
How do you change file permissions?