码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2020-02-22 22:15:58      阅读:93      评论:0      收藏:0      [点我收藏+]

标签:gre   %s   cat   export   显示   格式   grep   code   style   

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

 

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

标签:gre   %s   cat   export   显示   格式   grep   code   style   

原文地址:https://www.cnblogs.com/aozima/p/12347218.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!