Change Timestamp in CentOS/Red Hat

Change Timestamp in CentOS/RedHat, Assalamualaikum, this article will inform how to change the timestamp files in CentOS/Red Hat Operating System.

  • For example we have 2 files in same directory and the timestamp from both files is same.
# ll
total 0
-rw-r--r-- 1 root root 0 Apr 19 13:50 file1
-rw-r--r-- 1 root root 0 Apr 19 13:50 file2
  • And we want change the timestamp in file1, if we check now the timestamp from file1 is “Apr 19 13:50” and we want change the timestamp to “Mar 30 11:20”, run this command to change the timestamp
# touch -d '30 Mar 2019 11:20' file1 
  • And then check again the timestamp for both files
# ll
total 0
-rw-r--r-- 1 root root 0 Mar 30 11:20 file1
-rw-r--r-- 1 root root 0 Apr 19 13:50 file2

Refrence | Read this : a parsing error has occured when import zimbra calendar

We hope this article is useful & enjoy, wassalamualaikum

Leave a Comment