I have this Bash command {java command} > /dev/null 2>/var/log/server.log < /dev/null & and I'm having a hard time understanding what this means.
I know that...
> /dev/nullmeans to stdout to a void2>/var/log/server.logsends errors to /var/log/server.log&means to run in the background
But what is < /dev/null? Also, am I understand the redirection correctly?
CodePudding user response:
< means redirection of stdin, i.e, standard input.
< /dev/null means input source has nothing, and stdin is always EOF.
