Linux 后台执行top 出错“TERM environment variable not set” “top: failed tty get”

export TERM=linux
top -bn 1 &>> watch.log

参考文献:

https://zhidao.baidu.com/question/1110100486722222299.html

https://www.cnblogs.com/felixzh/p/9020336.html

https://www.imooc.com/qadetail/226756

原文地址:https://www.cnblogs.com/jhc888007/p/10077765.html