I thought that I could easily check the timestamp of particular files. Then I realized that it wouldn't be so easy when I saw timestamps like
The simplest way would probably be (presuming sda1 is your /root/):
This should show you the date on which the file system was created. Confirmed to work on ext2 to ext4, not sure about other file systems!
One mechanism I often use is to check the change time (ctime) on files within the root home directory. Since the
By default, the
This will print all files, display the create time, and sort by time.
As an example, here is a sample of the 3 oldest files in the
And then by checking the change time
The date Feb 18th of 2010 certainly tracks with the approximate time I would have first installed that system.
the keys are generated when you install the os.
Checking the hardware would be a good bet, if you have access to it. You could inspect the system and/or hardware components to get a good idea of when it was assembled.
Alternately, if you can gain access to the BIOS screen there's often date info there that can be used to determine how old a machine is.
If you can gain access to the SMART info on the hard drive (
As for filesystem checks, you could look at the date info for
With RedHat and derivatives, it's pretty easy to get a general idea of the OS version/vintage through a combination of file age and other system files. I'll usually check the
protected by Chris S♦ Aug 1 '12 at 19:14
Thank you for your interest in this question.
Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?