How to understand this redirection command?

This question already has an answer here:

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

  • > list redirects the command's standard out to the file list .

    2>&1 redirects your standard error to standard out. In this case, standard out is the file list , so list will contain all output and errors your find command generates.

    Further read: https://www.gnu.org/software/bash/manual/html_node/Redirections.html

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

    上一篇: 在shell中,“2>&1”是什么意思?

    下一篇: 如何理解这个重定向命令?