mobitool(1)
π 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-odirβ save output todirfolder-ppidβ set pid for decryption-Pserialβ 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 π
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. β¨ππ
π¦ where this page comes from
- debian bookworm: libmobi-tools 0.11+dfsg-1 Β· LGPL-3.0-or-later
- debian trixie: libmobi-tools 0.12+dfsg-1 Β· LGPL-3.0-or-later
- ubuntu noble: libmobi-tools 0.11+dfsg-1.1build1 Β· LGPL-3.0-or-later
- ubuntu questing: libmobi-tools 0.12+dfsg-1build1
- ubuntu resolute: libmobi-tools 0.12+dfsg-1build2 Β· LGPL-3.0-or-later
- ubuntu stonking: libmobi-tools 0.12+dfsg-1build2 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms