System Information
The following commands show you how to extract useful information about your Operating System.
Get OS Version
$ cat /etc/os-release
Get Linux Version
$ uname -srm
Get Shell Name
$ echo "$SHELL"
Get Desktop Name
$ echo "$XDG_CURRENT_DESKTOP"
Show RAM Usage
$ free -m # in megabytes
$ htop
$ btop
Show Disk Usage
$ df -h
List Running Services
$ systemctl
View Logs for a Service
$ journalctl -u service-name
Show IP Addresses
$ ip addr show
Get System Hardware Information
$ inxi --basic
$ fastfetch
Show Screen/Montior Information
$ xrandr