{"id":12334,"date":"2021-11-24T04:58:15","date_gmt":"2021-11-24T04:58:15","guid":{"rendered":"https:\/\/linuxways.net\/?p=12334"},"modified":"2021-11-24T04:58:15","modified_gmt":"2021-11-24T04:58:15","slug":"procinfo-command-in-linux-explained","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/centos\/procinfo-command-in-linux-explained\/","title":{"rendered":"procinfo Command in Linux Explained"},"content":{"rendered":"<p>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.<\/p>\n<p>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.<\/p>\n<p>In this article, we are going to discuss the use of the procinfo command by installing it on Ubuntu 20.04 LTS server.<\/p>\n<h2>Installation of Procinfo command<\/h2>\n<p>To install the procinfo command on Ubuntu 20.04 LTS server, we are going to run the command as shown below.<\/p>\n<pre>$ sudo apt install procinfo -y<\/pre>\n<h2>Use cases of procinfo command<\/h2>\n<p>You can run the procinfo command to see all the system status. You can see below screenshot for further details.<\/p>\n<pre>$ procinfo<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"782\" height=\"581\" class=\"wp-image-12335\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-455.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-455.png 782w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-455-300x223.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-455-768x571.png 768w\" sizes=\"auto, (max-width: 782px) 100vw, 782px\" \/><\/p>\n<p>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.<\/p>\n<pre>$ procinfo -d<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"783\" height=\"578\" class=\"wp-image-12336\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-456.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-456.png 783w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-456-300x221.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-456-768x567.png 768w\" sizes=\"auto, (max-width: 783px) 100vw, 783px\" \/><\/p>\n<p>To display the memory stats in a human readable form, you can run the following command.<\/p>\n<pre>$ procinfo -H<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"780\" height=\"578\" class=\"wp-image-12337\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-457.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-457.png 780w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-457-300x222.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-457-768x569.png 768w\" sizes=\"auto, (max-width: 780px) 100vw, 780px\" \/><\/p>\n<p>You can see all stats are on kiloByte(KiB), MegaByte(MiB) and GigaByte(GiB) which is more human-friendly and readable.<\/p>\n<p>To display the result between the information of the system as total, rather than per second, we can run the command as shown below.<\/p>\n<pre>$ procinfo -D<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"780\" height=\"579\" class=\"wp-image-12338\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-458.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-458.png 780w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-458-300x223.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-458-768x570.png 768w\" sizes=\"auto, (max-width: 780px) 100vw, 780px\" \/><\/p>\n<p>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.<\/p>\n<pre>$ procinfo -s<\/pre>\n<p>To display the updates of the stats continuously by pausing with n number of seconds by using the \u201c-n\u201d flag. Here we are using n = 3 for this session. You can run the command as follows and press \u201cq\u201d to break the session.<\/p>\n<pre>$ procinfo -n3 -H<\/pre>\n<p>To display the real free memory, you can run the command as follows with the \u201c-r\u201d flag.<\/p>\n<pre>$ procinfo -r<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"784\" height=\"598\" class=\"wp-image-12339\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-459.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-459.png 784w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-459-300x229.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-459-768x586.png 768w\" sizes=\"auto, (max-width: 784px) 100vw, 784px\" \/><\/p>\n<p>To display the version of the procinfo , you can run the following command.<\/p>\n<pre>$ procinfo -v<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"563\" height=\"37\" class=\"wp-image-12340\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-460.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-460.png 563w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-460-300x20.png 300w\" sizes=\"auto, (max-width: 563px) 100vw, 563px\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>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 \u201cman procinfo\u201d command. Thank you!<\/p>","protected":false},"excerpt":{"rendered":"<p>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&hellip;<\/p>","protected":false},"author":1,"featured_media":12393,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,4,5,83,165,2],"tags":[35,699],"class_list":["post-12334","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-debian","category-mint","category-opensuse","category-red-hat","category-ubuntu","tag-linux","tag-procinfo"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/12334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=12334"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/12334\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/12393"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=12334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=12334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=12334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}