HDFLS(1)
okay bestie, buckle up π this is hdfls(1) β a page straight outta the General Commands Manual β and she's here to spill all the tea about what's inside your HDF files. no cap, it's giving "underrated utility that eats". let's go β¨
πΈ NAME πΈ
hdfls β list basic information about an HDF file π¦
β¨ SYNOPSIS β¨
hdfls [-o] [-l] [-d] [-v] [-g] [-s] [-h] [-t n] hdf_file
π DESCRIPTION π
so basically, hdfls hands you the general tea on your file's tags, reference numbers, and β if you ask nicely β the lengths of the data elements. that's the whole vibe. π«Ά
π OPTIONS π
-oβ sorts the reference numbers into ascending order, so they're all lined up cute. β¨-lβ the long format. spills more info about the file than the default. main character energy π-dβ shows the offset and length info for every single element in the file. π-vβ verbose. shows you the annotation and label text, on top of the format that the-lflag triggers. it's giving "tell me everything" π-gβ Group. lists the items grouped up by group. found family, fr fr π-sβ Special elements. gives you the detailed 411 on special elements. π-dβ display offset and length information for each element in the file. (yes bestie, it's listed twice in the original. iconic of it. not a typo on my part, I promise π )-hβ dumps the DD block information. π¦-t nβ Tag. only lists info about the one tag you specify. must be followed by a tag number, no skipping, periodt. β
π₯ EXAMPLES π₯
okay so imagine a file called "aa.hdf" and it's holding three items associated with a raster image: the image dimensions, a palette, and the raster image itself. to see what's up inside, you run this:
hdfls aa.hdf
and this is what comes back at you:
aa.hdf:
Image Dimensions-8: (Raster-8): (tag 200)
Ref nos: 1
Image Palette-8: (Raster-8): (tag 201)
Ref nos: 3
Raster Image-8: (Raster-8): (tag 202)
Ref nos: 1
now bestie, watch this β same info, but now with the length of each data element attached:
hdfls -l aa.hdf
and boom, you'd get this:
aa.hdf:
Image Dimensions-8: (Raster-8) : (tag 200)
Ref no 1 4 bytes
Image Palette-8: (Raster-8) : (tag 201)
Ref no 3 768 bytes
Raster Image-8: (Raster-8) : (tag 202)
Ref no 1 120000 bytes
like, 4 bytes, 768 bytes, 120000 bytes?? the way that raster image is carrying the whole file on its back ππ
π«Ά SEE ALSO π«Ά
hdf(5)
and that's the whole page, bestie. go forth and hdfls responsibly. π
this one's old-school in the best way β it dropped on October 31, 1999, and it lives as page HDFLS(1) in the General Commands Manual. vintage, but make it useful. β¨ππ¦
π¦ where this page comes from
- debian bookworm: hdf4-tools 4.2.15-5 Β· HDF4
- debian trixie: hdf4-tools 4.3.0-1+b1 Β· HDF4
- ubuntu jammy: hdf4-tools 4.2.15-4 Β· HDF4
- ubuntu noble: hdf4-tools 4.2.16-4build1 Β· HDF4
- ubuntu questing: hdf4-tools 4.3.0-1
- ubuntu resolute: hdf4-tools 4.3.1-2 Β· HDF4
- ubuntu stonking: hdf4-tools 4.3.1-3 Β· HDF4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms