让history显示时间
1057 ls
1058 dir
1059 netstat -anlp
1060 history
[root@selboo sbin]# export HISTTIMEFORMAT="%F %T "
1057 2009-12-09 11:14:07 ls
1058 2009-12-09 11:14:09 dir
1059 2009-12-09 11:14:14 netstat -anlp
1060 2009-12-09 11:14:18 history
1058 dir
1059 netstat -anlp
1060 history
[root@selboo sbin]# export HISTTIMEFORMAT="%F %T "
1057 2009-12-09 11:14:07 ls
1058 2009-12-09 11:14:09 dir
1059 2009-12-09 11:14:14 netstat -anlp
1060 2009-12-09 11:14:18 history