Find largest file in Linux server using “du”

Short on diskspace? You can use ‘du’ to find largest files in your linux server using ‘du’ tool.


du --total -sh /path/*

Additionally you can also include a ‘threshold’ parameter to list only file larger than the unit which you’ve specified, by using “-t” parameter.

Example, list files larger than 100MB

du --total -sh -t100M /path/*

You can use “M” for megabytes, “G” for gigabytes and “P” for Petabytes. Positive number denotes files must be at least the specified size. Negative number means the files must be at most the specified size.

Linux: How to get Harddisk UUID number

Modern Linux system uses UUID instead of traditional block name (/dev/hda1, /dev/hda5, /dev/sdb) to uniquely identify harddisk or other storage medium. This is because UUID is unique and never changes even if you switch the harddisk ordering.

So by mounting or refering your hard disk by its UUID, you are guaranteed to mount the correct storage medium no matter where its connected on your system.

Here’s how to get your harddisk UUID number

Method 1: Ubuntu and Debian Way

sudo vol_id /dev/hda1

This command display harddisk extra information including its filesystem and uuid number.

Method 2: using /dev/disk/by-uuid/

Another method which works universally on modern GNU Linux operating system is :

ls -l /dev/disk/by-uuid

which will uuid of connected storage medium to your computer.

That’s all, now you can easily identify your storage disk UUID number without much problem anymore.

Clonezilla – Open Source Partition & Disk Cloning Solution

Clonezilla is a free and open source harddisk cloning tool with partition cloning capability. Clonezilla sets itself aparts from similar similar disk cloning solutions like Symantec Ghost and PartImage as it is able to massively clone a lot of computers simultaneously with the help of a DRBL server.


Clonezilla is also a flexible tool as it can be used to clone computer individually without the need of of a DRBL server. Clonezilla is able to save space by cloning only used blocks on the disk on computers with supported filesystem (ext2, ext3, reiserfs, xfs, jfs,vfat,ntfs). Cloning unsupported filesystem is also made possible with sector-by-sector copy functionality offered by this remarkable tool.

Get CloneZilla (Live CD) now for your hard disk cloning solutions