Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the uptime command of Linux

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article editor for you a detailed introduction of "Linux uptime command how to use", the content is detailed, the steps are clear, the details are handled properly, I hope this "Linux uptime command how to use" article can help you solve your doubts, the following follow the editor's ideas slowly in-depth, together to learn new knowledge.

Linux common command uptime command is mainly used to obtain the host running time and query Linux system load and other information.

The uptime command shows how long the system has been running, in the following order: the current time, how long the system has been running, how many logged-in users are currently, and the average load of the system in the past 1 minute, 5 minutes, and 15 minutes. The use of the uptime command is very simple, and you can view the system load by entering uptime directly.

Grammatical format

Uptime [parameters]

The parameter-p shows the normal running time of the machine in a beautiful format-s system since running time, and the format is yyyy-mm-dd hh:mm:ss-h to display help information reference example

Displays the current system running load:

[root@linux265] # uptime 15:23:22 up 2 days, 5:13, 3 users, load average: 0.12,0.04,0.05

Use the-p parameter to display the time when the machine is running normally:

[root@linux265 ~] # uptime-p up 2 days, 5 hours, 15 minutes

Use the-s parameter to display the machine startup time:

[root@linux265] # uptime-s 2019-05-09 10:09:43 read here, this "how to use the uptime command of Linux" article has been introduced, want to master the knowledge of this article also need to practice and use in order to understand, if you want to know more about the article, welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report