I’ve been setting up a new Proxmox server and messing around with VMs, and wanted to know what kind of useful commands I’m missing out on. Bonus points for a little explainer.
Journalctl | grep -C 10 'foo' was useful for me when I needed to troubleshoot some fstab mount fuckery on boot. It pipes Journalctl (boot logs) into grep to find ‘foo’, and prints 10 lines before and after each instance of ‘foo’.


docker run --rm -it --privileged --pid=host debian:12 nsenter -a -t1 "$(which bash)"If your user is in the
dockergroup, and you are not running rootless Docker, this command opens a bash shell as root.How it works:
docker run --rm -itcreates a temporary container and attaches it to the running terminal--privilegeddisables some of the container’s protections--pid=hostattaches the container to the host’s PID namespace, allowing it to access all running processesdebian:12uses the Debian 12 imagensenter -a -t1enters all the namespaces of the process with PID 1, which is the host’s init since we use--pid=host"$(which bash)"finds the path of the host’s bash and runs it inside the namespaces (plainbashmay not work on NixOS hosts)So you’re running bash “as if you’re on the host systen”. What’s the benefit?