让histroy显示时间

 
[root@test]# export HISTTIMEFORMAT="%F %T " 
#可将它添加到/etc/profile 系统配置文件中去
[root@test]# history

1004    2010-02-10 12:51:39 export HISTTIMEFORMAT="%F %T "
1005    2010-02-10 12:51:40 ls
1006    2010-02-10 12:51:48 history