Pergunta de entrevista da empresa Paychex

how would you check processes that are consuming to many resources on linux ( also Microsoft)