Hi,
I have a requirement to find the size of largest file in a directory on Linux. The current command I have uses LS, which is slow when comes to large systems with many files (e.g.g media files, text files).
find /home/directory -printf '%s %p\n'|sort -nr|head | head -1 | awk '{print $1}'
Is there another command which is faster?
Thank you.
Regards,
Joseph