Find biggest files or directories
Which command will print the sizes of all files and directories in the tmp directory (including hidden ones) and sort them by sizes from
largest to smallest in human readable format (e.g. 2 GB)?
Which command will print the sizes of all files and directories in the tmp directory (including hidden ones) and sort them by sizes from
largest to smallest in human readable format (e.g. 2 GB)?
This is probably something basic but I’m not able to make it work. I’m trying to use DU to get a total size of files minus certain directories. I need to exclude one specific directory called uploads but not every directory called uploads. For example, my file structure looks a bit like this:
For some reason, when I make a text file on OS X, it’s always at least 4kB, unless it’s blank. Why is this? Could there be 4,000 bytes of metadata about 1 byte of plain text?
I’ve got Ubuntu 18.04 Server in Virtual Box, and once I’ve ran out of 10 GB of allocated space on virtual disk, I’ve increased the size of the virtual disk to 17 GB and resized the root partition with parted‘s resizepart command (and done so while partition is in use, and yes I know it’s … Read more
Is there a way to tell the kernel to give back the free disk space now? Like a write to something in /proc/ ? Using Ubuntu 11.10 with ext4.
I know you are able to see the byte size of a file when you do a long listing with ll or ls -l. But I want to know how much storage is in a directory including the files within that directory and the subdirectories within there, etc. I don’t want the number of files, but instead the amount of storage those files take up.
My root filesystem is running out of inodes. If this were an issue of disk space, I’d use du -s to get a top-level overview of where the space is going, then head down the directory tree to find particular offenders. Is there an equivalent option for inodes?
How can I get the size of all files and all files in its subdirectories using the du command.
I noticed that the folder referenced in the subject line is taking up 1.5 GB. Can I run the below to clear it without causing permanent damage to my system?
I have a partition /dev/sda1.
Disk utility shows it has the capacity of 154 GB.
df -h shows