1.修改ls显示格式
ls -l --time-style '+%Y/%m/%d %H:%M:%S'
drwxr-x--- edwetl edwetl // :: arc_test ls -l --time-style '+%Y%m%d %H:%M:%S'
drwxr-x--- edwetl edwetl :: arc_test
2.修改配置到bash_profile
vi ~/.bash_profile
export TIME_STYLE='+%Y/%m/%d %H:%M:%S' cat ~/.bash_profile | grep TIME
source ~/.bash_profile
参考文档: