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 the first character of the output in ls l command?

631


What is the pipe command?

574


What is .sh file?

616


Using unix command how to display no of records in oracle?

606


What does the “echo” command do?

624






What does 'mkdir' command do in UNIX?

660


Write a command that will display files in the current directory, in a colored, long format.

683


What is the use of tee command?

567


How do I search for text in vi?

584


Give the command for finding the current date.

581


How does the system know where one command ends and another begins?

1574


What is the use of egrep command in unix?

624


What does this command do,"$more readme.txt“?

687


Explain command to show the space allocation of files?

629


How do I delete files from command prompt?

549