Created
January 17, 2023 10:34
-
-
Save yazanmonshed/b9a285090dc5ca99b1113a12f2317059 to your computer and use it in GitHub Desktop.
Display top processes in system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Display the top 10 processes by memory usage | |
ps aux --sort=-%mem | head -n 11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment