How do display error messages instantly when command fails?
Answers were Sorted based on User's Feedback
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 |
What are the differences between FTP , NFS , SAMBA servers explain separately.
How to convert an IP address to a Domain name using Unix ?
What is page-in and page-out in redhat linux?
Friends, I don't have enough free space in root directory. but in home directory I have 40gb free. So I can not install anything in root directory (which occupies more space) Please suggest me If there is any possibility to increase the root directory size by minimising the home directory's.
tell me some of the Linux HotKeys do you know?
1. User gaves df -h and the system get hanged. why ? 2. what is the hardlink and softlink mount ? 3. why is portmape should be started ? 4. what is nologin option 5. how to restrict users from accessing nfs ? 6. what is the difference between cpio and tar 7. what are the kernel parameters ? how to find out it ? 8. why we use sysctl.conf ? 9. if we gives init1 from multiuser runlevel, will it affect other users who already logged in to the system ? 10. what will be the available space to use after configuering raid5 with 5 disks each having 5gb spce ?
What is the complete name of the default configuration file for LILO?
Why is it suggested to disable journalism in ext4 filesystem?
How to sort a file of size 2N bytes, if I have N bytes of memory?
How do display error messages instantly when command fails?
how do i check which package has installed some command suppose ls , mkdir or whatever ???
Tell me the 5 differences between Linux and Unix?