How to find the largest files and directories in Linux?

How to find the largest files and directories in Linux?

Answer:

For example, to list out top 10 files and directories inside /opt, you can use the following command:

# du -a /opt| sort -nr | head -n 10

Attachments
There are no attachments for this article.
Related Articles RSS Feed
Easily Monitor CPU Utilization in Linux Terminal With Stress Terminal UI
Viewed 4183 times since Thu, Apr 18, 2019
RHEL: Extending a vmdk (Virtual Machine disk)
Viewed 4250 times since Sun, May 27, 2018
PROCESSOR AND MEMORY INFORMATION
Viewed 5660 times since Sat, Jun 2, 2018
Turbocharge PuTTY with 12 Powerful Add-Ons – Software for Geeks #3
Viewed 14753 times since Sun, Sep 30, 2018
Linux / UNIX: DNS Lookup Command
Viewed 9657 times since Sun, Sep 30, 2018
SSH: Execute Remote Command or Script – Linux
Viewed 2488 times since Mon, Feb 18, 2019
ZPOOL: Remove an existing zpool
Viewed 2388 times since Sun, Jun 3, 2018
A tcpdump Tutorial and Primer with Examples
Viewed 5347 times since Sun, Jun 17, 2018
Using stunnel to Encrypt Database Connections
Viewed 3753 times since Fri, Sep 28, 2018
chrt command: Set / Manipulate Real Time Attributes of a Linux Process
Viewed 11178 times since Mon, Feb 17, 2020