Last active
November 11, 2023 10:23
-
-
Save PraneethKarnena/7818f131a742a3bd92d16576249ecc4a to your computer and use it in GitHub Desktop.
Find free memory, memory consumption, disk usage of a folder
This file contains hidden or 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
# Check disk usage of a folder | |
du -hs /folder | |
# Other disk usage commands | |
df -h --total | |
# Check free RAM in MBs | |
free -m | |
# List top 10 processes by memory consumption | |
ps aux --sort -rss | head -11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment