Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

Linux System Information

Linux System Information Script

Copyright © 2019 Teal Dulcet

Outputs system information on Linux, including:

  • Linux distribution
  • Computer Model
  • Processor (CPU)
  • CPU cores/threads
  • 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.

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 address and Hostname, please see this page (under "Command Line Interface (CLI)").

❤️ 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 https://raw.github.com/tdulcet/Linux-System-Information/master/info.sh -qO - | bash -s

curl

curl 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 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 https://raw.github.com/dylanaraps/neofetch/master/neofetch -qO - | 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 https://raw.github.com/KittyKatt/screenFetch/master/screenfetch-dev -qO - | bash -s -- -v

Other Scripts

Data Type Information

Outputs C/C++ data type information, including data type sizes, minimum values, maximum values, etc. for the current system.

wget https://raw.github.com/tdulcet/Linux-System-Information/master/typeinfo.sh -qO - | 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 https://raw.github.com/tdulcet/Linux-System-Information/master/ipinfo.sh -qO - | bash -s

Contributing

Pull requests welcome! Ideas for contributions:

  • Add more system information
  • Add more examples
  • Improve the performance

About

Linux System Information Script

Resources

License

Releases

No releases published

Packages

No packages published

Languages