gdalinfo

List various information about a GDAL supported raster dataset. More information: https://gdal.org/programs/gdalinfo.html.

gdalinfo --formats

gdalinfo path/to/input.tif

gdalinfo -json path/to/input.tif

gdalinfo -hist path/to/input.tif

gdalinfo WMS:https://services.meggsimum.de/geoserver/ows

gdalinfo WMS:https://services.meggsimum.de/geoserver/ows -sd 4