What are standard output and standard error?
The output of a Linux command contains two streams of data: standard output (stdout) and standard error (stderr0), while the standard output is the normal output if the command has no errors, the standard error is the error generated by the command. Output may contain both standard output and standard input. Example of stdout and stderr:
Let’s run the following shell script
# /bin/sh
ls
apt update
The first command ran successfully, but the second one generated error. Since stdout and stderr are two separate data streams, they can be handled separately.
What is /Dev/Null in Linux?
If you have been learning shell programming, you may already have come across something like /dev/null. In this article, we will understand what it is and how it is used. Let’s start off by understanding what /dev is.
Contact Us