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 does pipe () return?
How do you repeat a command in terminal?
How many unix commands are there?
Write a command to display a file’s contents in various formats?
When the shell is reading the command line what is the difference between text enclosed between double quotes ( ” ) and text enclosed between signal quotes ( ’ )?
What is the use of awk command in unix?
How to delete a directory containing files and folders?
What are the commands in UNIX to list the files in a Directory?
what do you understand bythe term 'de-mountable volumes'?
What does the “echo” command do?
How does the user view the contents of a text file in UNIX?
how to make IGNITE-BACKUP in HP-UX?