有时候我们在操作的时候需要回看 我们是什么时候操作了那条命令 就可以设置成如下形式。
然后在通过history 命令 查询出时间
另外你也可以把输出的记录成log 分析。
然后在通过history 命令 查询出时间
另外你也可以把输出的记录成log 分析。
<!--StartFragment -->
具体设置方式:
vi .bash_profile
加入:
export PS1="[\u@\H \d \t]\$"
参考文档:
http://blog.csdn.net/echo42/article/details/29654939
具体设置方式:
vi .bash_profile
加入:
export PS1="[\u@\H \d \t]\$"
参考文档:
http://blog.csdn.net/echo42/article/details/29654939
——————————————————————————————————————————
上述有点小问题,我现在用的是:
vi .bash_profile
加入 :
export PATH
export LANG=zh_CN.UTF-8
unset USERNAME
PS1="[\t \u:\w ] # "