Linux system information directory

  
 

The Linux file system has a special directory /proc, and the files listed in this directory are not saved on disk but in an image in memory. You can find many interesting things in this directory. For example: /proc/cpuinfo Information about the native CPU /proc/meminfo Usage information of the local memory and swap partition /proc/modules The hardware module information installed by this machine /proc/The mounts machine has mounted the device information on the mount. In addition, there are some subdirectories under the name of the directory. Each subdirectory is used to maintain a running process, and the directory name is the corresponding process ID, for example, the entry name. The subdirectory cd /proc/1 is 1. The content of the file cmdline in the directory is the command line environ executed when the process is running. The content of the file is the environment variable information when the process is running. When the stat file is stored. Status information such as the running of the process. . . By viewing the files in the /proc directory, you can get almost all system information and system operating status information. In fact, many commands under Linux for querying system status information are also obtained by reading files in this directory.

Copyright © Windows knowledge All Rights Reserved