In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
Today, the editor will share with you the relevant knowledge of what the concept of proc is in linux. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.
In linux, the proc directory is a file system, but a virtual file system, in which a series of special files of the current kernel running state are stored; this system only exists in memory and provides an interface to access the kernel data in a file system way, and the kernel running state can be changed by changing some of the files.
The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
What is proc in linux
Proc, known as the virtual file system, is a control center that can change the running state of the kernel by changing some of the files. It is also a query center emptied to us by the kernel, through which users can view the hardware of the system and the process information that is currently running.
Many tools in Linux derive their data from the contents of the proc directory, for example, the lsmod command is an alias for cat / proc/modules.
There is a special class of pseudo file systems in Linux, which are used to perform various functions using operations unified with the file interface, such as ptyfs, devfs, sysfs, and procfs. Procfs is one of the most widely used pseudo file systems.
In terms of the term file system, the / proc directory is not a real file system, it is a virtual file system, sometimes referred to as a process information pseudo file system.
The data placed by proc is in memory, such as the system kernel, processes, the state of external devices, and the state of the network. Because the data in this directory is in memory, it does not take up any hard disk space.
Procfs is the abstract file interface of Linux kernel information. A large number of kernel information and adjustable parameters are mapped to a directory tree as regular files, so that we can simply and directly query and adjust the system information through file operation commands such as echo or cat. At the same time, procfs also provides an interface so that our own kernel modules or user-mode programs can pass parameters through procfs. In today's Linux systems, a large number of system tools also obtain kernel parameters through procfs, such as ps, lspci, and so on. Without procfs, they may not work properly.
The proc file system is a pseudo file system that only exists in memory and does not take up out-of-memory space. It provides an interface to access the kernel data of the system in the way of file system. Users and applications can get information about the system through proc and can change some parameters of the kernel. Because the information of the system, such as the process, changes dynamically, when the user or application reads the proc file, the proc file system dynamically reads the required information from the system kernel and submits it.
These are all the contents of the article "what is the concept of proc in linux". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.