We are just starting a UNIX class and are learning a lot of Bash commands. Our task includes the execution of various commands in a directory in which there are also several folders.
I know how to list and count all regular files from the root folder using:
find . -type l | wc -l
But I would like to know where to go from there to find the largest file in the entire directory. I saw something about the du command, but we didnβt find out, so in the repertoire of the things that we learned, I assume that we need to somehow connect it to the ls -t .
And forgive me if my "jargon" is wrong, I'm still used to it!
file bash directory find large-files
Rekson Sep 20 '12 at 23:15 2012-09-20 23:15
source share