affsegment(1)

✨ NAME ✨

okay bestie, meet affsegment(1), the segment manipulation tool πŸ’…πŸŽ€

🌸 SYNOPSIS 🌸

affsegment [options] file1.aff [file2.aff ...]

🌸 DESCRIPTION 🌸

okay so this is a segment manipulation tool 🫢

this file is part of the AFFLIBv3, which provides AFF ✨

AFF is an open and extensible file format for storing disk images and their associated metadata πŸ’Ύ it's super useful in lots of scenarios, like computer forensics investigations πŸ” literally the whole vibe is "store the disk, keep the receipts" πŸ’…

πŸ¦‹ OPTIONS πŸ¦‹

Options

  • -c β€” create AFF files if they don't exist yet 🌱
  • -ssegval β€” sets the value of a segment. you can repeat it πŸ”
  • -psegname β€” prints the contents of the segment name for each file πŸ–¨οΈ
  • -V β€” just prints the version number and exits. quick and iconic πŸ‘‘
  • -dname β€” deletes segment name πŸ—‘οΈ
  • -h, -? β€” prints the help message. the "I'm lost" button πŸ™ˆ
  • -Q β€” interprets 8-byte segments as a 64-bit value πŸ”’
  • -A β€” prints the 32-bit arg instead of the segment value 🎯
  • -x β€” prints the segment as a hex string 🧚

Setting the segment values

  • -sname=- β€” takes the new value of segment name from stdin ⌨️
  • -sname=val β€” sets segment name to be val πŸ’–
  • -sname=<val β€” sets segment name to be the contents of the file val πŸ“

Setting the segment args

  • -sname/arg β€” sets segment name's arg to be arg. you can repeat it too πŸ”

Setting both the segment value and the arg

  • -sname/arg=val β€” sets both the arg and the val for segment name πŸ’…
  • -sname/arg=<file β€” sets the arg, and takes the contents from the file file πŸ“‚
  • -sname/arg=- β€” sets the arg of segment name, and takes the contents from stdin 🫧

πŸ”₯ NOTES πŸ”₯

⚠️ bestie, listen up: all deletions happen first, and then all updates. Don't specify the same segment twice on one command line or it's a whole mess πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

affcat(1), affcompare(1), affconvert(1), affcopy(1), affcrypto(1), affdiskprint(1), affinfo(1), affix(1), affrecover(1), affsign(1), affstats(1), affuse(1), affverify(1), affxml(1) πŸ¦‹

🧚 AUTHOR 🧚

the AFFLIB was written by Simson L. Garfinkel <simsong@acm.org> and Basis Technology, Inc. 🌈

this manual page was written by Joao Eriberto Mota Filho <eriberto@debian.org> for the Debian project, but others are totally allowed to use it too 🫢


that's the tea, bestie πŸ’– AFFSEGMENT 3.7.4, Oct 2014, affsegment(1) 🌸✨

πŸ“¦ where this page comes from