OCR all PDFs in a folder by cron

I will not write a long explanation, just this short one. The cronjob looks like this: This will start sh (a shell, just like bash) and run the command after -c. The command flock will create a lock-file, to prevent that this cron job is started while there is still the previous cron jobs running. […]


… is an easy to use and powerful tool, it can be used to replace part of file name (string1) with some other string. Something one can also do with some “sed” hack, but this tool is much easier to use, especially for beginners. You can get all information needed from “rename –help” (here from […]

Resize qemu VM disk

VM runterfahren Image der VM vergrössern: Je nach Setup ist sudo nicht nötig, durch den Befehl wird die Diskimagedatei um 15 GB vergrößert. VM starten Weiter geht es in der VM auf der Konsole. Partitioen mit parted anzeigen lassen: Ausgabe so oder ähnlich:Model: Virtio Block Device (virtblk)Disk /dev/vda: 53,7GBSector size (logical/physical): 512B/512BPartition Table: msdosDisk Flags: […]


Did you know explainshell.com yet? Try it, for example with that command from last time sudo lsof -i -P -n | grep LISTEN this is an amazing web site I use often so see what commands do that I find somewhere. Try it.