'what's difference between `2>&1 >/dev/null &` and `>/dev/null 2>&1 &`

Had found 'What's difference between "2>1 > /dev/null" and "2>&1 >/dev/null"? ' and '1>/dev/null and >/dev/null and &>/dev/null', but they can't make me clear the problem about my question.

  • 2>&1 >/dev/null &
## Ubuntu 16.04
root@lm-pc:~# nohup python -m SimpleHTTPServer 8088 2>&1 >/dev/null &
[1] 31509
root@lm-pc:~# nohup: ignoring input and redirecting stderr to stdout
^C(cursor stuck in here)

## Debian 9.5
root@ops:~# nohup python -m SimpleHTTPServer 8088 2>&1 >/dev/null &
[1] 5503
nohup: ignoring input and redirecting stderr to stdout
root@ops:~# 
## auto finish and cursor flash in the head of new command line
  • >/dev/null 2>&1 &
# nohup python -m SimpleHTTPServer 8089 >/dev/null 2>&1 &
[1] 31546
#
## Ubuntu 16.04 and Debian 9.5 are the same result

What's the difference between these two format?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source