• 0 Posts
  • 152 Comments
Joined 1 year ago
cake
Cake day: June 19th, 2023

help-circle







  • boot their servers from a Linux live usb

    If I ran a computer lab that wasn’t already net booted, I’d use this as the motivating factor to put that in place. Net booting to a repair image, or just reinstalling the whole OS either from scratch or a known good disk image, is where anybody who manages a fleet of computers should be.

    There was a point in time where I had a pxe boot server vm set up on my laptop that I used to reload servers in our little row of racks at 365 main, because it let me quickly swap out the boot iso, and was faster than usb sticks were at the time.


  • Or use rename

    $ touch foo{1..5}.txt
    $ rename -v 's/foo/bar/' foo*
    foo1.txt renamed as bar1.txt
    foo2.txt renamed as bar2.txt
    foo3.txt renamed as bar3.txt
    foo4.txt renamed as bar4.txt
    foo5.txt renamed as bar5.txt
    $ rename -v 's/\.txt/.text/' *.txt
    bar1.txt renamed as bar1.text
    bar2.txt renamed as bar2.text
    bar3.txt renamed as bar3.text
    bar4.txt renamed as bar4.text
    bar5.txt renamed as bar5.text
    $ rename -v 's/(.*).text/1234-$1.txt/' *.text
    bar1.text renamed as 1234-bar1.txt
    bar2.text renamed as 1234-bar2.txt
    bar3.text renamed as 1234-bar3.txt
    bar4.text renamed as 1234-bar4.txt
    bar5.text renamed as 1234-bar5.txt