
How do I determine the total size of a directory (folder) from the ...
1236 Is there a simple command to display the total aggregate size (disk usage) of all files in a directory (folder)? I have tried these, and they don't do what I want: ls -l, which only displays the size of the …
How do I get the size of a directory on the command line?
Feb 20, 2015 · I tried to obtain the size of a directory (containing directories and sub directories) by using the ls command with option l. It seems to work for files (ls -l file name), but if I try to get the s...
Fast way to display the size of each subdirectory in a directory
Sep 3, 2016 · 18 I want to check which directories take most disk space, quickly. I tried du -sh subdir but it took more than 20 seconds on bigger directories. I'm not sure how to display the size of all the …
How do I get the total size of everything in a directory in one line ...
Oct 29, 2015 · Thanks! Remarks: On macOS 11 Big Sur the option needed for du is -d (as in "depth"). du -d 0 only gives you the size of your current directory (".") without listing the directories in it. du -d 1 …
How can I calculate the size of a directory? - Unix & Linux Stack Exchange
Oct 12, 2010 · The ls -ldh command only shows the size of inode structure of a directory. The metric is a reflection of size of the index table of file names, but not the actual size of the file content within the …
How to list recursive file sizes of files and directories in a ...
How do I list all the files in a directory and their recursive file sizes? ---edit I want to see the sizes 'rolled up' to the parent directories in the directory listed.
disk usage - What's a command line way to find large files/directories ...
If you just need to find large files, you can use find with the -size option. The next command will list all files larger than 10MiB (not to be confused with 10MB): find / -size +10M -ls If you want to find files …
How do you sort du output by size? - Unix & Linux Stack Exchange
If you have GNU coreutils (common in most Linux distributions), you can use du -sh -- * | sort -h The -h option tells sort that the input is the human-readable format (number with unit; 1024-based so that …
How to get the size of a large directory? - Unix & Linux Stack Exchange
Sep 29, 2023 · How can I get the size of a large directory with lot of small sub-directories on Linux? I just want the total size the parent directory. I tried du -s mydirectory/ but it is taking a long time to e...
Finding files that use the most disk space - Unix & Linux Stack Exchange
3 Disk Usage Analyzer (AKA Baobab) There is a simple and effective way to find the size of every file and directory on Ubuntu: Applications > Accessories > Disk Usage Analyzer In this window, click …