1.修改ls显示格式

ls -l --time-style '+%Y/%m/%d %H:%M:%S'
drwxr-x--- 2 edwetl edwetl    4096 2019/01/03 21:08:45 arc_test

ls -l --time-style '+%Y%m%d %H:%M:%S'
drwxr-x--- 2 edwetl edwetl    4096 20190103 21:08:45 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

 

 

PS:

ls与ll同理

相关文章:

  • 2022-01-09
  • 2021-12-09
  • 2021-11-27
  • 2021-12-13
  • 2022-12-23
  • 2022-02-08
  • 2022-02-08
  • 2021-09-27
猜你喜欢
  • 2022-12-23
  • 2021-12-19
  • 2021-08-06
  • 2022-12-23
  • 2021-09-04
  • 2022-02-06
相关资源
相似解决方案