博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
linux基本命令示例_Linux正常运行时间命令示例
阅读量:2531 次
发布时间:2019-05-11

本文共 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服务器,则此命令很有用。 它可以帮助您检查服务器的负载和正常运行时间,以使其在高峰时段保持运行。

如何使用Linux正常运行时间命令 (How to use Linux uptime Command)

We can run the uptime command by simply opening up the terminal window and typing uptime.

我们只需打开终端窗口并键入uptime即可运行uptime命令。

  • After hitting enter, the first information it gives is the current time of the system.

    按下回车键后,它给出的第一个信息是系统的当前时间。
  • Then it shows for how long the system has been running.

    然后显示系统已运行多长时间。
  • After that, the number of logged in users is shown.

    之后,将显示已登录用户的数量。
  • Finally, the average load of the system for past 1, 5 and 15 minute(s) duration is displayed.

    最后,显示过去1分钟,5分钟和15分钟的系统平均负载。

Linux正常运行时间命令语法和用法 (Linux uptime command syntax and usage)

uptime [options]

This is how it should look.

这就是它的外观。

Linux uptime Command

Linux uptime Command

Linux正常运行时间命令

正常运行时间命令可用的选项 (Options available for uptime command)

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 --helpuptime --h然后按Enter。 它显示有关什么是可用选项以及如何使用它们的信息。 现在让我们详细介绍每个选项。

Command options

命令选项

  • -p: Pretty.

    -p :好。
  • -s: Since.

    -s :自。
  • -V: Version.

    -V :版本。
  • -h: Help.

    -h :帮助。

如何使用正常运行时间命令选项? (How to use uptime command options?)

  1. 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”代表漂亮,它以人类可读的单词格式提供系统正常运行时间。 这是一张显示您外观的图像。
  2. Uptime -p Command

    uptime -p Command

    正常运行时间-p命令

  3. 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”表示自。 此命令选项显示,因为当系统处于活动状态时,信息输出将显示日期,然后显示系统已运行的时间。
  4. Uptime -s Command

    Linux Uptime -s Command

    Linux正常运行时间-s命令

  5. 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不是小写而是大写。 此命令选项提供有关正常运行时间命令版本的详细信息。
  6. Linux Uptime -V Command

    Linux Uptime -V Command

    Linux正常运行时间-V命令

  7. 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表示帮助。
  8. Uptime H Command

    Linux uptime -h Command

    Linux正常运行时间-h命令

结论 (Conclusion)

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/

你可能感兴趣的文章
小D课堂-SpringBoot 2.x微信支付在线教育网站项目实战_2-4.后端项目分层分包及资源文件处理...
查看>>
小D课堂-SpringBoot 2.x微信支付在线教育网站项目实战_2-2.快速搭建SpringBoot项目,采用IDEA...
查看>>
小D课堂-SpringBoot 2.x微信支付在线教育网站项目实战_3-5.PageHelper分页插件使用
查看>>
小D课堂-SpringBoot 2.x微信支付在线教育网站项目实战_5-6.微信扫码登录回调本地域名映射工具Ngrock...
查看>>
小D课堂-SpringBoot 2.x微信支付在线教育网站项目实战_5-8.用户模块开发之保存微信用户信息...
查看>>
Linux下Nginx安装
查看>>
LVM扩容之xfs文件系统
查看>>
Hbase记录-client访问zookeeper大量断开以及参数调优分析(转载)
查看>>
代码片段收集
查看>>
vue-cli3创建项目时报错
查看>>
输入1-53周,输出1-53周的开始时间和结束时间
查看>>
实验二
查看>>
shell——按指定列排序
查看>>
crash 收集
查看>>
507 LOJ 「LibreOJ NOI Round #1」接竹竿
查看>>
UI基础--烟花动画
查看>>
2018. 2.4 Java中集合嵌套集合的练习
查看>>
精通ASP.NET Web程序测试
查看>>
vue 根据不同属性 设置背景
查看>>
51Nod1601 完全图的最小生成树计数 Trie Prufer编码
查看>>