du Questions

5

Solved

We need to monitor the size of a directory (for example the data directory of InfluxDB) to set up alerts in Grafana. As mentioned here: How to configure telegraf to send a folder-size to influxDB ,...
Kremlin asked 6/6, 2017 at 9:27

5

Solved

In Linux, I type du -sh * | sort -rh to display the files and directories in my current directory, sorted from largest to smallest. How do I do this in OSX terminal, preferably without installing ...
Portly asked 22/8, 2014 at 20:7

7

Solved

I am trying to evaluate the disk usage of a number of Unix user accounts. Simply, I am using the following command: du -cBM --max-depth=1 | sort -n But I’ve seen many error message like below. H...
Pa asked 28/2, 2013 at 17:13

2

Solved

I have docker in version 18.03.1-ce that support command docker system df. His output: Images space usage: REPOSITORY TAG IMAGE ID CREATED ago SIZE SHARED SIZE UNIQUE SiZE CONTAINERS registry.git...
Coyle asked 29/5, 2018 at 17:37

2

Solved

I'm trying to check with Disk Usage tool how big are my home directory folders but it also prints out folders and files starting with dot. I can't seem to filter them out. du -h --exclude="?" du ...
Culminant asked 28/3, 2011 at 19:15

6

Solved

I have a PowerShell script that uses du.exe (Disk Usage originally from Sysinternals) to calculate the size of directories. If I run du c:\Backup in the console, it works as expected, but the same...
Unaneled asked 19/1, 2010 at 16:36

3

Solved

I have a program in which I load text from a file and then filter it according to one of the fields. What I am interested in is the size of the data after this filtering step. Ideally, I would be ...
Cola asked 16/11, 2012 at 14:34

3

Solved

I was compiling a custom kernel, and I wanted to test the size of the image file. These are the results: ls -la | grep vmlinux -rwxr-xr-x 1 root root 8167158 May 21 12:14 vmlinux du -h vmlinux 3....
Narine asked 21/5, 2014 at 16:32

1

Solved

I am using du -sh to see the size of directories. If I check a 1KiB directory, I will see: 1.0K . However, I want the output in bytes, and only the bytecount. For example: $ du -sh . 1024
Baier asked 22/12, 2019 at 7:46

2

How do I exclude a directory from ncdu scanning? I can't found the information in man ncdu page. When doing ncdu -x / it scanned my /home/tmp directory for almost an hour.
Horse asked 9/8, 2019 at 15:40

5

Solved

Why is the output of du often so different from du -b? -b is shorthand for --apparent-size --block-size=1. only using --apparent-size gives me the same result most of the time, but --block-size=1 s...
Cox asked 17/4, 2011 at 16:26

3

Solved

I have a very big storage disk (16T). I want to run 'du' on it to figure out how much each subdirectory takes. However, that takes a very long time. Luckily, I have at my disposal a cluster of comp...
Nanna asked 7/7, 2014 at 8:0

4

Solved

Windirstat/ Kdirstat/ Disk Inventory X has been nothing short of revolutionary in file managment. Why is there no text-only command line equivalent? I'd need it for SSH administration of my file se...
Vasquez asked 29/3, 2013 at 20:18

2

Solved

If the wording of the question is wrong, please let me know. It might explain why I can’t find an answer. I want to find the usage on my main disk using a command like: du -sh /* The problem...
Lifesaving asked 17/5, 2016 at 22:6

2

I'm trying to run du -ch on multiple directories, but I only apart it only shows the total size of all files (I don't want each individual file, then the total at the end which is what -cdoes...
du
Sora asked 2/2, 2016 at 18:0

1

Solved

I am using DU function to output the directory size to a file and then move it to an excel file to add the total. Is it possible to output the size of a directory only in MB (even if the size is in...
Winebaum asked 29/1, 2016 at 6:30

6

Solved

PLEASE SEE BELOW THE ORIGINAL QUESTION FOR SOME TEST COMPARISONS OF DIFFERENT WAYS: So I tried 2 ways so far: 1.Iterate through directory using the code from Get Folder Size from Windows Comman...
Mailbox asked 28/5, 2015 at 17:27

7

Solved

I have a large set of directories for which I'm trying to calculate the sum total size of several hundred .txt files. I tried this, which mostly works: find . -name *.txt | xargs du -hc But inst...
Betaine asked 24/8, 2009 at 17:29

3

I've got a bunch of files scattered across folders in a layout, e.g.: dir1/somefile.gif dir1/another.mp4 dir2/video/filename.mp4 dir2/some.file dir2/blahblah.mp4 And I need to find the total dis...
Retrench asked 6/3, 2015 at 13:45

1

Solved

I am trying to get the size of a directory in Linux but it has a lot of subdirectories and seems to take forever to go through all of these files and directories before giving me an answer to what ...
Sori asked 18/12, 2014 at 12:56

1

Solved

I operates a Synology NAS device and the unit includes that over 600 users data. The users backup data are tax accounting data. So, approximately one user's folder has 200,000 files. I have...
Friedlander asked 16/6, 2014 at 0:42

2

Solved

I have a backup system that creates directories named after Unix Timestamps, and then creates incremental backups using a hardlink system (--link-dest in rsync), so typically the first backup is ve...
Clubfoot asked 13/11, 2013 at 10:55

2

Solved

I want to check the total size of a git repository. Is funny that du is giving me two different kind of sizes when the -h flag is sent. It is actually giving double size. Why is this? What is the c...
Tragus asked 11/5, 2014 at 23:46

1

I have a file for which du -b filename gives 67108864 as the answer (which is supposed to be in bytes), while du filename gives 65604 (which is supposed to be in kilobytes). However, it should retu...
du
Peplos asked 16/4, 2014 at 12:13

3

Solved

I have a vps slice running centos 5.5 I am supposed to have 15 gigs of disk space, but according to df it seems to double my disk space usage. when I run du -skh * in / as root i get: [root@yardv...
Keldah asked 12/12, 2010 at 22:28

© 2022 - 2025 — McMap. All rights reserved.