尝试–time-style = full-iso,或者只是–full-time:
原文链接:https://www.f2er.com/bash/383811.htmlls -l --time-style=full-iso ls --full-time
从手册页:
–time-style=STYLE
with -l,show times using style STYLE: full-iso,long-iso,iso,locale,+FORMAT. FORMAT is interpreted likedate'; if
posix-‘,
FORMAT is FORMAT1<newline>FORMAT2,FORMAT1 applies to non-recent files
and FORMAT2 to recent files; if STYLE is prefixed with
STYLE takes effect only outside the POSIX locale
所以你也可以有一个格式说明符(见格式字符串的日期手册页):
ls -l --time-style=+"%Y %H:%M:%S"