The terminal display all saved to log:
python/sh 命令 > log.txt 2>&1
- Wherein,
2>&1
it refers to the standard error output rewritten.
The terminal display all saved to log:
python/sh 命令 > log.txt 2>&1
2>&1
it refers to the standard error output rewritten.