修改 ls 命令的时间显示格式

ls -l --time-style '+%Y/%m/%d %H:%M:%S'
ls -l --time-style '+%Y%m%d %H:%M:%S'

也可以写入默认配置中,后面就不用每次指定了

vi ~/.bash_profile

export TIME_STYLE
='+%Y/%m/%d %H:%M:%S' cat ~/.bash_profile | grep TIME source ~/.bash_profile

 

posted on 2020-02-22 21:09  aozima  阅读(842)  评论(0编辑  收藏  举报

导航