New answers tagged disk-usage
12
votes
Accepted
df with a given filename return a filesystem name which is not in the list of all filesystems given by df without any parameter
The output you’re seeing with no parameters is the result of special handling of device names ending in UUIDs:
if (process_all
&& has_uuid_suffix (dev_name)
&& (...
5
votes
df with a given filename return a filesystem name which is not in the list of all filesystems given by df without any parameter
The result is not the same on all systems.
The behavior depends on the distribution used, maybe the version of coreutils, and/or partly on whether LVM, LUKS, configuration or another system is in use.
...
0
votes
Finding files that use the most disk space
I would go with a two-step process:
Use du with --max-depth=1 to find directories where those large files could be located.
For example, directories exceeding 10G:
sudo du --human-readable --max-...
0
votes
How to find total filesize grouped by extension
find . -type f -printf "%p %k\n" | sed 's|.*\.||' | awk '{
arr[$1]+=$2
}
END {
for (key in arr) printf("%s\t%s\n", key, arr[key])
}' | sort -k1,1
Based on this ...
Top 50 recent answers are included
Related Tags
disk-usage × 1191linux × 213
filesystems × 145
partition × 74
disk × 67
files × 66
ubuntu × 57
debian × 54
centos × 44
mount × 40
hard-disk × 40
command-line × 37
find × 36
ls × 34
lvm × 33
shell × 31
bash × 30
shell-script × 29
ext4 × 29
size × 29
rhel × 25
fdisk × 24
storage × 22
awk × 21
linux-mint × 21