Linux System Mining with Python

by Amit


In this article, we will explore the Python programming language as a tool to retrieve various information about a system running Linux. We start by exploring the platform module. For example, the platform.uname() function returns similar information to the Linux command, uname:

>>> import platform
>>> platform.uname()
('Linux', 'fedora.echorand', '3.7.4-204.fc18.x86_64', '#1 SMP Wed Jan 23 16:44:29 UTC 2013', 'x86_64')

Read the entire article here

Advertisement