Life matters, nature is gorgeous, technology as a friend, teaching is power. Difference between a mountain and a molehill is your perspective. RT ≠ endorsement.
💡 Quick Linux Tip #19
Your disk is almost full, but you can't figure out which folder is taking up all the space.
Here's a quick command:
du -sh * | sort -hr
This shows the size of each folder in your current directory.
Instead of opening folders one by one, Linux sorts them from largest to smallest.
The biggest folders appear at the top, making it easy to spot what's using your storage.
Follow @tecmint for more #Linux tips
💡Quick Linux Tips #18
Your disk is almost full, but you have no idea what's consuming the space.
Here's a quick way to find the biggest files and folders:
du -ah /var | sort -rh | head -20
This shows the 20 largest files and directories inside /var.
Instead of manually checking every folder, Linux sorts everything from largest to smallest so you can spot storage hogs immediately.
The -a option includes both files and directories, while sort -rh sorts sizes in human-readable format.
Follow @tecmint for more #Linux tips