 and welcome today we're going to be looking at renaming files in Linux or at least multiple files now traditionally on Unix systems and Unix like systems such as Linux there is no rename command and I found that interesting when I you know over a decade ago switch from Windows to Linux I was like wait there's no rename command and the truth is it's kind of not needed because you just use a move command so let me let's have my files here so for example I have this one dot jpeg and if I want to move that rename it I would just use the move command MV I would say move that file to and I'll say one dot jpeg like that and basically I'm just moving that file to a new place to the same place but with a different name and now it's been named that and that is traditionally how you rename files but it can be annoying to rename multiple files for example here I have all these dot jpegs which is actually how my Canon camera well not this first part but it gives them all the extension of capital P JPEG and I'm much rather just have the lowercase JPEG but to rename all these I would have to do like a for loop for I in all JPEG something like that and and it's a big long thing where it loops through each one of them but there are commands out there that you can install programs out there for renaming stuff and there is one called rename it is a Perl script and it is in the Debian repository so if you're on a Debian based system such as Ubuntu Linux Mint probably MX Linux or in my case actual Debian you can just apt pseudo apt install rename again is it Perl script if you're on other systems such as Arch I believe it's called it's like Perl rename or something that but search search through your repositories for file sorry for a program called rename and it will probably say that it's a Perl that way you know you're running the same one as me but if you're on a Debian based system you should be good just by doing pseudo apt install rename and you should get this script that we're running and if you use set it all for substitution which is like the main thing I use set for you should be very familiar with how this works it's pretty straightforward so now that I have installed I can type rename and then inside single quotations or apostrophes I can do s for such for such forward slash apostrophe and then give it the name type so I'm gonna say dot JPG JPEG capital and what I'm gonna do is I'm gonna say well for each of these files find the match of JPEG all capital and make it JPG lowercase I'll run that no output is good you know it's tradition that if everything goes good you should run silently only give output when there's an error but if I list out my files here you can see that I just renamed all those to JPEG if I want to go the other way I can now just say you know find all files that are JPEG extension and say JPG and if I list them out now I have renamed them back but doesn't just have to be the extension it's any match in that file name so I could do something like this I can say okay look at all files that have the extension PNG and I'm gonna change IMG to lowercase image and now I have done that so it's pretty basic and simple straightforward if you're familiar with that all it's like again just like said works so it's very useful for going through and renaming larger profiles and again I know this is not the only program I've seen one before where it kind of opens up the file names in VIM I think it was Luke Smith that was using this and I don't remember the name of that program where you would go in and give you basically a VIM file with all the file names you can go inside modify them and then when you exit out of renames all the files that was pretty neat I should look into that but this is what I've used in the past the rename command so thank you for watching I hope you enjoy this please visit films by chris.com that's Chris the K there's a link in the description as always I hope that you have a great day