How do display error messages instantly when command fails?

Answer Posted / rallapalli

HE did not ask how to redirect error of a command. He said
clearly. How do you display error message instantly when
command fails.

ans:
By default it will display no need to do any thing. when u
type wrong command the error will display on screen.
Ex:
#usradd tom
ERR: command not found

ok?

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the command to calculate the size of a folder?

773


What could be the problem when a command that was issued gave a different result from the last time it was used?

1018


Which of the commands will replace all occurrences of the word rate with the word speed in the file racing?

770


How can you copy lines into the buffer in command mode?

817


Explain about chmod options filename?

865


Which command is used to terminate a process?

712


The ‘logout’ built in command is used to

998


What are runlevels in linux?

811


How do I find the linux version?

777


What the command used for search file or files for specific text?

742


What is the use of cp p command?

825


What command should you use to check your file system?

769


How do I use nslookup in linux?

757


What is the difference between cd and cd in linux?

761


What command should you use to check the number of files and disk space used and each user’s defined quotas?

855