Linux – the difference between &> and >& in bash

bashlinuxredirection

What is the difference between &> and >& in bash?

tldp did not mention the latter one. Is it really a redirection operator?

Or does someone know a more complete tutorial?

Best Answer

From the bash man page:

There  are  two  formats  for  redirecting standard output and standard
   error:

          &>word
   and
          >&word

   Of the two forms, the first is preferred.  This is semantically equiva-
   lent to

          >word 2>&1

Read the redirection section of the bash man page.