Pregunta de entrevista de Amazon Web Services

How do you check CPU and memory usage on a Linux machine?