 So the Linus Tech Tips Linux challenge has proven to be a very wealthy source of content for Linux content creators like seriously every time one of those videos comes out I get like 12 more ideas. Now I'm not going to make 12 videos on it that would be overkill because it would just get boring after a while and I'm not going to beat a dead horse. We all know that Linus is having problems with Linux but there are some things we can take away from his experience to try to explain things a little bit better to people who actually care and want to learn about Linux and today I'm going to take an opportunity to do that. So in the most recent video which I'll link in the video description for some reason Linus decided he needed a script from GitHub and then wanted to run that on his computer was for one of his audio interfaces or something something that is meant to work with Windows and doesn't have Linux software in order to run it. So he went to GitHub he tried to get the script from GitHub but he did it wrong and it was really weird like he like clicked save link as and that saved the whole page as an HTML file which is standard behavior even in Windows as far as I'm aware it's really I mean it was really really weird. So the point of today's video is to say this file extensions in Linux don't matter whatsoever like you can literally name any file whatever file extension you want and it will still be the same type of file no matter what. So for the example I'm going to use today I'm going to be talking about scripts you don't have a script does not have to have a .sh file extension in order to be a script like a shell script. Now from a naming convention a lot of time developers and coders and amateur people who do scripts like me they use .sh to kind of signal that hey this is a script that way if you don't have color matching on your in your terminal or whatever that tells you hey this thing is executable you'll know that this thing is a script but you don't have to do that so let me show you what I'm talking about. So we're here in a terminal and we're in my scripts folder let me actually zoom in here if I can do so and then let's just say we're creating a script it doesn't matter what we're doing or let's just say we're downloading a script it doesn't matter how this script is created but we're having one so let's go ahead and create a script called sc so let's see touch sc.bob and as you can see that doesn't have a .sh file extension it has a file extension it's called .bob and we can create that file really easy and then what we need to do is make that executable so if we do chmod plus x sc.bob now it's executable now if we've been into that and create the script we can go through and just do a normal script now I mean this is obviously beyond the realm of what a new person would do it so what he did was he went to github then found the raw code and copied and pasted it so in my case I'm just going to go through and just you know type it out real quick so I'm going to do a shebang and then I'm going to do echo hello Linus and then I'm going to write this and quit this and then I'm going to run it now see really if you were on windows chances are this probably won't work because in windows file extensions matter like if you want your file to be executable it's usually a .exe file of some sort if you if it's a script it's a .sh file if it's a registry entry or something it's it's something else you know file extensions matter in windows in linux they do not so let's just go ahead and run this we do .slash sc.bob and we have echo hello Linus there we go now to show you that this also works with a different file extension so we can actually just move what we just did sc.bob into let's just say sc.sh and now if we do .slash sc.sh which is now the name of the file we get the exact same thing file extensions in linux for the most part do not matter now there are some programs that will not play well if the file extension is not there so for example things like LibreOffice gets a little finicky if you're opening a file that's not having an extension that it's looking for but for the most part the extension just plain old doesn't matter it can literally be anything in the world could be all the letters of the alphabet if that's what you really wanted to be so file extensions in linux just don't matter so if you're trying to run a script and you see a .sh or you're trying to save a script you can literally name it whatever you want as long though the what is important about scripts and things that you're running in the terminal isn't the file extension it's whether or not the script is executable so if you haven't gone through and made your script executable it's not a script it's just a text file so it now i mean that's not always true you can get by running a script that's not executable in like a file manager that kind of does it for you that's kind of what linux end up doing really weird it's not how you should do it you should always make it executable even if you're not gonna use the terminal if you're going to go through and use it from a file manager you can right click on it change permissions to executable and that's how you'd run it but no matter what the script has to be executable and that's what matters when it comes to a script it doesn't matter what the file extension is so this is just a short video i hope you learned something from it if you have any questions or any comments or something that you can leave those in the comment section below make sure you like and subscribe and all that stuff we're like at 6200 subscribers now is just absolutely mind blowing to me i mean like it just keeps going up i keep expecting it to go down like i'm not the most optimistic person every once in a while i you know expect the train ride to end but i'm so grateful for everybody who has hit that subscribe button if you haven't already make sure you do so i really do appreciate it you can follow me on twitter at linuxcast you can support me on patreon at patreon.com slash linuxcast before i go i let's take them up thing my current patrons devon chris east coast web gen 2 is fun to petrick l primus marcus maglun jackson iftul steve cid a michael artson or amityus merrick camp josh really j dog the bsd's rock and peter a seriously the glasses just make this completely better i can actually read the names anyways thanks for watching i'll see you next time