Determine date when linux was installed
I have a couple boxes at work that I need to find out when linux was installed. Is there a way to find this out (ie. ls -al <some file>)? Much appreciated. Thanks!
-twantrd |
The most likely candidate would be a
Code:
find / -exec ls -ld --time-style=long-iso {} \; | sort -k 6,7 | head -n 1 Cheers, Tink |
I was thinking along the line of ls -al /opt
|
And my suggestion doesn't work if you have stuff installed from
old tarballs ... :) ... I just ran it on my machine and found things from 1989 in /home ;} |
Hi guys,
Tinkster, I tried your suggestion out and apparently it comes up: twantrd:/# find / -exec ls -ld --time-style=long-iso {} \; | sort -k 6,7 | head -n 1 ls: cannot read symbolic link /proc/2/exe: No such file or directory ls: cannot read symbolic link /proc/3/exe: No such file or directory ls: cannot read symbolic link /proc/4/exe: No such file or directory ls: cannot read symbolic link /proc/5/exe: No such file or directory ls: cannot read symbolic link /proc/6/exe: No such file or directory ls: cannot read symbolic link /proc/7/exe: No such file or directory ls: cannot read symbolic link /proc/143/exe: No such file or directory ls: cannot read symbolic link /proc/144/exe: No such file or directory find: /proc/25853/fd/4: No such file or directory brw-rw---- 1 root cdrom 11, 0 2002-03-14 13:54 /dev/scd0 That didn't really help me much :). Homey, I tried yours and I think I got the right answer. Thanks you guys. -twantrd |
All times are GMT -5. The time now is 10:50 AM. |