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

  • __hetz@sh.itjust.works
    link
    fedilink
    arrow-up
    2
    ·
    4 days ago

    I usually set vi mode to have vi(m)-like line editing but I’ve always liked Ctrl+u over Esc d d. Thankfully it still works even with vi mode enabled. Seems to also be implemented as a shortcut for a lot of login managers and in DEs for settings menus, dialog boxes and such.

    • emb@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      4 days ago

      It’s funny, I love vim and have never understood Emacs, but when setting up a shell it seems the Emacs commands felt more natural.