Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Describe the zip/unzip command using gzip.

1227


What is the comma to display different lines that are found when compare two files?

1247


What is awk good for?

1194


What is rmdir command?

1155


What is the pipe command?

1247


How do I find previous commands in unix?

1252


Is it inbetween or in between?

1110


Can you enlist some commonly used network commands?

1158


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

1631


What is the unix command to confirm a remote host is alive or not?

1282


What is nr in awk command?

1278


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

1287


What is the significance of the 'tee' command?

1255


What is a command and examples?

1287


What is .sh file?

1261