It has been zero days since .bash_history and my overconfidence use of "reverse-i search" has nearly killed me
kunsi@chaos.social
replied 14 Dec 2025 22:17 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/6C41j4RldV9P88sYvN
@benjojo I do "check journal, see things are failing, reboot system, relogin, arrow-up, enter, oooops" wayy to often...
benjojo
replied 14 Dec 2025 22:19 +0000
in reply to: https://chaos.social/users/kunsi/statuses/115720234205922773
@kunsi oh god I used to do this all of the time as well, especially painful when you do this to something like a HP/HPE because they seem to take an entire century to POST/reboot
flangey@chaos.social
replied 15 Dec 2025 00:58 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/6gJR172ShnHJ4gf493
benjojo
replied 15 Dec 2025 08:56 +0000
in reply to: https://chaos.social/users/flangey/statuses/115720867536210147
tillo@infosec.exchan..
replied 14 Dec 2025 22:17 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/6C41j4RldV9P88sYvN
@benjojo
One of the reasons I always (20+ years) start all of my sessions with unset HISTFILE. Forces me into taking notes elsewhere. Mostly my head. It's effective!
benjojo
replied 14 Dec 2025 22:23 +0000
in reply to: https://infosec.exchange/users/tillo/statuses/115720235969947698
@tillo I don't really even use it as a notes taking system, I'm just using it because I run the same commands all of the time, "lxc-attach <thing>" except of course when I don't do that and dangerous commands end up in reach of i-search...
shtrom@piaille.fr
replied 14 Dec 2025 22:18 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/6C41j4RldV9P88sYvN
benjojo
replied 14 Dec 2025 22:22 +0000
in reply to: https://piaille.fr/users/shtrom/statuses/115720238658158869
@shtrom I did maintenance on my website/product today (which involved gracefully shutting down the LXC container that the website runs in), maintenance went completely fine, except i just now while trying to lxc-attach, had reverse i-search find "lxc-stop <website>"... taking down quite a lot of stuff...
wolf480pl@mstdn.io
replied 14 Dec 2025 22:28 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/6C41j4RldV9P88sYvN
benjojo
replied 14 Dec 2025 22:29 +0000
in reply to: https://mstdn.io/users/wolf480pl/statuses/115720276623463572
@wolf480pl oof, yeah at least LVM in theory if you are super careful with your next command (and are not using thin provisioning) you can recover the volume "easily"
wolf480pl@mstdn.io
replied 14 Dec 2025 22:30 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/fsW9x9q5X243K6Knz1
@benjojo fortunately it had a sanity-check which required extra confirmation for removing a volume that was... I don't remember if "active", or in use, or what the criterion was (and don't want to give folks here false sense of confidence). But it saved me that time.
wolf480pl@mstdn.io
replied 14 Dec 2025 22:34 +0000
in reply to: https://mstdn.io/users/wolf480pl/statuses/115720284671415954
@benjojo oh, also /etc/lvm/archive exists luckily haven't needed it for recovery purposes yet also LVM metadata in the PVs is in the same human-readable format as /etc/lvm/archive/, and it's a ring buffer of a few most recent versions of the metadata.
(only used it to try reconstruct my reasoning behind past decisions)
benjojo
replied 14 Dec 2025 22:38 +0000
in reply to: https://mstdn.io/users/wolf480pl/statuses/115720302964021466