修改 ls 命令的时间显示格式
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 -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