what is the cmd to display the last exit status in UNIX?
Answer Posted / 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 |
Post New Answer View All Answers
How can you see the command line history?
What is the difference between cat and more command?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
What is grep command in unix with examples?
What is nr in awk command?
What is in grep command?
how to sort the content of the file based on numeric values
What command will change your prompt to myprompt?
What is the unix command to confirm a remote host is alive or not?
How do I search a whole word in vim?
What is the general format of unix command syntax?
How do you repeat a command in terminal?
What is updatedb?
What is the use of awk command in unix?
Explain command to show the space allocation of files?