方法一:
2>&1 (# ls /usr/share/doc > out.txt 2>&1 )

方法二:
&> (# ls /usr/share/doc &> out.txt )

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
  • 2021-07-01
  • 2021-06-12
  • 2021-10-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2022-12-23
  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案