I know what
program > /dev/null 2>&1
does. It redirects the output to /dev/null and 2>&1 means to redirect the error output in the same place where the output is sent.
My problem is I always have to google it because I never remember it.
So, I try &2>1, 1>2&, 1>&2... I try every combinaison until I google it...
What's the trick to remember it easily ?
