A python application that displays linux system information
- python3 (Tested on 3.11)
- linux OS (Tested on Debian 12 (Bookworm))
Install required pip packages:
pip install -r requirements.txt
Run the application from cmd-line:
python3 NiceTestApp.py
-h,--help: Display help message with available arguments-logInfo: Write system information toNiceTestApp.login the same directory as the script
Display system information to console only:
python3 NiceTestApp.pyDisplay system information to console and save to log file:
python3 NiceTestApp.py -logInfopsutil (7.1.3+): library for retrieving system and process information
- Computer Name (Fully Qualified Domain Name)
- Total Physical Memory (GB)
- Total Number of Physical Processors (CPU sockets)
- Total Number of Cores (total physical cores)
- Total Number of Hard Disks (excludes partitions)
- Top 5 CPU-Consuming Processes (measured over 10 seconds by default)
- This application is designed for Linux systems and uses
lscpuandlsblkcommands for hardware detection - Help functionality implemented using Python's standard
--helpflag via argparse - If system commands (
lscpu,lsblk) are unavailable, affected fields will displayNone