bat shell 命令行中 2>&1 的含義

bat shell 命令行中 2>&1 的含義  command>/dev/null 2>&1 (window bat文件,cmd 命令行窗口 ,shell文件,power shell 都適用) ■前言 今天在作業中看到了如下的代碼 cp file file >copyFile.txt 2>&1 完全不理解是什麼意思。 ■解答之前,先來了解一下相關知識 0 表示:標準輸入 1 表示:標準輸出 2
相關文章
相關標籤/搜索