Rename All Files in A Folder to .txt

On Windows right click in the folder and open in terminal. Then change to cmd by typing in cmd. Then run the following

for /R %x in (.) do ren “%x” **.txt

This is really useful if you are copying all backups from Oxidized. If you SSH into your LibreNMS/Oxidized machine using MobaXterm you can direct to /home/oxidized/.config/oxidized/logs/ and copy all the files from there. You can also just do this directly on the Linux instance. All the files copy as .IP-SSH file. Which isn’t a usable file. Doing the above will rename all the