What does >& mean in command?

This question already has an answer here:

  • In the shell, what does “ 2>&1 ” mean? 15 answers

  • Let's look it up in man bash :

       Redirecting Standard Output and Standard Error
       This construct allows both the standard output (file descriptor 1) and the  stan‐
       dard  error output (file descriptor 2) to be redirected to the file whose name is
       the expansion of word.
    
       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 equivalent to
    
              >word 2>&1
    

    In other words, >& /dev/null suppresses both output and error/informational messages from the command.

    链接地址: http://www.djcxy.com/p/25592.html

    上一篇: Crontab / Perl管道魔法

    下一篇: 什么是&&意味着什么?