本文共 3540 字,大约阅读时间需要 11 分钟。
linux基本命令示例
Linux uptime command shows us how long the system has been running. The uptime command gives a one-line description of information containing the current time, how long the system is running, the total number of logged-in users, and the system load. In this article, we will go through the details of the uptime command with some guidance on how to use it.
Linux正常运行时间命令向我们显示了系统已运行了多长时间。 uptime命令对信息进行单行描述,其中包括当前时间,系统运行多长时间,已登录用户的总数以及系统负载。 在本文中,我们将详细介绍uptime命令并提供有关如何使用它的指导。
This command is useful if you have just started using Linux servers. It can help you to check the load and uptime of your server to keep it running during peak hours.
如果您刚刚开始使用Linux服务器,则此命令很有用。 它可以帮助您检查服务器的负载和正常运行时间,以使其在高峰时段保持运行。
We can run the uptime command by simply opening up the terminal window and typing uptime
.
我们只需打开终端窗口并键入uptime
即可运行uptime命令。
uptime [options]
This is how it should look.
这就是它的外观。
To check the options which are available, type uptime --help
or uptime --h
and hit enter. It shows information about what are the available options and how to use them. Now let us get in-detail with each of the options.
要检查可用选项,请键入uptime --help
或uptime --h
然后按Enter。 它显示有关什么是可用选项以及如何使用它们的信息。 现在让我们详细介绍每个选项。
Command options
命令选项
uptime -p
: Here the ‘p’ stands for pretty, this gives the system uptime in human-readable word format. Here is an image showing you how it looks. uptime -p
:这里的“ p”代表漂亮,它以人类可读的单词格式提供系统正常运行时间。 这是一张显示您外观的图像。 uptime -s
: In this command option, ‘s’ stands for since. This command option shows since when the system is active, the information output displays date followed by the time the system has been running. uptime -s
:在此命令选项中,“ s”表示自。 此命令选项显示,因为当系统处于活动状态时,信息输出将显示日期,然后显示系统已运行的时间。 uptime -V
: To know about the version information, make note that the v here is not lowercase but uppercase. This command option gives detail about the uptime command version. uptime -V
:要了解版本信息,请注意此处的v不是小写而是大写。 此命令选项提供有关正常运行时间命令版本的详细信息。 uptime -h
: This is the command option which we previously used to know about the available options. This command option is called as help option, h stands for help. uptime -h
:这是我们先前用来了解可用选项的命令选项。 此命令选项称为帮助选项,h表示帮助。 Linux uptime command is a quick way to get trivial information about the system. It quickly shows us how long the system has been running. We also get information about the load average and the number of logged-in users. If you are looking for its man page, then you can find it . I hope this article helps you to use the uptime command in your daily routine with Linux.
Linux正常运行时间命令是获取有关系统的重要信息的快速方法。 它Swift向我们显示了系统已运行了多长时间。 我们还获得有关平均负载和已登录用户数的信息。 如果要查找其手册页,则可以在找到它。 我希望本文能帮助您在Linux的日常工作中使用uptime命令。
翻译自:
linux基本命令示例
转载地址:http://pjlzd.baihongyu.com/