Our expert
Mihalis Tsoukalos is a Unix administrator, a programmer, a DBA and mathematician. When not writing articles, he’s kneedeep in learning new programs to (write about). You can reach him at www.mtsoukalos.eu and @ mactsouk.
Quick tip
The psutil module can replace a host of command line utilities, such as ps, top, lsof, netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime, pidof, tty, taskset and pmap!
The main advantage of psutil, the Python module that provides information on system processes and use, is that it’s cross-platform, which means that the code will work without changes on all operating systems. After you read this tutorial and see the practical examples, you’ll know how to use the psutil module in your own projects, especially if you are a…
