输出到文件log中,并在屏幕上显示:
#ls >&1 | tee log

追加输出到文件log中,并在屏幕上显示:
#ls >&1 | tee -a log

相关文章:

  • 2021-10-14
  • 2021-10-17
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-24
猜你喜欢
  • 2022-12-23
  • 2021-12-11
  • 2021-12-07
  • 2021-08-29
  • 2022-12-23
相关资源
相似解决方案