large-files: Find large files on this host
This commit is contained in:
parent
53c42b8cdf
commit
db49dc1719
1 changed files with 8 additions and 0 deletions
8
large-files
Executable file
8
large-files
Executable file
|
@ -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"
|
Loading…
Add table
Add a link
Reference in a new issue