bash - What does " 2>&1 " mean? - Stack Overflow
https://stackoverflow.com/questions/818255/what-does-21-mean
WEBAt first, 2>1 may look like a good way to redirect stderr to stdout. However, it will actually be interpreted as "redirect stderr to a file named 1 ". & indicates that what follows and precedes is a file descriptor, and not a filename. Thus, we use 2>&1. Consider >& to be a redirect merger operator.
DA: 4 PA: 82 MOZ Rank: 10