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