Skip to main content
2 of 4
added 1 character in body

ls -l will display month, day and year - since, according to BSD man page: If the modification time of the file is more than 6 months in the past or future, then the year of the last modification is displayed in place of the hour and minute fields.

So, to make sure that year will always be shown, use:

ls --time-style=long-iso (GNU/Linux)

ls -lT will display display complete time information in BSD (MacOS)