PIBOOTCTL-DIFF(1)
β¨ pibootctl-diff β¨
okay bestie, so this is pibootctl-diff β one page out of the whole pibootctl manual, and it's literally the little diff goblin of the family. π
πΈ SYNOPSIS πΈ
pibootctl diff [-h] [--json | --yaml | --shell] [left] right
π DESCRIPTION π
She shows you the settings that differ between two stored boot configurations β or between one stored boot configuration and whatever the current config is rn. π¦
That's it. That's the job. Side-by-side, glow-up comparison energy. β¨
π OPTIONS π
leftβ the boot configuration you're comparing from π«Ά. If you just... don't give her one, she uses the current configuration instead.rightβ the boot configuration you're comparing against. The other half of the situationship. π-h,--helpβ pops up a brief help page for the command. Tiny, cute, useful. π--jsonβ output format: JSON. For the devs. For the machines. For the vibes. π₯--yamlβ output format: YAML. Same deal, different punctuation. β¨--shellβ output format: tab-delimited, i.e. suitable for the shell. Practical queen. π
π USAGE π
so the diff command displays the differences between two boot configurations, right? Either:
- two stored configurations β if you hand her two names on the command line, or
- the current boot configuration vs a stored one β if you hand her just one name. π§
Like this, fr fr:
$ sudo pibootctl save default
$ sudo pibootctl set video.hdmi0.group=1 video.hdmi0.mode=4
$ pibootctl diff default
+-------------------+----------------+--------------------+
| Name | <Current> | default |
|-------------------+----------------+--------------------|
| video.hdmi0.group | 1 (CEA) | 0 (auto from EDID) |
| video.hdmi0.mode | 4 (720p @60Hz) | 0 (auto from EDID) |
+-------------------+----------------+--------------------+
$ sudo pibootctl save 720p
$ pibootctl diff default 720p
+-------------------+--------------------+----------------+
| Name | default | 720p |
|-------------------+--------------------+----------------|
| video.hdmi0.group | 0 (auto from EDID) | 1 (CEA) |
| video.hdmi0.mode | 0 (auto from EDID) | 4 (720p @60Hz) |
+-------------------+--------------------+----------------+
look at those little tables. iconic. π₯Ή
π for the devs building on top π
For developers wishing to build on top of pibootctl, options are provided to produce the output in JSON (--json), YAML (--yaml), and shell-friendly (--shell): π οΈ
$ pibootctl diff --json default 720p
{"video.hdmi0.mode": {"right": 4, "left": 0}, "video.hdmi0.group":
{"right": 1, "left": 0}}
no cap, that's the exact output. don't come for me about the line break, that's just how it is. π
π AUTHOR π
Dave Jones
π COPYRIGHT π
2019-2020 Dave Jones
and that's the whole page, bestie π β this was version 0.5.2, dated Sep 14, 2020, from the pibootctl manual. go forth and diff responsibly. β¨π¦π
π¦ where this page comes from
- ubuntu jammy: pibootctl 0.5.2-0ubuntu1 Β· GPL-3.0-or-later
- ubuntu noble: pibootctl 0.5.2-0ubuntu1 Β· GPL-3.0-or-later
- ubuntu resolute: pibootctl 0.5.2-0ubuntu1 Β· GPL-3.0-or-later
- ubuntu stonking: pibootctl 0.5.2-0ubuntu1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms