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’.

  • wheezy@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    14 hours ago

    I forget where I got it. But mine will do this if I double tap ESC after I sent the command without sudo. Very useful.

    I should probably figure out what it was I added to do this.

    Doesn’t issue the command. Have to hit enter. Useful to verify it’s the right command first.

    With the way bash history can work Id be worried about running sudo rm -rf ./* by mistake.