BLKCAT(1)

πŸ’– BLKCAT πŸ’–

okay bestie, sit down, hydrate, because we're about to read raw disk units together and it's gonna be adorable. this is blkcat, a General Commands Manual girlie from section 1, and she's here to show you what's actually inside your disk image, one data unit at a time. no cap. πŸŽ€


✨ NAME ✨

blkcat β€” display the contents of a file system data unit in a disk image. yes literally just. showing you the vibes of one unit. iconic. πŸ’…


🌸 SYNOPSIS 🌸

blkcat [-ahswvV] [-f fstype] [-u unit_size] [-i imgtype] [-o imgoffset]
[-b dev_sector_size] image [images] unit_addr [num]

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: blkcat displays num data units (default is one, just one, a lil single unit, she's low maintenance) starting at the unit address unit_addr from image, and it dumps all of that to stdout in different formats β€” default is raw. like, no fancy packaging, just the raw truth. ✨

fun lore drop: blkcat was called dcat in TSK versions prior to 3.0.0. so if you're reading ancient docs, that's her old name. glow-up era. πŸ‘‘

πŸŽ€ ARGUMENTS πŸŽ€

  • -a β€” display the contents in ASCII. cute, readable, letters and everything. πŸ’–
  • -f fstype β€” specify image as a specific file type, like you're telling her "bestie, i already know what this is." if swap is given here, the image will be displayed in pages of size 4096 bytes. if raw is given, then 512-bytes is used as the default size. and psst β€” the -u flag can change that default size. use -f list to list the supported file system types. if you don't give this at all, autodetection methods are used. she'll figure it out herself, she's smart. 🧚
  • -h β€” display the contents in hexdump. hex girlies rise. πŸ”₯
  • -s β€” display statistics on the image: unit size, file block size, and number of fragments. the receipts. the numbers. the data. πŸ“Š
  • -u unit_size β€” specify the size of the default data unit for raw, blkls, and swap images.
  • -i imgtype β€” identify the type of image file, such as raw. use -i list to list the supported types. if not given, autodetection methods are used. again β€” she's got it, she'll clock it herself. πŸ’…
  • -o imgoffset β€” the sector offset where the file system starts in the image. like, where does the actual party begin inside this image. πŸŽ‰
  • -b dev_sector_size β€” the size, in bytes, of the underlying device sectors. if not given, the value in the image format is used (if it exists) or 512-bytes is assumed. assumed! she's guessing! (well, defaulting. same energy.) πŸ™ˆ
  • -v β€” verbose output to stderr. she'll yap. affectionately.
  • -V β€” display version. say hi to her properly. πŸ‘‘
  • -w β€” display the contents in an HTML table format. she can do web design too apparently. 🌈
  • image [images] β€” the disk or partition image to read, whose format is given with -i. multiple image file names can be given if the image is split into multiple segments. and here's the cute part: if only one image file is given, and its name is the first in a sequence (e.g., as indicated by ending in .001), subsequent image segments will be included automatically. she just knows to bring her friends. 🫢
  • unit_addr β€” address of the disk unit to display. the size of a unit on this file system can be determined using the -s option. so if you're confused, run -s first, bestie, that's the vibe check. ⭐
  • num β€” number of data units to display.
side note fr fr: the basic functionality of blkcat can also be achieved using dd. and to determine which inode has allocated a given unit, the ifind(1) command can be used. crossover episode. 😭

πŸ’œ EXAMPLES πŸ’œ

# blkcat -hw image 264 4

or

# blkcat -hw image 264

πŸ”₯ SEE ALSO πŸ”₯


🌟 AUTHOR 🌟

Brian Carrier <carrier at sleuthkit dot org>

Send documentation updates to <doc-updates at sleuthkit dot org>


and that's the whole page, bestie!! πŸ’– this manual page lives in the General Commands Manual, section 1, and it signs off the exact same way it came in β€” BLKCAT(1). go read a disk image, you absolute main character. periodt. πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from