LINUX Commands to Check CPU and Memory usage in past


To Check Memory


sar -f /var/log/sa/sa<day> -r

Ex. : For 5th Day

sar -f /var/log/sa/sa05 -r


To check CPU


sar -f /var/log/sa/sa<day> -u

Ex. : For 5th Day

sar -f /var/log/sa/sa05 -u