【原创】Macbook 修改 ls 时间格式

来源:互联网 发布:打开淘宝网首页 编辑:程序博客网 时间:2024/05/16 08:31
Macbook  下修改时间显示格式.
# Linux 下修改 .bashrc 或者 .profile ,添加 exportTIME_STYLE='+%Y-%m-%d%H:%M:%S' 即可

Macbook 可以使用 ls -lT.

格式依旧不太直观, 安装 `coreutils`, 使用 `gls`
1. brew install coreutils
2. 修改 .bashrc 或者 .profile 
添加: alias ls="gls -G"
添加: alias ll="ls -al"
3. source ~/.bashrc

参考:   How do I change the time format used byls command line on osx?
0 0
原创粉丝点击