mobitool(1)

πŸ“¦
version 0.12 Β· 2 versions
  • 0.12 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.9 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– mobitool(1) β€” the bestie guide πŸ’–

okay so welcome to the User's Reference Manual moment for mobitool, the little utility that handles MOBI format ebook files. she's giving main character energy in your terminal and honestly? obsessed. πŸŽ€


✨ NAME ✨

mobitool β€” a utility for handling MOBI format ebook files. that's it, that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

mobitool [-cdehimrstuvx7] [-o dir] [-p pid] [-P serial] file

πŸ¦‹ DESCRIPTION πŸ¦‹

bestie. listen. this program handles .prc, .mobi, .azw, .azw3, .azw4, and some .pdb documents. she is powered by the libmobi library, no cap. πŸ”₯

if you invoke her with no arguments at all, she just prints the document metadata and dips. that's it. that's the whole interaction. iconic behaviour honestly.

so here's the full list of flags and what they do, no skips, no summarising, we're doing all of them:

  • -c β€” dump cover. the cover art! she's coming out πŸ’–
  • -d β€” dump rawml text record
  • -e β€” convert mobi to epub. glow-up time ✨
  • -h β€” show usage summary and exit
  • -i β€” print detailed metadata. the whole lore. πŸ‘‘
  • -m β€” print records metadata
  • -o dir β€” save output to dir folder
  • -p pid β€” set pid for decryption
  • -P serial β€” set device serial number for decryption
  • -r β€” dump raw records
  • -s β€” dump recreated source files
  • -t β€” split hybrid file into two parts: mobi and azw3
  • -u β€” show rusage (diagnostics)
  • -v β€” show version and exit
  • -x β€” extract conversion source and log (if present)
  • -7 β€” parse KF7 part of hybrid file (by default KF8 part is parsed)
ngl the -7 one is lowkey sneaky β€” she's parsing the KF8 part by default, so you gotta ask specifically if you want the KF7 part. okay? okay. 🫢

🌈 EXAMPLES 🌈

the following command decompiles a given mobi document. the output folder will be created in /tmp. cute, tidy, we love her:

% mobitool -s -o /tmp example.mobi

and the following command converts a mobi document to epub format:

% mobitool -e example.mobi

⭐ RETURN VALUES ⭐

  • 0 β€” success, we ate, we devoured, we left no crumbs πŸ’…
  • 1 β€” error 😭

Copyright (C) 2014-2022 Bartek Fabiszewski.

Released under LGPL version 3 or any later (same as libmobi). so like, respect the license bestie, fr fr.


🧚 WEB SITE 🧚

visit http://www.fabiszewski.net for details. iykyk. 🌐


πŸ”₯ DIAGNOSTICS πŸ”₯

for diagnostics, libmobi must be configured with --enable-debug option. that's the rule. no shortcuts. πŸ™ˆ


πŸ“ SEE ALSO πŸ“

mobimeta(1) mobidrm(1) β€” go say hi to her sisters πŸ’–


and that's the whole page, bestie! she's mobitool(1) from the Unix User's Reference Manual, dated February 16, 2022. stay slay, stay decoding, and remember: no cap, just libmobi. βœ¨πŸ‘‘πŸŽ€