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
Top 4 Reasons for Node Reboot or Node Eviction in Real Application Cluster (RAC) Environment
Viewed 105142 times since Thu, Jun 21, 2018
Telnet – Send GET/HEAD HTTP Request
Viewed 3956 times since Mon, Feb 18, 2019
RHEL: Enabling standard ftp/telnet
Viewed 4009 times since Sun, May 27, 2018
linux aix Killing a process and all of its descendants
Viewed 4359 times since Tue, May 5, 2020
Red Hat Cluster Tutorial
Viewed 2484 times since Sun, Jun 3, 2018
RHEL: Route network packets to go out via the same interface they came in
Viewed 3675 times since Sat, Jun 2, 2018
How to deal with dmesg timestamps
Viewed 4025 times since Wed, Oct 3, 2018
RHEL: Extending a vmdk (Virtual Machine disk)
Viewed 4746 times since Sun, May 27, 2018
Linux - How to get CPU information
Viewed 2653 times since Fri, Jun 8, 2018
How to configure an SSH proxy server with Squid
Viewed 3712 times since Sun, Dec 6, 2020