Domanda di colloquio di J. Crew

How you find the space/memory information of a process/application using bash or powershell? For Example, How do I find the space occupied by your application.