0

This is excerpted from ~/.bashrc on a RasPi.

if [ -z "${SSH_TTY}" ]; then
  startx > /dev/null 2>&1 
fi

I'm fairly sure the if statement means not for ssh tty sessions ie when establishing a remote console.

Obviously it starts x-windows and discards console output, but what does 2>&1 mean?

The ampersand probably means it forks, but what are the numbers? And what are some keywords for next time I need to read up on this?

0 Answers0