ADVA interview question

Linux based Questions like,command to get all open ports , command to know memory or cpu utilisations