Memory usage by process

ps aux --sort=-%mem | head

Source: https://unix.stackexchange.com/a/166559

Check total used and available:

top