P
P
Puma Thailand2019-07-09 10:32:13
linux
Puma Thailand, 2019-07-09 10:32:13

How to find folders with the most files in linux?

Actually, it is not the size of the directory in bytes that is of interest, but the number of files in the folder.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
polar_yogi, 2019-07-09
@polar_yogi

a little faster:

find / -print0 | xargs -0 dirname |  uniq -c | sort -n -k 1 | tail -1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question