bash

1、bash 中set -o vi 使用VI模式,默认模式是emacs set -o emacs恢复原来的模式。

2、script-是一个隐藏在终端的记录器

启动:script file --> file 用来保存记录

退出:exit或者ctrl+d

bash下配置自动运行,并追加记录,vim /.profile

添加:/usr/bin/script -qa /usr/local/script/log_record_script

原文地址:https://www.cnblogs.com/bugershang/p/3047492.html