du is a unix command to measure disk usage
Questions tagged [du]
193 questions
-1
votes
1 answer
Source file size increase during rsync
I backup a directory with rsync. I looked at the directory size before I started the rsync with du -s, which reported a directory size of ~1TB.
Then I started the rsync and during the sync I looked at the size of the backup directory to get an…

Fex
- 322
- 1
- 13
-1
votes
1 answer
Finding disk space details Linux server
I have a strange issue.
When I use the below command
[user@lautpyy003d ~]$ df -h /app/dev-data Filesystem Size Used Avail Use% Mounted on nfspci1q-2421-03.xxx.xx.xxx.xxxx:/app_nfs/lautpyy003d_4d_app_dev-data 68G 55G 14G 81% /app/dev-data
The above…

user2967948
- 529
- 2
- 8
- 23
-1
votes
4 answers
Linux: Find out top 10 recently updated files / folders
I would like to find out what were top consuming files or folders in linux, which consumes most space (in human readable form - in MB or in GB) files or folders should be recently modified - for example within last month.
I suspect this is…

TarmoPikaro
- 4,723
- 2
- 50
- 62
-1
votes
2 answers
print total of 'du' for one filetype, directory is not flat
I have a directory with multiple filetypes, directories absolutely not flat with variable depths.
I'd like to know the volume size a given filetype is occupying.
I was thinking of filtering after du and then summing
du -ah . | grep .extension |…

Adrien Horgnies
- 691
- 4
- 11
-1
votes
1 answer
check multiple directory size which are in sequence using du
How can I get size of directory which are in sequence like d1 d2 d3 d4 till d100 i want to check the size of d50 to d100 using du -sh command

amit
- 5,079
- 2
- 17
- 12
-1
votes
1 answer
"du" inconsistent block size
I am getting inconsistent block sizes from du output
$ du -b acinclude.m4 aclocal.m4
2019 acinclude.m4
40203 aclocal.m4
$ du acinclude.m4 aclocal.m4
4 acinclude.m4 # 2019 / 512
40 aclocal.m4 # 40203 / 1024
What is causing…

Zombo
- 1
- 62
- 391
- 407
-1
votes
3 answers
Folder Size Report to CSV
I think I've looked everywhere and I'm not having much luck. I'm trying to create a simple automated billing report. I need to create a CSV with 3 columns. like this
Folder Size Billing Code
Folder1 300M XXXXX
Folder2 600M XXXXX
Folder3 …

Rob C
- 11
-2
votes
1 answer
How to develop a script that can be impletement some du function in UNIX shell script
I have some questions about how to implement some du function in UNIX shell (/bin/sh)
when I want to write a script to exec some commands.
1)To avoid confusion with the real du command, how can I name that du to a new name like e.g."disku"?
2)I…

user1304473
- 39
- 1
- 1
- 4
-2
votes
2 answers
Comparing two files based on size
I am facing difficulty in extracting the unique files of different sizes.
Question: Inside a directory few files are present, suppose 2 files of 2 mb, 4 files of 4 mb and 3 files of 6 mb.
Now, we need to run a script which will check all the files…

sumit gupta
- 3
- 4
-2
votes
1 answer
Perl - Get directory size without Find or du
Topic. I'm trying to get the size of a directory without using the Find module and without using the du command. Here's how I'm currently approaching it but it doesn't seem like it's returning the correct size. It's returning 418836 bytes but when I…

SelfTaught
- 482
- 6
- 16
-3
votes
2 answers
Find usage % of a directory in the disk
How to find the % of disk space used by a directory using du command in linux.

Vishnu
- 479
- 1
- 3
- 14
-4
votes
1 answer
AWS instance not showing the correct free space
I use AWS and I got an EC2 instance.
When I run the command
du -h --max-depth=1
I get:
and When I run the command
df -h
I get:
It look I use only 1GB but it show that I am using 7.1GB.
So I run the command lsof +L1 to locate some deleted file…

Blackstar
- 97
- 1
- 2
- 8
-4
votes
1 answer
How to print out diskspace being consumed by a user's home directory with files
How can I print out the amount of diskspace that a particular user is consuming in their home directory with files? I want to print out each file and its size in K and then at the end print out a grand total of diskspace used in K as well.

kellyS723
- 31
- 8