您的位置:首页 > 其它

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

2017-03-20 14:49 253 查看
Macbook  下修改时间显示格式.
# Linux 下修改 .bashrc 或者 .profile ,
添加 export
TIME_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 by
ls command line on osx?
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: