[Solved]How long have I been using my distro

Hello,
I need to check when I installed my distro? Is there any way of checking this on Linux?

Actually, I represent Linux to my friend as proof of how much stable Linux which I have been using for almost more than 2 years without any reinstallation. (knock on wood :cowboy_hat_face:)

I searched Ddg and google but I can’t found a notable thing.

So Is there any counter in Linux or Log file

My distro Manjaro Cinnamon.

awk -F “[[ ]” ‘NR==1 {print $2;}’ /var/log/pacman.log

stat /

stat -c '%w' /

for smaller :wink:

(PS @nigelwarning you must fix your quotes for yours to work)

awk -F “[[ ]” ‘NR==1 {print $2;}’ /var/log/pacman.log
awk: fatal: invalid regexp: Unmatched [, [^, [:, [., or [=: /“[[/
bash: }’: command not found
(base) [axe@axe-20aws2t12n ~]$ awk -F “[[ ]” ‘NR==1 {print $2;}’ /var/log/pacman.log
awk: fatal: invalid regexp: Unmatched [, [^, [:, [., or [=: /“[[/
bash: }’: command not found
(base) [axe@axe-20aws2t12n ~]$ awk -F “[[ ]]” ‘NR==1 {print $2;}’ /var/log/pacman.log
awk: fatal: invalid regexp: Unmatched [, [^, [:, [., or [=: /“[[/
(base) [axe@axe-20aws2t12n ~]$ awk -F “[]” ‘NR==1 {print $2;}’ /var/log/pacman.log
awk: fatal: invalid regexp: Unmatched [, [^, [:, [., or [=: /“[]”/
bash: }’: command not found
(base) [axe@axe-20aws2t12n ~]$ awk -F “[ ]” ‘NR==1 {print $2;}’ /var/log/pacman.log
awk: fatal: invalid regexp: Invalid regular expression: /“[/
bash: }’: command not found

stat /
File: /
Size: 4096 Blocks: 16 IO Block: 4096 directory
Device: 804h/2052d Inode: 2 Links: 19
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2020-05-19 21:34:21.696916911 +0300
Modify: 2020-11-23 01:11:32.028290063 +0300
Change: 2020-11-23 01:11:32.028290063 +0300
Birth: 2020-05-19 21:32:08.000000000 +0300

stat -c ‘%w’ /
2020-05-19 21:32:08.000000000 +0300

Yeah It is work, but as if show the latest big update time
@tuxmanjarino @cscs

Then that probably means somehow you reinstalled over or reformated root or similar.
I suppose you could check your users home instead?

stat -c '%w' ~

[edit … oh … those quotes got me too. hah. fixed]

What @cscs said, maybe you 've used a backup mechanism.

You may find more info in the archived forum for example:

/edit: or this one:

1 Like

(base) [axe@axe-20aws2t12n ~]$ stat -c ‘%w’ ~axe
‘2020-04-28 22:51:15.603701161 +0300’

looks better by the way I checked the creation time of any first file like music,Docs as you said home.
But how can I check this

Its so interesting…

(base) [axe@axe-20aws2t12n ~]$ sudo tune2fs -l /dev/sda2 | grep “created”
[sudo] password for axe:
Filesystem created: Wed Feb 12 18:58:25 2020

we’re digging deeper and deeper :grin:
I started questioning myself Should I did this? :thinking:
But I don’t know how to use backup
Sorry, I’m a little different person who doesn’t use these.

@cscs @tuxmanjarino @nigelwarning
Thanks for all of the answers.

sudo tune2fs -l /dev/sda2 | grep “created”
[sudo] password for axe:
Filesystem created: Wed Feb 12 18:58:25 2020

I accept this one as best answer

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.