as619864232 发表于 2013-1-28 16:02:28

Ubuntu 终端的历史记录

在Linux终端下

1、运行history,可以得到一个整洁的Linux终端命令历史记录的列表

2、运行history -c,可以清除杂乱的历史记录

3、运行history -r /home/yajiu/history.txt,可以将history.txt文件存储的常用命令读进来作为当前bash的历史记录

   (注意:常用命令当成文本写进history.txt必须每个命令占一行)
 
转自:http://hi.baidu.com/zgyz/blog/item/3085598b8c376715c8fc7aa0.html
页: [1]
查看完整版本: Ubuntu 终端的历史记录