Questions tagged [du]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
76 views

What is difference between ls -lh and du -sh?

$ ls -lh file1.tar -rw-r--r-- 1 wnice wnice 40K Aug 6 20:41 file1.tar $ du -sh file1.tar 80K file1.tar Why is it showing different sizes of same file? Please help me understand
1
vote
1answer
33 views

Which folders are in /dev/sde3?

How to see which folders are in /dev/sde3 ? df -h /dev/sde3 39G 32G 4.8G 87% / Doing: cd / sudo du -d 1 -h | sort -hr Also shows me folders like: /dev/sde4 ...
1
vote
2answers
56 views

Deleting empty while keeping non empty 4KB files in Ubuntu

I have a folder that contains hundreds of thousands of small .txt files of size 4kb. Some of them are totally empty while others are not. However, they all show the same size 4kb since this is the ...
2
votes
1answer
128 views

File size differs between ls and ncdu

I'm a little confused. With ls -laght a file with the size 1,0T is displayed: -rw------- 1 nogroup 1,0T May 6 14:01 nextcloud-flat.vmdk with ncdu only 9,1 GB: /mnt/backup/backup/nextcloud/nextcloud-...
0
votes
2answers
53 views

Big file on ubuntu 16.04 virtual machine

When I execute sudo du -h --max-depth=1 I get this result: The 13g are taking the whole space of the virtual machine but when I execute ls -la the files size total size is only 96k. I'm not sure ...
0
votes
0answers
44 views

New to Ubuntu, question on usage of 'du' [duplicate]

I just installed Ubuntu under Windows Bash Shell for learning. My end goal is to use some tools like Lisp that are not easy to install/use on Windows. Right now, I am trying to get the disk usage for ...
1
vote
1answer
61 views

Unable to free diskspace by removing files and not restarting the computer (hibernation possible)

I have a similar problem to the one mentioned here: Unable to free up space in df but I can not reboot (I have important data in the memory). The output of df -h / is: Filesystem Size Used ...
0
votes
4answers
921 views

How to filter du output?

So that it won't show directories that contain an empty file named "0k" that I use as a flag ? It seems --exclude can't deal with that.
0
votes
2answers
469 views

How can I check all used space on filesystem in linux?

I've already tried du-ch , df -h and df -h --total but it all result to their specific size of folder. Need to know how can I get the total used space in human readable form. Hoping for your help. ...
1
vote
2answers
78 views

Find the total space occupied by the ISO's on FS?

I want a awk script to find the sum $1 of the output of sudo find / -type f -iname *.iso -print0 | xargs -0 du Though it wouldn't be difficult to bring the output in human readable format but it ...
4
votes
2answers
2k views

du command - show file or folder in output?

If I run the command du -ah | sort -nr is it possible to make it show which line in the output is a file and which folder? Something like the command ls -l shows which is file and folder with d and - ...
0
votes
1answer
50 views

How do I refresh GT5 every X amount of seconds?

I'm using the terminal GUI program GT5, which is a "du -browser". I want to have this program either automatically refresh every 30 seconds, or run every 30 seconds, quit, then repeat. What is the ...
0
votes
1answer
381 views

Simple way to count disk usage after a certain date

I am looking for a simple way to count the used space in a directory (and sub-dirs) from a certain date onward. This could be done by creating an exclude file with find and parsing this to du with an ...
5
votes
1answer
7k views

Real size of folder?

When I run du -hs Folder in the terminal I get: 118M When I run du -s Folder in the terminal I get: 120664M When I run du -h Folder in the terminal I get: 118m When I find the size through the file ...
3
votes
3answers
1k views

Bash Script - How can I get the size of directories in .txt file and save them into other file?

I started a few weeks with Linux bash programming, but I'm struggling with a problem: How can I get the size of multiple directories (path saved on a .txt file) and then, write into another file, the ...
10
votes
2answers
6k views

How to get a full size of directory without listing the files/dir within?

I am able to get a size of a directory at the end of the du -h directoryname. But is there a way to get the size without it listing the files/directories within? I'm currently doing it like this: du ...
1
vote
0answers
247 views

keep same inodes metadata with rsync or ignore metadata with du

I'm trying to synchronize two folders from a remote computer. I want to use rsync to send the folder, and du to check if the space used is identical on the remote computer. The problem is even with a ...
2
votes
1answer
1k views

Intermittent - Error: No space left on device

Having intermittent issues when starting and stopping searches. I get a Error: No space left on device intermittently. Have done some searches and most fixes are related to inodes, which you can ...
1
vote
1answer
140 views

Can somebody explain this changing `du` output?

Just tripped across a weird case of du. Putting arguments one way gives: $ du -s htdocs/.git/ feuerkraft/.git/ media/.git/ 40564 htdocs/.git/ 40740 feuerkraft/.git/ 204 media/.git/ Putting them ...