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

posted on 2013-04-27 17:00  SuPer.Shang  阅读(292)  评论(0编辑  收藏  举报