Skip to content

Instantly share code, notes, and snippets.

@Hammer2900
Created July 28, 2025 07:29
Show Gist options
  • Select an option

  • Save Hammer2900/32e22d5d93f4f4d8e1eadd9351de7c13 to your computer and use it in GitHub Desktop.

Select an option

Save Hammer2900/32e22d5d93f4f4d8e1eadd9351de7c13 to your computer and use it in GitHub Desktop.
show max app using memory
ps -eo pid,comm,%mem,rss --sort=-%mem | head -n 11 | awk "NR==1{printf \"%-8s %-25s %-10s %s\n\", \$1, \$2, \$3, \"RAM(MB)\"} NR>1{printf \"%-8s %-25s %-10s %.2f\n\", \$1, \$2, \$3, \$4/1024}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment