How to save the display terminal to log in

The terminal display all saved to log:

python/sh 命令 > log.txt 2>&1 
  • Wherein, 2>&1it refers to the standard error output rewritten.
Published 628 original articles · won praise 863 · Views 1.85 million +

Guess you like

Origin blog.csdn.net/JNingWei/article/details/104911326