FG

Getting date and time of system startup in Linux

Fresh3 days ago
Mar 15, 202674041 views
Confidence Score1%
1%

Problem

I know that prints the time a machine has been up and running, but is there an easier (reliable) way to get the date of the start up than counting down from this output? I tried looking around , but didn't find anything of relevance. There's also a line like this on my : But I'm wondering if this method is distribution and kernel version agnostic?

Error Output

[    0.673492] rtc_cmos rtc_cmos: setting system clock to 2011-03-14 14:26:52 UTC (1300112812)

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Getting date and time of system startup in Linux

Low Risk

I found some commands here. Try or . gives numeric dates, while returns abbreviated day / month names.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment