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.
コマンドの出力を 1 つのファイルにリダイレクトすることはできますか?
出力をファイルに送りたいのですが、それでも端末で見たいです(何かが起こっていることを知っているだけです)
はい、teeあなたが望むことをします:
tee
command | tee output.log
「ティー」を使用できます。
ls -ltr | tee -a mylog.log