This question already has an answer here:
In Ksh for redirecting i/o from a command away from standard output/error I do , [ where command is any command that produces output/error ]
command 2>filename command 2>/dev/null
command &>filename command &>/dev/null
In bash , often I see code like
what does that additional
& signify, when the same can be get done by using
I know I am missing something fine, but glad to learn.
EDIT: I knew what 2>&1 is, which the so called duplicate question asks , I was told that 1 indicates a file descriptor and hence we need an & to refer that. I was puzzled to see & before the name of the file. Hence this question.