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

How do I run a whois command?

596


What is the function of grep command in unix?

583


What is unix command?

579


Differentiate cmp command from diff command.

586


How to use grep command to list find the records of a file containing 10 different strings?

643






How many unix commands are there?

623


What is rmdir command?

549


What are reported commands?

562


Differentiate cat command from more command.

574


Describe the zip/unzip command using gzip.

608


What is the general format of unix command syntax?

688


What are the general commands in using unix os for a beginner?

577


What is the first character of the output in ls l command?

629


What is the size of time_t?

640


What is ctrl d?

592