How do display error messages instantly when command fails?

Answers were Sorted based on User's Feedback



How do display error messages instantly when command fails? ..

Answer / sureshkumar

/var/log/message

Is This Answer Correct ?    6 Yes 1 No

How do display error messages instantly when command fails? ..

Answer / ravikumar

echo $?

Is This Answer Correct ?    3 Yes 0 No

How do display error messages instantly when command fails? ..

Answer / pankaj pal

To check the command successfully executed or not we can
run command echo $?
if the result is 0 meaning successful, else will be had a
problem.
For error messages you can check /var/log/
or /var/log/messages

Is This Answer Correct ?    2 Yes 0 No

How do display error messages instantly when command fails? ..

Answer / aravinth

you can try
cat /etc/var/log

Is This Answer Correct ?    7 Yes 7 No

Post New Answer

More Linux AllOther Interview Questions

How to sort a file of size 2N bytes, if I have N bytes of memory?

2 Answers   Yahoo,


What are main anti-spam features available in sendmail?

1 Answers   CSC,


What is the complete name of the default configuration file for LILO?

1 Answers  


what is difference between  TFTP abd FTP?

0 Answers  


how can i make an user to nologin without locking the account for the user

7 Answers   CSS, CSS Corp,






why you are using nis server

2 Answers  


how can i create samba server in fedora 9.0 ? and domain/LDAP controller! clilent side is windows pc .?

0 Answers   Wipro,


What text filter can you use to display a binary file in octal numbers?

1 Answers  


How does the boot process[init levels] work on Linux? How is it different from Solaris?

3 Answers  


How to know what are the packages required for any service? Example: How to know what are the package required for send mail services. using any command it is passable are not?

2 Answers   OnMobile,


how to install linux OS? pls send step by step

3 Answers  


am installed windows and later i installed ubuntu i want to unistall ubuntu can any one tel the procedure to uninstall ubuntu in my windows 7 please mail to me ---kiranpulsar2007@gmail.com and later i want to install ubuntu after uninstalling ubuntu tel the procedure for that also i dont know to patrition the hard disk drive please tel to them please reply

1 Answers  


Categories