Linux /proc filesystem
The Linux /proc filesystem is a virtual interface that exposes live system information and kernel parameters, enabling users to monitor hardware and processes and adjust kernel settings at runtime
Here are a list of useful /proc entries 😎👆 #software #softwaredeveloper #computer
Find high-res pdf books with all my #linux related #infographic at https://study-notes.org
The Linux /proc filesystem is a pseudo-filesystem that provides a dynamic view into the kernel and running system's internal data structures. It allows users and administrators to monitor system performance, diagnose issues, and even modify kernel parameters during runtime. Key entries within /proc include: - /proc/cpuinfo: Contains detailed information about the CPU, such as model name, number of cores, and clock speed. This is useful for understanding the processor capabilities. - /proc/meminfo: Provides statistics about system memory usage, including total memory, free memory, available buffers, and cached memory. Essential for monitoring RAM consumption. - /proc/stat: Contains aggregated CPU statistics, interrupts, and context switches providing insight into system activity levels. - /proc/uptime: Displays the total uptime since the last boot and the idle time. - /proc/loadavg: Shows the system load averages over 1, 5, and 15 minutes, helping assess overall system load. - /proc/version: Details about the kernel version and build information. - /proc/cmdline: Displays the kernel parameters passed at boot time. - /proc/mounts: Lists all currently mounted file systems with their types and mount points. - /proc/swaps: Information about active swap spaces including size and usage. - /proc/diskstats: I/O statistics for each disk, including number of reads and writes. - /proc/interrupts: Tracks interrupts received by each CPU, useful for hardware monitoring. - /proc/filesystems: Lists filesystem types supported by the kernel. - /proc/net/dev: Network interface statistics such as received/transmitted packets and errors. - /proc/net/tcp: Lists active TCP connections with addresses and ports, valuable for network diagnostics. - /proc/net/route: Displays the IPv4 routing table. - /proc/net/sockstat: Socket statistics including allocations and orphaned sockets. Additionally, per-process directories like /proc/[PID]/ provide detailed information about individual processes, including status, open file descriptors, I/O statistics, and network connections. Using these virtual entries, system administrators and developers can gain deep insight into system health and behavior without requiring additional tools, making /proc an indispensable component for Linux system management and debugging. For further study, comprehensive infographics and detailed PDF resources are available at study-notes.org to help master the Linux /proc filesystem.
![An infographic titled 'Linux /proc Filesystem' by Dan Nanni, featuring the Linux penguin mascot. It lists numerous /proc entries like /proc/cpuinfo, /proc/meminfo, and /proc/[PID]/status, detailing the system information each provides, such as CPU, memory, and process statistics.](https://p16-lemon8-sign-va.tiktokcdn.com/tos-maliva-v-ac5634-us/oYmtwdEDsAH26sSe1qPuhWgIDfDiFDA9BCAokQ~tplv-tej9nj120t-wap-logo:QGRhbl9uYW5uaQ==:1080:0.webp?lk3s=66c60501&source=wap_large_logo_image&x-expires=1788998400&x-signature=%2BHI9H9YkljsXOVvUmz5FOUf7dKQ%3D)