System Info
Monitor system resources within the Docker container.
CPU and Memory
# Overview
top -bn1 | head -20
# Memory usage
free -h
# CPU info
nproc
cat /proc/cpuinfo | grep "model name" | head -1
Disk
# Disk usage
df -h
# Directory sizes
du -sh /data/*
Network
# Network interfaces
ip addr show
# Active connections
ss -tuln
Tips for AI Agents
- Use
top -bn1for non-interactive snapshot of processes. - Monitor memory with
free -hfor human-readable output. - Check disk space before large file operations.