Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
31
rated 0 times [  31] [ 0]  / answers: 1 / hits: 7528  / 3 Years ago, fri, may 28, 2021, 4:27:08

In older versions of Ubuntu, like 9.10, ls(1) produced ISO 8601 format by default, in the way



ls -l --time-style=long-iso


does it. With 12.04, we're back at the older Unix style. Thus replacing the year by minutes and seconds for recent dates.



How can I - in the least intrusive manner change this back to long-iso? Is there maybe some general configuration option?


More From » 12.04

 Answers
2

I know this question is quite old (more than 1 year old), but for posterity, let me share the tip as originally described in this blog post (not mine). In summary, this one line does everything you want:



export TIME_STYLE=long-iso


stick that line into /etc/profile, or a file in /etc/profile.d/, or even in ~/.bashrc, and you're good to go.


[#32168] Saturday, May 29, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
otputler

Total Points: 53
Total Questions: 105
Total Answers: 93

Location: Zimbabwe
Member since Wed, Nov 9, 2022
2 Years ago
otputler questions
Tue, Aug 23, 22, 14:36, 2 Years ago
Fri, Jul 23, 21, 11:57, 3 Years ago
Sun, Feb 12, 23, 18:37, 1 Year ago
;