View Single Post
Old 08-04-2020, 03:12 PM   #26
latepaul
Wizard
latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.
 
latepaul's Avatar
 
Posts: 1,270
Karma: 10468300
Join Date: Dec 2011
Device: a variety (mostly kindles and kobos)
hi droopy,

Your results imply there are other file types in there accounting for the missing space.

Try this to find out what your 'big' files are:

Code:
find . -type f -size +100M -exec file -b {} \; | grep -v Mobi | sort -u
This is looking for files > 100M and checking the file type. It should give you a list of those filetypes. It excludes Mobi because when you do a "file -b" on a mobi it tells you the file type and the title. So if you had a lot of those it'd give you unmanageable results. So check those separately with a command similar to haertig gave you:

Code:
find . -iname "*.mobi" -exec du -csh '{}' + | tail -1
You could just list all the big files if there are not too many:

Code:
 find . -type f -size +100M -exec ls -lh {} \;
You can obviously change the size you're looking for. You might have lots of smaller files rather than fewer big ones. You can specify the size with K or M or even G. If it were me I'd look for the big ones, see how much space that accounts for and if necessary widen the net by looking for smaller ones (100M, 50M, 25M). Similarly with the command at the top of this message to find the filetypes for files of a certain size.

HTH
latepaul is offline   Reply With Quote