执行 # echo "export TMOUT=900" >> /etc/profile 查询设置结果: # cat /etc/profile|grep TMOUT -n 转载于:https://www.cnblogs.com/101key/p/8745116.html