This will show you top 10 process that using the most memory: ps aux –sort=-%mem | awk ‘NR<=10{print $0}’