Why does `ls -l` command show the year for some files' timestamp?

Solution Verified - Updated -

Issue

  • Why does ls -l command show the year for some files' timestamp?
  • The timestamp of old files show the year but others don't. Why?
$ date
Thu Feb 21 18:23:42 JST 2019
$ ls -l
-rw-r--r--. 1 user1 user1      408 Mar 16  2018 tool.txt
-rwxr-xr-x. 1 user1 user1      130 Feb  4 21:15 unind.txt
-rw-r--r--. 1 user1 user1       12 Feb  4 21:01 unindex.txt
-rw-r--r--. 1 user1 user1      343 Oct 25 16:18 user.ldif

Environment

  • Red Hat Enterprise Linux
  • coreutils

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content