The shell handles error messages using the special STDERR file descriptor. The STDERR file descriptor references the standard error output for shell. This is the location where the shell sends error messages generated by the shell or programs and scripts running.
By default , the STDERR file desriptor points to same place as STDOUT file descriptor . This means it goes to monitor display.
error produced to display:
error being transferred to output using STDERR file descriptor :