From db49dc1719cfad6a33cdab1ac8c50be125142756 Mon Sep 17 00:00:00 2001 From: neingeist Date: Thu, 16 Jun 2016 17:48:10 +0200 Subject: [PATCH] large-files: Find large files on this host --- large-files | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 large-files diff --git a/large-files b/large-files new file mode 100755 index 0000000..e7bb1f2 --- /dev/null +++ b/large-files @@ -0,0 +1,8 @@ +#!/bin/sh +# Find large files on this host + +LARGE='+100M' +WHERE=`mount -t ext2,ext3,ext4,btrfs,ntfs,reiserfs,xfs,zfs | awk '{ print $3 }'` +IGNORE='^(/var/lib/rpm/Packages|/home/.*/.btsync/.*\.db)$' + +sudo find $WHERE -xdev -size $LARGE | grep --line-buffered -Ev "$IGNORE"