When you want to find the 10 largest files over 10MB in size under the current directory without crossing filesystem boundaries. The -size 10M also reduces the workload on sort when you have a lot of files.

find . -xdev -ls -size +10M | sort -k7n | tail

@climagic I just fire up ncdu. It's incredibly fast, powerful and easy to use (for a console app).

Follow

@c @climagic Definitely, that's the best option in my opinion. I had to go through the find method only in a few specific occasions.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.