What command should I use to find the file with the maximum size in a certain folder containing sub-directories which are several level deep. (in windows / linux)
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
You can use the following command under Linux:
If you want to get size also (in kilobytes), you can remove the last |
|||
|
|
will list all files under dirname and sort them in reverse order (largest first) with a numerical sort for the 7th field. BTW: This is on Linux/Unix. |
|||
|
|