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

  • kittenroar@beehaw.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 day ago

    systemd-run lets you run a command under some limitations, ie

    systemd-run --scope -p MemoryLimit=1000M -p CPUQuota=20% ./heavyduty.sh
    
    • kittenroar@beehaw.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 day ago

      ulimit can also be used to define limits, but for a user rather than a process. This could protect you against, ie, a fork bomb