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

Tell me command which is use for create quota database in Linux.

7 Answers   Wipro,


tell me some of the Linux HotKeys do you know?

3 Answers  


How to Trouble shoot performance issue in RHEL administration ? please give to one example

0 Answers  


In Linux(RHEL) server have two users with same name. one is local user and second one is NIS user. if you login the server which user will login (local or NIS)

1 Answers  


how do i check which package has installed some command suppose ls , mkdir or whatever ???

8 Answers  






what is the difference between NIS and DNS...?

5 Answers   IBM,


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 command can you use to review boot messages?

6 Answers  


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

7 Answers  


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

1 Answers  


How is the difference between ftp and sftp ? and explain how to create ftp server and sftp server with example ?

2 Answers   Bank Of America, IBM,


will u plz send me the complete steps of installation of red hat linux on intel's core 2 duo processor?

1 Answers  


Categories