Closed. This question is off-topic。它当前不接受答案。












想改善这个问题吗? Update the question,所以它是用于堆栈溢出的on-topic

已关闭8年。



Improve this question




我想输出修改文件的时间,包括年和秒。我尝试使用ls -linT,意味着-T必须这样做,但不是。 -T被识别为列表大小。
我正在使用ls寻找解决方案。有人可以帮我吗?

最佳答案

尝试--time-style=full-iso,或者只是--full-time:

ls -l --time-style=full-iso
ls --full-time

从手册页:



因此,您还可以使用格式说明符(有关格式字符串,请参见date手册页):
ls -l --time-style=+"%Y %H:%M:%S"

关于linux - bash ls;输出修改文件的时间,包括年和秒,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/13999300/

10-11 19:45
查看更多