Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ W and uptime command     - Based kubernetes Construction Docker Cluster Management Comments (Server)

- Android working with Volley Comments (Programming)

- JBPM6 Installation and Configuration Tutorial (Linux)

- Linux port scanning (Linux)

- How to add a new resolution VirtualBox (Linux)

- Linux simple commands (Linux)

- C ++ string in the end (Programming)

- Java is simple to read and write HDFS Demo (Programming)

- Open log in Hibernate (Programming)

- Report generation CPU, memory, and input and output ports with the sar command (Linux)

- How to install the latest version of the Eclipse in Ubuntu 14.04 (Linux)

- CentOS 6.5 Telnet SecureCRT use management tools (Linux)

- Ubuntu 10.10 install Oracle 10g Installation Guide (Database)

- How to create SWAP files in Ubuntu 14.04 (Linux)

- MySQL Authorized a recovered (Database)

- How to run Docker client in Windows operating system (Linux)

- How to use the internal network IP forwarding to connect to the Internet on Linux (Linux)

- How to configure HTTP Strict Transport Security (HSTS) (Linux)

- Build Docker based MongoDB replication cluster environment (Database)

- IronPython and C # to interact (Programming)

  W and uptime command
  Add Date : 2017-08-31      
  Query system CPU and memory load (usage) in the Linux system, we usually accustomed to using top, atop or ps, this article will give you about how to use the w command and uptime command to view the system load, for uptime command, I believe we are more familiar with, it is mainly used to query the system up and running after the last how long, and w commands are relative to some of the unpopular, the following detailed description of how to use these two commands:

1. w command

[Root @ abctest ~] # w
14:44:27 up 62 days, 3 min, 2 users, load average: 0.00, 0.01, 0.00
root pts / 0 13:38 1: 01m 0.00s 0.00s -bash
root pts / 1 14:43 0.00s 0.00s 0.00s w
And who is different is that the use of the Linux man w query command presentation is "Show who is logged on and what they are doing.", W command queries the current system login user information, and these users are currently doing operation, the information for Linux system administrators are worth, and the other three digits the load average which shows the back of the system last 1 minute, 5 minutes, the system average load for 15 minutes.

2. uptime command

[Root @ abctest ~] # uptime
14:51:15 up 62 days, 10 min, 2 users, load average: 0.02, 0.01, 0.00
uptime command back to the meaning and w commands the load average was expressed similar, are represented in the past 1 minute, the average number of 5 minutes and 15 minutes in the process queue process.

It should be noted that the output value of the load average, the size of these three values are generally not be greater than the number of logical CPU system, for example, the output of the system has four logical CPU, if the load average value of three long-term greater than 4:00 described CPU is very busy, very high load, it can affect system performance, but occasionally more than 4, down do not worry, generally will not affect system performance. Conversely, if the output load average value is less than the number of CPU, the CPU is idle as well, such as this example output, CPU is relatively idle.
- JavaScript function part (Programming)
- Install the latest ATI / Nvidia graphics driver on Ubuntu (Linux)
- MySQL multi-master-slave synchronization (Database)
- Grep how to find files based on file contents in UNIX (Linux)
- The security configuration of Linux (Linux)
- Redis logging system (Database)
- How to use the Docker Machine cluster deployment Swarm (Server)
- Linux Security trust with users (Linux)
- Detailed software to run UnixBench (Linux)
- RHEL 6.5 x86_64 CentOS yum configuration source (Linux)
- The callback function used in C ++ (Programming)
- Based on Python: OpenCV simple image manipulation (Programming)
- Nginx installation configuration Zabbix (Server)
- Distributed Firewall Design on Linux platform (Linux)
- The Java Properties class action (Programming)
- CentOS7 install NTFS-3G driver (Linux)
- Ubuntu installation 2.10.x version of Scala (Linux)
- CentOS Linux Optimization and real production environment (Linux)
- Bash environment is automatically install and initialize oh-my-zsh & autojump zsh (Linux)
- Ubuntu uses the / etc / profile file to configure the JAVA environment variable (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.