Linked Questions

77 votes
10 answers
171k views

How to find the largest directories or largest files? [duplicate]

Under Linux, I'm looking for a command to list the largest file and/or the largest directories under a directory.
Eric V's user avatar
  • 873
91 votes
5 answers
198k views

How do I get the size of a Linux or Mac OS X directory from the command-line? [duplicate]

What command do I use to find the size of all the files (recursively) in a Linux or Mac OS X directory?
Daryl Spitzer's user avatar
1 vote
2 answers
1k views

How to find files and directories that are taking too much space in Linux? [duplicate]

In Windows I could easily do this by navigating the directory tree and looking at the sizes. But in Linux, you need to run a command and, what's worse, it takes a lot of time: $ du -sh /some/dir I'm ...
ChocoDeveloper's user avatar
0 votes
4 answers
500 views

How to find largest folder? [duplicate]

How to find which folder in home directory is largest by the number of files? (excluding directories)
Kein's user avatar
  • 11
0 votes
0 answers
36 views

Loop through folder with higher space usage in shell? [duplicate]

I would like to create an script where give me a report of which folders have the higher usage space and keep doing that until there's no folder anymore. Today I do this manually, with: sudo du -h --...
Valter Silva's user avatar
  • 1,381
75 votes
17 answers
214k views

How do I find the largest files and folders on a drive? [duplicate]

Possible Duplicate: How can I visualize the file system usage on Windows? I am looking for a tool to tell me which files and folders are the largest as I need to do some cleanup.
22 votes
9 answers
16k views

Finding what's using all the space in *nix

Which sequence of commands will tell me which files are the largest starting from a particular directory, including all sub directories? I want to know where all the space went. Preferably just with ...
Alex Budovski's user avatar
1 vote
3 answers
1k views

Bash command for finding file extensions with largest size

I am trying to find file extensions with sorted by size in a directory and sub directory. Something like this: 76K .pek ./Adobe Premiere Pro Preview Files/demo.PRV/1d860051-77c9-4acb-973e-...
suvozit's user avatar
  • 11
0 votes
2 answers
242 views

Where is my diskspace?

Recently my disk space reached the 98% mark, and I tried to discover the reason for this. My system consists of two disks: a ssd /dev/sda and a storage hdd /dev/sdb. My Linux is installed on /dev/...
dustin.b's user avatar
  • 101
0 votes
1 answer
124 views

Mounted /home on a partition and GParted shows as if it isn't

I have 1 SSD (128 GB) and 1 HDD (1000 GB) Yesterday, I used this tutorial to migrate my /home directory to a different partition [LINK]: help.ubuntu.com/community/Partitioning/Home/...
1w3j's user avatar
  • 95
-1 votes
1 answer
53 views

Locate the process hogging my disk space

Guest OS: Windows 10 running on VMware Player. Host OS: Ubuntu 14.04 Guest OS Disk: 20 GB used of 60 available. Dynamically allocated, single file. Initial SSD available space: 160 GB. I'm running a ...
Pepedou's user avatar
  • 121