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

How can you see the command line history?

1073


What is the difference between cat and more command?

1221


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

1152


What is grep command in unix with examples?

1131


What is nr in awk command?

1127


What is in grep command?

1115


how to sort the content of the file based on numeric values

1727


What command will change your prompt to myprompt?

1243


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

1134


How do I search a whole word in vim?

1124


What is the general format of unix command syntax?

1789


How do you repeat a command in terminal?

1149


What is updatedb?

986


What is the use of awk command in unix?

1064


Explain command to show the space allocation of files?

1067