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 |