Linux tip: `ps aux --sort=-%cpu | head -20` shows top CPU-consuming processes. Replace `-%cpu` with `-%mem` for memory usage. The `--sort` flag works with any column name from `ps` output. #Linux #Performance
Linux tip: `ps aux --sort=-%cpu | head -20` shows top CPU-consuming processes. Replace `-%cpu` with `-%mem` for memory usage. The `--sort` flag works with any column name from `ps` output. #Linux #Performance