System Information

Command
Description
Example

uname -a

Display kernel information.

uname -a → Outputs detailed system and kernel information.

uptime

Show system uptime.

uptime → Displays how long the system has been running.

free -h

Display memory usage in human-readable format.

free -h → Shows free and used memory with details.

df -h

Show disk space usage in human-readable format.

df -h → Displays available and used disk space on all mounted filesystems.

hostname

Display system hostname.

hostname → Outputs the name of the system.

dmesg

Print system boot messages.

dmesg → Shows kernel messages, useful for troubleshooting.

Last updated