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
OpenSSL – sprawdzanie czy klucz pasuje do certyfikatu
Viewed 1246 times since Thu, May 24, 2018
Open SSL Creating Certificate Signing Request — CSR Generation
Viewed 793 times since Mon, Feb 18, 2019
LVM: Rename root VG/LV
Viewed 1706 times since Sat, Jun 2, 2018
How to find your System details using inxi
Viewed 1544 times since Sat, Jun 2, 2018
Setup SSL Tunnel Using Stunnel on Ubuntu
Viewed 698 times since Fri, Sep 28, 2018
Find All Large Files On A Linux System
Viewed 870 times since Mon, Oct 29, 2018
How to recover error - Audit error: dispatch err (pipe full) event lost
Viewed 8610 times since Tue, Aug 6, 2019
RHEL: Handling SCSI disks
Viewed 1502 times since Sun, May 27, 2018
How to maximise SSD performance with Linux
Viewed 3517 times since Fri, May 15, 2020
How To Run Multiple SSH Command On Remote Machine And Exit Safely
Viewed 944 times since Tue, Aug 6, 2019