Skip to main content

Questions tagged [du]

"du" is the Linux command for reporting Disk Usage

0 votes
1 answer
54 views

du command with -h option modifies the displayed result

trying to understand the basics of du command is not that simple for me . For instance there is this -h option which is defined as printing in "human readable format" . The problem is that ...
mazda's user avatar
  • 177
0 votes
0 answers
56 views

Using ncdu, how to know the number of items in current dir, not total count in childtree

I love using ncdu to browse files in Debian (and also MacOS), yet I can't figure out a way to display the number of items in the current directory, rather than the total amount of files including all ...
Myoch's user avatar
  • 111
0 votes
1 answer
73 views

Inconsistent du output on /usr

First here is the size of /usr : $ sudo du -sh /usr 6.2G /usr $ When doing a du on the directories at the / and selecting /usr, I get this : $ sudo du -sh /*/ | grep /usr du: cannot access '/proc/...
SebMa's user avatar
  • 1,883
1 vote
1 answer
171 views

2T file system full! du says only 70G consumed. Where is the rest?

When I run df / I get Filesystem Size Used Avail Use% Mounted on /dev/mapper/ubuntu--vg-ubuntu--lv 2.0T 1.9T 0 100% / When I run sudo ncdu -x / I get Total disk usage: ...
vijayvithal's user avatar
1 vote
1 answer
2k views

Synology NAS: deleted files but space won't go down

I've been facing this problem with my Synology lately: I use the Download Station to download torrents in the folder /volume3/video. I now have downloaded 43 files and I can list them running the ...
Francesco Mantovani's user avatar
0 votes
1 answer
2k views

exclude all directories and subdirectories from du/diff command in calculations

I would like to find difference in bytes in files. However, du/diff command with -a list also directories and subdirectories. I want only the files in subdirectories and directories, not these ones. I ...
Estatistics's user avatar
-2 votes
1 answer
76 views

Why does du command show wrong size of log directory?

I'm running: du -h These are the results: 112K ./YaST2/storage-inst 172K ./YaST2/storage-03 56K ./YaST2/storage-02 48K ./YaST2/storage-01 60K ./YaST2/storage 64K ./YaST2/control-...
nintyfan's user avatar
1 vote
2 answers
167 views

How to run xargs utility on all expanded lines of input?

I have a file with a list of files and directories, containing the wildcard *. I am trying to output the size of the entries with du and would like a grand total. If I start with: cat file | xargs du -...
Francisco Leon's user avatar
0 votes
0 answers
37 views

Linux: inconsistency reported by 'du'

xrfang@lky-web-02:/tmp/nnrres/ready$ ls -alh total 249M drwxr-xr-x 2 root root 249M Oct 27 08:29 . drwxr-xr-x 11 root root 4.0K Oct 17 22:35 .. -rw-r--r-- 1 root root 303 Oct 24 13:11 ...
xrfang's user avatar
  • 141
1 vote
1 answer
187 views

Only print terminal directories in "du"?

Is there a generalized solution for getting only the deepest directories? Counting slash characters won't work, because if I change to --max-depth=4, the deepest directories won't all have the same ...
RonJohn's user avatar
  • 261
0 votes
1 answer
3k views

How to check what was moved when using “mv” and the process stops due to permissions issues?

I want to move a folder (test) on our server from /home/data to /home/projects/data. What I did is to use mv. It did not move the folder in the end for some permission problems. However, the folder ...
Laurie1989's user avatar
3 votes
1 answer
380 views

Odd behavior by 'du' with `dd` on a BTRFS disk showing 0 filesize.. Anyone got some clues or thoughts around it?

Been tinkering with btrfs with consideration of moving from ext4 to that. However, when wanting to compare R/W speeds, I seem to have come across an (to me at least) unusual behavior by du on the ...
DhP's user avatar
  • 243
0 votes
1 answer
234 views

Why are df and du command show inconsistent results?

When I run df -h it shows that 95% has been used in /data4 and I am the only user under /data4. Filesystem Size Used Avail Use% Mounted on overlay 591G 455G 136G 78% / tmpfs ...
martin's user avatar
  • 145
1 vote
0 answers
2k views

BTRFS discrepancy between df and du

the difference between disk usage reported by df and du makes 20% of capacity of my drive. It is ubuntu-type btrfs filesystem with @ and @home. Where could be the problem please? df -h /dev/sda2 ...
Jan's user avatar
  • 367
0 votes
1 answer
246 views

Excluding current folder when using du

I'm trying to read the size of the files in a folder using du -ah, but the output keeps showing me the current directory information( . ). I was wondering if there's some flag I can use with du to ...
Oscar's user avatar
  • 13

15 30 50 per page
1
2 3 4 5
8