is there a command to list what type of files are in a directory and the size?
for example, .jpg 1GB, .png 2GB, .avi 3GB etc. , thanks
is there a command to list what type of files are in a directory and the size?
for example, .jpg 1GB, .png 2GB, .avi 3GB etc. , thanks
I use Wordpress in Ubuntu 18.04. My active theme generates 55 additional images along with the original image, because there are many demo versions.
Is there a command to detect what image sizes are really used in the active version of the theme?
That would enable me to remove the unused image sizes.
serverpilot@server1:~/apps/mshare/public/wp-content/uploads/2019$ ll
total 59676
drwxr-xr-x+ 7 serverpilot serverpilot 4096 May 31 22:00 ./
drwxr-xr-x+ 16 serverpilot serverpilot 4096 Jun 3 08:55 ../
drwxr-xr-x+ 2 serverpilot serverpilot 36864 May 11 09:59 01/
drwxr-xr-x+ 2 serverpilot serverpilot 65536 May 9 22:19 03/
drwxr-xr-x+ 2 serverpilot serverpilot 11481088 Apr 30 21:49 04/
drwxr-xr-x+ 2 serverpilot serverpilot 41955328 May 31 21:59 05/
drwxr-xr-x+ 2 serverpilot serverpilot 7405568 Jun 8 18:02 06/
These are the sizes of the images:
1024x576.jpg
110x110.jpg
1122x631.jpg
1122x720.jpg
1152x648.jpg
150x150.jpg
171x96.jpg
180x120.jpg
180x135.jpg
192x108.jpg
192x144.jpg
192x192.jpg
192x96.jpg
220x220.jpg
265x186.jpg
300x169.jpg
311x311.jpg
313x176.jpg
364x156.jpg
364x205.jpg
384x192.jpg
384x216.jpg
384x288.jpg
384x384.jpg
440x440.jpg
531x371.jpg
561x316.jpg
561x421.jpg
608x342.jpg
728x312.jpg
728x409.jpg
728x410.jpg
758x379.jpg
758x426.jpg
768x432.jpg
85x48.jpg
90x67.jpg ΦΩΤΟΓΡΑΦΙΕΣ-ΠΟΥ-ΤΡΑΒΗΧΤΗΚΑΝ-ΛΙΓΑ-ΔΕΥΤΕΡΟΛΕΠΤΑ-ΠΡΙΝ-ΣΥΜΒΕΙ-ΤΟ-ΜΟΙΡΑΙΟ.jpg (original uploaded)