Use the top or htop commands to view the memory usage percentage for each process as it happens. You can also run ps aux --sort=-%mem to list processes sorted by memory consumption.