- This topic is empty.
- September 16, 2020 at 6:43 AM #3915Santhosh Kumar DKeymaster
The uptime is the amount of time the Linux system has been continuously running since the last restart. Let’s learn how to check Linux uptime using the
To display uptime, just type
uptimeand press enter. Root privileges are not necessary to perform this check.
$ uptime 01:02:00 up 1 day, 7:01, 1 user, load average: 0.12, 0.09, 0.05
If you want to display the uptime in pretty format, use the
-pcommand line option.
$ uptime -p up 1 day, 7 hours, 5 minutes
If you want to specifically display just the date and time since when the Linux system has been running, use the
-scommand line option.
$ uptime -s 2020-09-14 18:00:05
-Vcommand line option to display the version information.
$ uptime -V uptime from procps-ng 3.3.12
-hcommand line option to display help.
$ uptime -h Usage: uptime [options] Options: -p, --pretty show uptime in pretty format -h, --help display this help and exit -s, --since system up since -V, --version output version information and exit For more details see uptime(1).
Learn more Linux tips.
- You must be logged in to reply to this topic.