I had to create a random file of 10GB size, which I can using dd or fallocate, but the size shown by du -sh is twice the one I created: Can someone ...
I had to create a random file of 10GB size, which I can using dd or fallocate, but the size shown by du -sh is twice the one I created: Can someone ...
On linux, I have a file called dirs.txt. This file has directory names in it, some of which contain embedded blanks. I want to run the du -sh command ...
Is there a way to improve speed on du command on mount point? I am looking to retrieve occupied space of top level directory of a specified directory ...
I'm writing a bash script that should output the first 10 heaviest files in a directory and all subfolders (the directory is passed to the script as a ...
How to make du command throw input/output error. For some reason, I want to reproduce this use case and want to verify my fix before changes pushed to ...
I have a list of files with the following names: To check all the all document space, I could use du -sh file*. I am trying to access documents fro ...
I have a list of directories and was wondering if there was a bash script to do maybe a for loop to go through and enter du -h at the last directory ( ...
I'm using the tree command to get a list of directories: tree -ifd --du This, however, seems to be only displaying the size of the directory itself ...
I'm not familiar with bash scripting. Maybe this is a silly question. But I couldn't find the answer. I'm working on a bash script that mimics the beh ...
We have a software package that performs tasks by assigning the batch of files a job number. Batches can have any number of files in them. The files a ...
I'm working on a script to cipher a bunch of folders through the use of tar, gzip and gpg, plus pv with du and awk to keep track of progress. Here is ...
I wonder if there is some way to calculate folder size using only basic Bash commands without du. It is for very limited evironment (like rescue mode) ...
I am using the following find command to list all the files recursively within a folder and sort it by size ( higest size being on top ) find . -not ...
I have a list containing multiple directories with the full PATH: I need to calculated what the total size is of this list. From Get total size of ...
I'm checking the directory size, but du and psutil gives so much different outputs, >>> import psutil >>> print(psutil.disk_usage(" ...
The code above gets the file size of each file, puts it into an array, and prints the sum. The value returned is very different from: And both v ...
There are very long threads on this, I've read all that I could find, they don't answer my question. The following is the best I can find to get a ni ...
I have a folder named "A", and there are 3 sub-folders in it which are named "A1", "A2", "A3" respectively. Is there a command to show the amount of ...
Here is the scenario. Imagine we have this style of directory stucture - and so on. What I'm trying to get in my output is the total disk usage o ...
I have a file (named excl.txt) with null terminated strings as follows: So as to calculate the size of the /data folder excluding the patterns in t ...