I want to monitor the CPU and Memory usage for long hours and find the average of that on a Linux server. Can anybody help me to monitor it using a script. I want to know the readings for around 15-20hrs.


1 Answer 1


I'd use the sysstat package for that, it has, among others, the sar and mpstat commands that could be useful four your usecase...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.