1.进入用户目录
cd 回车
2.查看目录
ls -a
3.打开.bash_profile文件
vi .bash_profile
4.点击i编辑,在末尾添加一行
export TIME_STYLE='+%Y-%m-%d %H:%M:%S'
5.执行文件
source .bash_profile
6.执行ll命令,查看效果,如下
cd 回车
2.查看目录
ls -a
3.打开.bash_profile文件
vi .bash_profile
4.点击i编辑,在末尾添加一行
export TIME_STYLE='+%Y-%m-%d %H:%M:%S'
5.执行文件
source .bash_profile
6.执行ll命令,查看效果,如下
***** **** 2017-02-07 15:45:43 ****
注:ll命令下,文件按时间排序:ll -t
本文介绍如何通过修改.bash_profile文件来定制Bash命令行的时间显示格式,包括具体步骤及命令说明。
2356

被折叠的 条评论
为什么被折叠?



