Use the procinfo command of linux to display the system status
Editor to share with you the use of linux procinfo command to display the status of the system, I believe that most people do not know much, so share this article for you to learn, I hope you will learn a lot after reading this article, let's go to learn the method!
The proc file system is a virtual file system that contains files that store information about processes and other system information. It is mapped to the / proc directory and mounted at startup. Many programs retrieve information from the / proc file system, process it, and provide it for a variety of purposes.
Procinfo is a simple command-line utility for viewing system information collected from the / proc directory and printing a nice format on standard output devices.
Syntax format: procinfo [parameters]
Common parameters:
-a displays all information-b displays the number of blocks of the disk device, not the number of accesses-d shows the difference between the changes in the system information per second, rather than the sum of the values. Must be used with the "- f" parameter-D this parameter effect is similar to specifying the "- d" parameter, but the information of the memory and swap file is the sum value-f enters the full-screen interactive interface-F outputs the information state to the file to save-I display the complete IRP list-m display system modules and peripherals and other related information-n sets the information update speed of the full-screen interactive mode The memory, disk space, IRP and DMA of the system are displayed in seconds. This is the default value-S with the parameter "- d" or "- D". The information is updated every second-H memory information is converted into readable (KB, MB, GB) format units-v to display version information.
Reference example
Displays the system status:
[root@linuxcool ~] # procinfo
Display statistics on a per second basis instead of by total value:
[root@linuxcool] # procinfo-d-f
Display statistics as totals:
[root@linuxcool ~] # procinfo-D above is all the contents of displaying the system status using the procinfo command of linux. Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!