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

  • utopiah@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    10 hours ago
    fabien@debian2080ti:~$ history  | sed 's/ ..... //' | sort | uniq -c | sort -n | tail
    # with parameters
         13 cd Prototypes/
         14 adb disconnect; cd ~/Downloads/Shows/ ; adb connect videoprojector ;
         14 cd ..
         21 s # alias s='ssh shell -t "screen -raAD"'
         36 node .
         36 ./todo 
         42 vi index.js 
         42 vi todo # which I use as metadata or starting script in ~/Prototypes
         44 ls
        105 lr # alias lr="ls -lrth"
    fabien@debian2080ti:~$ history  | sed 's/ ..... //' | sed 's/ .*//' | sort | uniq -c | sort -n | tail
    # without parameters
         35 rm
         36 node
         36 ./todo
         39 git
         39 mv
         70 ls
         71 adb
         96 cd
        110 lr
        118 vi