Modifying “… | tee -a out.txt” to stream output live, rather than on completion?

前端 未结 2 1484
暖寄归人
暖寄归人 2021-01-20 19:16

I would need to output the output of a command on a file. Let\'s say my command is zip -r zip.zip directory , I would need to append/write (any of these options

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-20 19:44

    Did you try option command > out.log 2>&1 this log to file everything without displaying anything, everything will go straight to the file

提交回复
热议问题