shed(1)

πŸ“¦
version 1.16 Β· 2 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

shed(1) πŸ’– the hex editor that ate and left no crumbs

okay bestie, sit down, hydrate, and let me tell you about shed β€” it's a simple hex editor with a pico-style interface, and it's genuinely iconic. this is from the General Commands Manual section, so you know it's official. ✨


NAME πŸŽ€

shed β€” simple hex editor with a pico-style interface


SYNOPSIS πŸ¦‹

shed [OPTIONS] [FILE]

that's it. that's the whole vibe check. πŸ’…


DESCRIPTION 🌸

A simple hex editor with a pico-style interface. lowkey the whole personality.

Each line of the shed display represents one byte of the file. and each one of those lines is giving a whole little ensemble cast, consisting of:

  • the offset of that byte from the start of the file,
  • the ascii value of the byte,
  • and then the byte's value in various bases.

All values are unsigned. no negatives allowed, we don't do that here. πŸ™…β€β™€οΈ

When a command asks you for input, entering a zero-length string or pressing ^C will cancel the command. and when you're searching, entering a zero-length string will use the previous search word, if one exists. (so if you're feeling lazy, she remembers. queen behavior honestly. πŸ‘‘)

⚠️ note the thing: there is no save key. not a typo, not a bug, not me forgetting to mention it. this is because the file is not loaded into memory, so when you edit it the change is made directly to disk. so like… be normal about it. there is no undo, there is no "oops". it's giving permanent marker. πŸ–ŠοΈπŸ’€

OPTIONS ✨

  • -r / --readonly β€” open FILE read only. we're just looking, respectfully. πŸ™ˆ
  • -s / --start=OFFSET β€” position cursor to OFFSET. drop her right where you want her.
  • -H / --hex β€” start in hex mode (hex offsets etc.). hex girlies rise. πŸ”₯
  • -L / --length=LENGTH β€” set length of file to LENGTH. Useful for special files where shed cannot obtain the length with stat. (yes, she tried. she asked stat. stat said no. so now you tell her. 🫢)
  • -h / --help β€” show help and exit.
  • -v / --version β€” show version and exit.

KEYS 🧚

this is the whole keyboard lore, don't skip it, iykyk:

  • arrow keys β€” move cursor around. the classic. the blueprint. ⭐
  • pgup / ^Y β€” cursor up 16
  • pgdown / ^V β€” cursor down 16
  • home / ^A β€” start of line (ascii column)
  • end / ^E β€” end of line (binary column)
  • space / e β€” edit value at cursor. You are asked to enter the new value in the format of the current column the cursor is in β€” eg. if you are in the hex column, it will ask for the new value in hex. it's matching your energy. πŸŽ€
  • 1 / 2 / 4 β€” set size of cursor in bytes, in the hex/dec/oct columns (and binary if in traditional mode).
  • ` (backtick) β€” toggle the endianness of multi-byte values (when cursor size is 2 or 4). flip it, flip it. πŸ”„
  • s / w / ^w / f / F3 β€” search. Search string is asked for in the format of the current cursor column. In ascii, just enter the string in ascii. In the others, enter the values separated by spaces. eg to search for ABC from the decimal column you would enter "65 66 67" (without the quotes). no cap, that's the whole trick. πŸ”
  • ^f / ^b β€” search shortcut for forwards/backwards respectivly.
  • r / n / F3 β€” repeat previous search. she said it once and she'll say it again. πŸ’…
  • t β€” toggle whether offset numbers and cursor position etc are in dec or hex.
  • b β€” toggle binary mode column behaviour (bit edit mode vs traditional).
  • d β€” dump to file.
  • j β€” jump to byte. enter a byte number, or 'top' or 'end'. Can be suffixed with K, M or G. teleportation but make it nerdy. 🌈
  • a β€” change the mode of the ascii column (printable only/c-style extended chars/'man ascii' descriptions).
  • p β€” toggle 'preview' mode.
  • x / ^x β€” exit. say bye bestie, you've done enough. 🫢

AUTHOR πŸ’œ

Alex Sisson (alexsisson@gmail.com)


HOMEPAGE 🌐

Check for updates at https://shed.sourceforge.net


and that's the whole page, no notes. this was shed-1.16, dated 06-DEC-2023, straight out of the General Commands Manual, and honestly? she's a baddie. go hex something. πŸŽ€βœ¨πŸ’–

πŸ“¦ where this page comes from