Posted: . At: 8:09 AM. This was 2 years ago. Post ID: 16765
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.



Sponsored



How to get the date you installed your current Linux OS?


To get the installed date of your current Linux Operating System, use this simple command.

(base) jason@jason-Lenovo-H50-55:~$ ls -alct /|tail -1|awk '{print $6, $7, $8}'
Aug 31 2020

This will print the date that the filesystem was created. To print the time that the filesystem was created, use the example below.

(base) jason@jason-Lenovo-H50-55:~$ ls -alct --time-style=+"%b %d %Y %H:%M:%S" /|tail -1|awk '{print $6, $7, $8, $9}'
Aug 31 2020 13:50:54

This could be a most useful Linux tip indeed. On Windows, use the systeminfo command to get the Original Install Date.

PS C:\Users\Intel i5> systeminfo | find /i "install date"
Original Install Date: 18/12/2021, 6:15:05 AM

Another way to get the creation date of the filesystem on Linux is using the tune2fs utility. This can print a lot of very useful filesystem information.

(base) jason@jason-Lenovo-H50-55:~$ sudo tune2fs -l /dev/sdb1 | sed -sn 28p
Filesystem created: Mon Aug 31 13:50:54 2020


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.