In Linux, system information commands provide information about hardware, software, and configuration elements of the system. This command will provide information such as kernel version, distribution name, distribution version, processor type, memory usage, network configuration, and processes running.
Administrators and users can use these commands to examine the performance and status of the system and troubleshoot problems. In order to maintain and manage a Linux system, you need to know the Linux system information commands.
Command | Description |
---|---|
uname -a | Displays detailed information about the Linux kernel |
lsb_release -a | Provides information about the Linux distribution installed on the system |
top | Displays real-time information about the system's processes |
free -m | Displays information about the system's memory usage |
df -h | Displays information about the system's disk usage |
uptime | Displays how long the system has been running and the average system load |
lspci | Displays information about the system's PCI buses and devices |
lsusb | Displays information about the system's USB buses and devices |
hwinfo | Displays detailed hardware information about the system |
dmidecode | Displays detailed information about the system's hardware components |
cat /proc/cpuinfo | Displays detailed information about the system's CPU |
cat /proc/meminfo | Displays detailed information about the system's memory usage |
ifconfig | Displays information about the system's network interfaces |
netstat -a | Displays information about the system's network connections |
netstat -ntlp | It displays active network connections and their associated processes or programs. By combining these options, system administrators can easily identify applications or processes that use network connections and troubleshoot network-related issues. |
iptables -L | Displays information about the system's firewall rules |