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 s and g in sed command?
A file has 1000 lines and i want to display only 1st line how to do it? pls ..tel me
What are awk commands?
How to rename files and folders?
what is the command to find out the difference between files and folders?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
Who command in unix?
How to get the operating system's information in unix?
What happens when we execute a unix command?
distinguish between interrupts and exceptions?
How many unix commands are there?
What difference between cmp and diff commands?