Check Linux System Health

hankknight
hankknight used Ask the Experts™
on
I use CentOS 5.

What is the best way to check system health from the command line?

   - Memory Used / Available
   - CPU Usage
   - Number of open processes
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2013
Top Expert 2013
Commented:
top
Top Expert 2009
Commented:

1
   - Memory Used / Available  

-> top or htop or free -m

Cpu uses : top , htop , sar   [ sar will take interval ]

Number of open process :

ps aux
ps aux | grep process name [ if you want to more specifi ]

or
lsof   [ its the best command ]
read man fo lsof

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial