Learn how to inspect disk usage, memory usage, uptime, and running processes on a Linux machine.
Build confidence with basic Linux troubleshooting commands used during incidents and interviews.
View mounted filesystems and available disk space in human-readable format.
Command
df -hExpected Result
You should see total, used, and available space for each mounted filesystem.
Inspect which folders consume the most disk space in the current directory.
Command
du -sh *Expected Result
You should see a size value next to each file or directory.
Display system memory usage in megabytes.
Command
free -mExpected Result
You should see total, used, and free memory values.
Inspect how long the system has been running and current load.
Command
uptimeExpected Result
You should see system uptime and load averages.
Open a real-time process monitor to see CPU and memory consumption.
Command
topExpected Result
You should see a live list of running processes and resource usage.
You can inspect disk, memory, uptime, and processes on Linux.
You understand which commands to run first during basic host troubleshooting.