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
Describe the zip/unzip command using gzip.
What is the comma to display different lines that are found when compare two files?
What is awk good for?
What is rmdir command?
What is the pipe command?
How do I find previous commands in unix?
Is it inbetween or in between?
Can you enlist some commonly used network commands?
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
What is the unix command to confirm a remote host is alive or not?
What is nr in awk command?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What is the significance of the 'tee' command?
What is a command and examples?
What is .sh file?