What's your OS D.O.B.?

I’ve barely been using EndeavourOS :enos: for just over a month … i think?

So I got curious, ala Google, “linux find install date”. And I found this site.

Simple command stat / | awk '/Birth: /{print $2}'

Mine printed out 2021-11-01

I’m sure there are other commands.

How about you? What is your OS D.O.B.? :slight_smile:

1 Like

For me this command does not output anything at all :thinking:

hhmm, check that link I posted above, there are a few other commands that might work for you.

This is just something fun to do :slight_smile:

1 Like

Do you have coreutils installed?

I know I started testing EndeavourOS on a VM in June, installed in July, but for the exact date AND time, I like to use stat -c %w /

[scott@endeavourOS ~]$ stat -c %w /
2021-07-25 16:38:24.000000000 -0400
1 Like

1 core/coreutils 9.0-2 (2.7 MiB 16.4 MiB) (Installed) so, YES

1 Like

You’re using the wrong quote marks.

Try copying this:

stat / | awk '/Birth: /{print $2}'

OK, THIS:

stat -c %w /
2021-12-03 22:34:50.000000000 +0100
1 Like

:rofl: that’s a lot significant numbers for seconds.

What’s the + and - numbers, timezones?

1 Like

:stuck_out_tongue:

Edit: America/New York time zone UTC -04:00, so ya, timezones

1 Like

stat / | grep Birth

or just run:

stat /

You’ll get some more info than just the birth that way.

It’s been a while. ^ But this is what I’ve always used.

Older Cinnamon install:

[derek@archcinnamon ~]$ stat / | grep Birth
 Birth: 2020-05-01 07:55:16.000000000 -0700
[derek@archcinnamon ~]$ 

and on my new laptop:

[derek@t480s ~]$ stat / | grep Birth
 Birth: 2021-01-07 17:12:04.000000000 -0800
[derek@t480s ~]$ 


I got this new computer on 16th June 2021, I’ve used nothing but EndeavourOS on it. On my old computer I installed EndeavourOS the day after I joined this forum, i.e. on 26th July 2020. I used many distros on that one, I think even windoze xp was installed on it at some point.

Luckily it appears to have withstood the experience…
I guess even running Windows isn’t as bad as being dropped in the pond! :frog:

Oh - and this box is:

┌19:20:43 WD= [~]
└───freebird@nest ─▶$ stat / | awk '/Birth: /{print $2}'
2020-07-05

4-25-2021 , April 25th !

[darknetmatrix@Bigbeast ~]$ stat / | awk ‘/Birth: /{print $2}’
2021-12-04
(BSPWM)
&&
[darknetmatrix@darknetmatrix-littlebeast ~]$ stat / | awk ‘/Birth: /{print $2}’
2021-12-05
(i3wm)

1 Like

Just a secondary note - my other system (which I am now on) gives this:

Birth: 2020-02-22 02:30:51.000000000 -0500

although there may be an earlier build on here (I have 8). Some are Arch, some are EnOS, an Mx-Linux etc etc…

1 Like

Nice, you got two beasts.

The output of stat is language specific.

The given command only works for english because it contains the word “birth”.
Please try this command which is agnostic of the language:

stat / | tail -n -1 | awk '/: /{print $2}'

Or you could simply do:

stat / | tail -n -1

3 Likes

That can also use “Birth” in whatever language they set the computer up in.

1 Like