All tags
du
- Tip
filefrag /var/lib/libvirt/images/vm1.qcow2filefrag shows how fragmented a file is on Linux filesystemsCount the pieces a large file is split into on disk.1 Dec 2026 - Tip
du -sh -- .[!.]* * 2>/dev/null | sort -hdu -sh * skips hidden folders, and they can hold half your diskIncludes dot folders like .cache in a du overview, where the usual glob leaves them out.30 Nov 2026 - Tip
du -ch /var/log/*.log | tail -n 1du -ch adds up the disk space of only the files you pickGives one total for a set of matching files, like all logs or all ISO images.30 Nov 2026 - Tip
du -sh --exclude=node_modules --exclude='*.iso' ~/projectsdu can leave whole patterns out of a disk usage totalMeasures a folder without the parts you don't care about, like ISO files or node_modules.30 Nov 2026 - Tip
truncate -s 10G test.imgdu --apparent-size explains why ls and du disagree about a fileShows the size a file claims to be next to the space it really uses on disk.27 Nov 2026 - Tip
du -sh * 2>/dev/null | sort -hdu -sh * | sort -h shows what is eating your disk, biggest lastLists every folder in the current directory with its size, sorted so the biggest ones are at the bottom.18 Nov 2026 - Tip
sudo du -h -d1 -x /var | sort -hdu -h -d1 | sort -h finds what is eating your diskLists directory sizes with the biggest last, so you see what fills the disk.17 Jul 2026
Nothing matches.