We all know that /dev/null is the 'bit bucker' or the 'black hole' (nothing but a special file
that discards all data written to it)
Background:
We also know the standard streaming conventions: STDIN(0) STDOUT(1) and STDERR(2)
&>filename =
Redirect both stdout and stderr to file "filename."
2>&1
# Redirects stderr to stdout.
# Error messages get sent to same place as standard output.
Now lets analyze:
>/dev/null 2>&1"
: This means that standard output goes to /dev/null and
standard error(2) should get redirected to where your standard output
is going(in our case it is /dev/null)
&> /dev/null
: As explained above, redirect standard output(1) and standard error(2)
to /dev/null
So coders and SA's this is actaully same and dont get(urself) and try
make other confused with this please :P
More you can read here
-DEBA
Subscribe to:
Post Comments (Atom)
🔭 First Impression: Exploring Grafana Mimir ... After Years with Thanos! Not an observability( OE ) purist, but I do appreci...
-
This is NOT a post about how to 'Tie a Tie'. Rather , just an effort to remember a few fundamentals before we strike a convers...
-
I have been having a great company with some of the very talented NCG’s ( New College Hires/ Grads ) last ~2yrs. I work for Intuit ...
-
Being in Operations its quite common to face piled up backlog on a regular basis, but at the same time to mitigate the same is even more fun...
No comments:
Post a Comment