This article was co-authored by Michael Thompson-Brown and by wikiHow staff writer, Nicole Levine, MFA. Michael Thompson-Brown is a Cybersecurity Expert based in Portland, Maine. He is the owner and founder of PCRescue!, a company that provides cybersecurity and data management solutions to small businesses and individuals. Michael has over 25 years of experience in the IT industry and is a certified ethical hacker. He is passionate about helping clients protect their data and systems from malicious attacks and helping them optimize their online presence and reach. He received a Master’s degree in Cybersecurity and Information Assurance from Western Governors University, and a Bachelor’s degree in Business Administration from the University of Phoenix.
This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources.
This article has been viewed 13,539 times.
If you want to know which files on your Linux system are taking up the most space, you have several options, including both command-line and GUI tools. This wikiHow article will teach you the best ways to find large files on Linux.
Things You Should Know
- To find large files on Linux, use this command: sudo du -aBm / 2>/dev/null | sort -nr | head -n 10
- To find the largest files in a directory, use: du -ah /directory/name | sort -rn | head -n 10
- To find all files over 500 MB, use: sudo find / -type f -size +500M -ls
Steps
Expert Q&A
Video
Tips
-
You can also use ncdu, a disk usage analyzer meant for finding large files on remote servers. Install it with sudo apt install ncdu, or get it from your distro's package manager.[2]Thanks
Expert Interview
Thanks for reading our article! If you’d like to learn more about linux, check out our in-depth interview with Michael Thompson-Brown.