Categories: TutorialsUbuntu

procinfo Command in Linux Explained

Proc file system is a virtual file system created at the time of system boot and dismissed after the system gets shut down. It is such a system that stores the information of the system such as processes. For the kernel, it acts as an information and control center. From the proc file system, various programs can get a handful of information used for various reasons.

From the /proc directory, the procinfo command can get useful information regarding the system. With that system information, the procinfo command provides the output in a better way for the user to read.

In this article, we are going to discuss the use of the procinfo command by installing it on Ubuntu 20.04 LTS server.

Installation
Sponsored
of Procinfo command

To install the procinfo command on Ubuntu 20.04 LTS server, we are going to run the command as shown below.

$ sudo apt install procinfo -y

Use cases of procinfo command

You can run the procinfo command to see all the system status. You can see below screenshot for further details.

$ procinfo

To display the result between the information of the system per second, rather than the total value, we can run the command as shown below.

$ procinfo -d

To display the memory stats in a human readable form, you can run the following command.

$ procinfo -H

You can see all stats are on kiloByte(KiB), MegaByte(MiB) and GigaByte(GiB) which is more human-friendly and readable.

Sponsored

To display the result between the information of the system as total, rather than per second, we can run the command as shown below.

$ procinfo -D

By default, to show the output with the information such as memory stats, IRP and DMA information system, disk space, you can run the command as below.

$ procinfo -s

To display the updates of the stats continuously by pausing with n number of seconds by using the “-n” flag. Here we are using n = 3 for this session. You can run the command as follows and press “q” to break the session.

$ procinfo -n3 -H

To display the real free memory, you can run the command as follows with the “-r” flag.

$ procinfo -r

To display the version of the procinfo , you can run the following command.

$ procinfo -v

Conclusion

You can get information about the system such as processes and many more with the procinfo command utility. For more information, you can run the “man procinfo” command. Thank you!

Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications including CCNA RS, SCP, and ACE. As an IT engineer and technical author, he writes for various websites.

Ubuntu Server Admin

Recent Posts

How to Fix VMware’s “Could not open /dev/vmmon” Error on Ubuntu

You’ve recently installed VMware Workstation on your Ubuntu system and encountered the frustrating “Could not…

4 hours ago

How to Fix Ubuntu 404 Errors While Fetching Dependencies

Have you ever found yourself staring at a terminal full of 404 errors while trying…

4 hours ago

How to Fix ‘Please Install All Available Updates’ Error When Upgrading Ubuntu 18.04 to 20.04 LTS

One particularly frustrating error that many users face when trying to upgrade from Ubuntu 18.04 …

4 hours ago

How to fix “Release is not valid yet” Error in Docker Containers

In the world of containerization, time synchronization issues can create unexpected roadblocks when working with…

4 hours ago

How to fix “Externally Managed Environment” Pip Errors on Ubuntu

If you’ve recently upgraded to Ubuntu 23.04 or newer, you might have encountered a frustrating…

4 hours ago

Ubuntu now officially supports NVIDIA Jetson: powering the future of AI at the edge

Canonical announces the General Availability of Ubuntu for the NVIDIA® Jetson Orin™ for edge AI…

11 hours ago