wikipedia:stderr
2>&1
&>
sudo -S
sudo --stdin
2>/dev/null
your-command-with-stdout-and-stderr 2>&1 | tee -a your file
err() { echo "[$(date +'%Y-%m-%dT%H:%M:%S%z')]: $*" >&2 } if ! do_something; then err "Unable to do_something" exit 1 fi
gcloud
/dev/stdin
/dev/stdout
/dev/stderr
/dev/null
set -x, 2>&1, stdbuf
Advertising: