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

  • AllHailTheSheep@sh.itjust.works
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    10 hours ago

    I’m a big enjoyer of pushd and popd

    so if youre in a working dir and need to go work in a different dir, you can pushd ./, cd to the new dir and do your thing, then popd to go back to the old dir without typing in the path again

    • donkeyass@lemmy.sdf.org
      link
      fedilink
      arrow-up
      2
      ·
      9 hours ago

      Nice! I didn’t know that one.

      You can also cd to a directory and then do cd - to go to the last directory you were in.