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

what is difference between  TFTP abd FTP?

0 Answers  


Tell me the 5 differences between Linux and Unix?

4 Answers  


I want to send pop-up message to samba users when they access the shared folder.... for eg: i want to tell them (dont copy mp3 and video files)

2 Answers  


What are the questions we are expecting for 2yrs. experience guy for linux company interview questions?

1 Answers  


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

1 Answers  






How To Hide the FTP Version?

3 Answers   Wipro,


As a system admin i want to know some things what are the troubleshooting issues we are facing frequently and what are the tickets will be raised.

0 Answers   Ondot,


How to catagories tickets in RHEL, which tickets are belong to PROBLEM, INCIDENT and CHANGE management? please given to me with examples

0 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,


This question is belong to linux support. "one of my customer told to me, my application is getting slow response". how to resolve the issue. what are the steps you will follow to resolve the issue.

0 Answers  


what is the use of runlevel 4 in redhat linux? in which cases it will use.

1 Answers  


how do you configure linux system as a router?

4 Answers   HCL,


Categories