LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Determine date when linux was installed (https://www.linuxquestions.org/questions/linux-general-1/determine-date-when-linux-was-installed-324138/)

twantrd 05-16-2005 04:41 PM

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

Tinkster 05-16-2005 05:21 PM

The most likely candidate would be a
Code:

find / -exec ls -ld --time-style=long-iso {} \; | sort -k 6,7 | head -n 1
as root ...


Cheers,
Tink

homey 05-16-2005 05:55 PM

I was thinking along the line of ls -al /opt

Tinkster 05-16-2005 06:13 PM

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 ;}

twantrd 05-16-2005 10:00 PM

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.