Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
重複 の可能性:bashシェルで、「2>&1」とは何ですか?
#echo "[+] Creating $count files" _remount create=$((time ./dirtest $testdir $count $size) 2>&1)
これは、標準エラー記述子(2)が標準出力記述子(1)stderrにリダイレクトされることを意味します。は、がファイル名ではなくファイル記述子として解釈されることを保証することにstdout注意してください。&1
stderr
stdout
&
1
標準エラーを標準出力にリダイレクトします。このようにして、stderrに書き込まれた結果が変数に格納されます。