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


Please Help Members By Posting Answers For Below Questions

What is merge command in unix?

942


Differentiate cmp command from diff command.

586


What are the differences among a system call, a library function, and a unix command?

567


What are bash commands?

591


What is ctrl d?

594






How do you repeat a command in terminal?

588


How to display no of records in oracle using unix command?

589


What is the use of sed command in unix?

597


Which command will print your home directory on screen?

546


Who invented grep?

651


What is the command to find hidden files in the current directory?

581


Which command can you use to find the currently running process in unix server?

586


Which command is used to copy files?

556


What is the comma to show the space allocation of files?

558


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

620