List all process that are using swap
✓ Published0🌍 Public
Aadkdev
Last edited Jul 17, 2018
Created on Jul 17, 2018
This example displays a sorted list of processes currently using swap memory, showing the process name, PID, and swap usage in kilobytes. The visualization is a plain-text table generated by a Bash script, which reads `/proc/*/status` files and extracts the `Name`, `Pid`, and `VmSwap` fields using `awk`. It filters out entries with zero swap, sorts the results numerically by swap size in descending order with `sort -k 3 -n -r`, and formats the output into aligned columns using `column -t`. The data originates directly from the Linux kernel’s proc filesystem.
AI-generated description