what is the cmd to display the last exit status in UNIX?

Answer Posted / arvind kumar

echo $? will give you status og last command.

Is This Answer Correct ?    18 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is awk used for?

624


What is the behavioural difference between cmp and diff commands?

677


What command is used to switching between users in unix?

564


How do I find previous commands in unix?

594


What does awk stand for?

615






What do know about tee command and its usage?

591


How do I use nslookup?

577


Which command is used to kill the last background job?

783


How can you see the command line history?

586


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

763


What are the commands in UNIX to list the files in a Directory?

620


Which command is used to find whether the system is 32 bit or 64 bit?

633


How can we use grep command in unix?

618


What is the use of sed command in unix?

601


Which command is used to copy files?

556