Size: 992
Comment:
|
Size: 991
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 19: | Line 19: |
Have you ever received such an Email? If not, perfect! Otherwise you should look at least for the biggest problems: | Have you ever received such an email? If not, perfect! Otherwise you should look at least for the biggest problems: |
Line 21: | Line 21: |
* Write a function that walks through a directory tree and collects the pathnames and sizes of all files of a certain types. | * Write a function that walks through a directory tree and collects the pathnames and sizes of all files. |
Line 25: | Line 25: |
* Optional: automatically compress the largest files | * Optional: automatically compress the largest files of a certain type. |
Dear User, according to our records you use too much disk space in your home directory. Please delete at least 862312312.29 Megabytes in the next 1.2 days. If you have any questions do not hesitate to send a mail to help-it@zmaw.de. best regards Central IT Services - ZMAW
Have you ever received such an email? If not, perfect! Otherwise you should look at least for the biggest problems:
- Write a function that walks through a directory tree and collects the pathnames and sizes of all files.
- Write a function that sorts the results of the first function according to the size of the files.
- Combine both functions in a script which can be called from the bash.
- Optional: limit the resulting list to the top10 sizes
- Optional: automatically compress the largest files of a certain type.