Corey
by Corey
~1 min read

Categories

  • articles

Tags

  • Linux
2>/dev/null

In linux, there are three main file descriptors {0:stdin, 1: stdout, 2: stderr} and a “black hole” /dev/null, everything you write in it will disappear permanently.

In this case, 2>/dev/null is refers to redirect standard error message into null, if you want to ignore error message, you should have a try.