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

There are 4 network Interfaces, how can we find which one is Primary.

2 Answers  


What is the difference between semaphore and spinlock?

1 Answers  


what is meant by mysql clustering

2 Answers  


why you are using nis server

2 Answers  


My root password has been changed, how can i enter into the system without root password?

6 Answers  


How to trace any process background processing?

5 Answers  


What is the use of DNS Server? Name other servers works same as like DNS?

2 Answers  


What file should you examine to determine the defined runlevels for your system?

7 Answers  


how do you configure linux system as a router?

4 Answers   HCL,


Without Using $date -dyesterday. How I get the yesterday's date ?

3 Answers   DELL,


How to apply patch for multiple servers .

1 Answers   IBM,


What is the difference between RedHat linux and Fedora and Ubuntu?

3 Answers   CSC,


Categories