How can I find the time since a Linux system was first installed, provided that nobody has tried to hide it?
|
This will tell you when the file system was created. * = In the first column of |
|||||||
|
|
Check the date of the root filesystem with dumpe2fs. I can't really think of how that could be anything other than the date you're looking for:
|
|||||||||||||
|
|
As requested by OP. If you are looking for the time, when the system was setup, there isn't a way to determine that. For one, the system might have been cloned (not installed) which would effectively fake the file creation time. You can estimate the age by searching for oldest files. |
|||
|
|
There are a few dates lying around.
see But beware this is not guaranteed. (see other answers/comments for some of the reasons it may not work.) |
|||||||
|
|
I look at the oldest file in /boot (top of "ls -ltr /boot". Often there is an original boot sector from the first install there. On my oldest system this gives the date of original installation, despite having replaced everything in the machine and copied the contents of the file system around a few times :) |
|||
|
|
|
In Fedora, anaconda installer stores the config details of your install in root's home folder, that can give you some idea. On Debian (at least more recent ones), several logs from the install are stored in |
||||
|
|
|
|
|||||||||
|

