Linux-System-Information
Linux-System-Information copied to clipboard
ℹ️ Outputs system information on Linux, including distribution, computer model, processor, CPU sockets/cores/threads, total memory and swap space, disk space and graphics processor
Linux System Information
Linux System Information Script
Copyright © 2019 Teal Dulcet
Simple script to quickly output system information on Linux, including:
- Linux distribution
- Computer Model
- Processor (CPU)
- CPU sockets/cores/threads
- CPU caches
- Architecture
- Total memory (RAM)
- Total swap space
- Disk space
- *Graphics Processor (GPU)
- Hostname (FQDN)
- IP address(es)
- MAC address(es)
- Time zone
- Language
- *Virtualization container
- *Virtual Machine (VM) hypervisor
* If present
RAM, swap and disk space is output in both MiB (10242 bytes) and MB (10002 bytes). Similar to the systeminfo command on Windows.
Requires at least Bash 4+. Compared to similar programs, this script outputs much more information and is smaller. Useful when using an unfamiliar system or VM, particularly before running a program that has specific system requirements. All the values are saved to variables, which makes this easy to incorporate into larger scripts.
For your Public IP addresses, please see Public IP addresses below.
❤️ Please visit tealdulcet.com to support this script and my other software development.
Also see the Linux System Usage Information script.
Usage
Supports all modern Linux distributions and the Windows Subsystem for Linux (WSL).
wget
wget -qO - https://raw.github.com/tdulcet/Linux-System-Information/master/info.sh | bash -s
curl
curl -sL https://raw.github.com/tdulcet/Linux-System-Information/master/info.sh | bash -s
Example Output
Ubuntu Desktop

Ubuntu Server

openSUSE Server

Raspberry Pi OS (Raspbian)

Google Cloud Platform (Debian)

Scripts where this is incorporated
Other Scripts
Datatype Information
Outputs C/C++ datatype information, including datatype sizes, minimum values, maximum values, etc. for the current system. Requires C++11. Supports both Linux and macOS.
wget -qO - https://raw.github.com/tdulcet/Linux-System-Information/master/typeinfo.sh | bash -s
Public IP addresses
Outputs your public IP addresses using a couple dozen different services to find the one with the best HTTPS response times on your network.
wget -qO - https://raw.github.com/tdulcet/Linux-System-Information/master/ipinfo.sh | bash -s
Other System Information Scripts
- neofetch (Supports multiple operating systems and Linux distributions, lots of command line options, outputs an ASCII version of the logo for a hard coded set of operating systems, but slow to run, displays less information, many of the features require external dependencies, a display and that it is run directly on the system and many of the features are disabled by default)
- Test with this command:
wget -qO - https://raw.github.com/dylanaraps/neofetch/master/neofetch | bash -s -- -v --no_config
- screenFetch (Supports multiple Linux distributions, lots of command line options, outputs an ASCII version of the logo for a hard coded set of distributions, but extremely slow to run and displays less information and many of the features require a display and that it is run directly on the system)
- Test with this command:
wget -qO - https://raw.github.com/KittyKatt/screenFetch/master/screenfetch-dev | bash -s -- -v
- system-report-card (Only shows total RAM, swap and disk space)
Contributing
Pull requests welcome! Ideas for contributions:
- Add more system information
- Show SELinux status
- Add more examples
- Improve the performance