What are the tools available to determine the largest files and directories on the system?

Updated -

There are a couple of simple commands that will help accomplish this task. They are du and sort.

The du command is used to calculate the sizes of files or whole directories. Run du as the root user or superuser. Running it as a regular user will result in "Permission Denied" errors.

To determine the sizes of all root level direc...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content