MYR
AboutExpertiseArticlesScriptsContact
Get in touch
← Linux// SCRIPTS

Disk & Filesystem

How to check disk space usage in Linux

Check free and used disk space per filesystem with df -h, add the type with df -hT, and check inode usage with df -i.

How to find large files in Linux

Locate the largest files on a Linux filesystem with find, filtered by size and kept to one filesystem with -xdev.

How to find what is using disk space in a directory in Linux

Find which directories and files are consuming space with du, including a sorted top-N of the biggest subdirectories.

How to check inode usage in Linux

Diagnose a filesystem that is full despite free space by checking inode usage with df -i and finding directories with too many files.

How to list block devices and partitions in Linux

List disks, partitions, sizes, mount points, UUIDs, and filesystem types with lsblk and blkid.

How to check mounted filesystems and mount options in Linux

See what is mounted, where, and with which options using findmnt, mount, and /etc/fstab.

How to find deleted files still held open in Linux

Recover disk space that df shows used but du cannot find, by locating deleted files still held open by a process with lsof.

How to mount and unmount a filesystem in Linux

Mount a filesystem temporarily or persistently via /etc/fstab, and unmount it safely, including a lazy unmount for busy mounts.

MYRSolution Architect
EmailLinkedInArticlesScriptsPrivacy
© 2026 Mohammad Yoga Rimaldo