 Okay, and welcome to this second video in this series on a shell script now I'm gonna show you a shell command here, but we're gonna be talking about using it for Other programming languages that makes sense. So bear with me So last time I was telling you about a website called cheat that sh and I showed you how you could use it in the Shell do using curl cheat that sh name command like Make date dir and it'll give you some examples of how that command could work Well, there's other options here again at the show you on the website and again You can bring this up without going to your web browser just by doing that It's gonna tell you the same information that's on the website, which is nice that they format it like that and here we're going to look at other options and We can you can see that we have other languages programming languages that you can use so for example, they have programming using options for PHP or Pearl or Python or C++ or examples we're gonna look at today just as examples so again We're gonna use curl and then we're gonna say cheat dot sh and this time instead of forward slash name of the command we're gonna say forward slash and a programming language so we can say C++ if we get enter What did I do wrong here? Oh, maybe the C++ part. Oh, of course if I spelt things properly so it seems like a Cheer dot sh is available to anyone once that domain. Anyway, here we go So the program into C++ it gives you a quick description of it And it tells you you know, it's widely used by these companies It tells you how a compiler could work and if you execute that the output would be this and then it gives you some options here on list learn for you know onward So for example real quick if we wanted to search how arrays work So we could go curl cheat that sh forward slash C++ forward slash arrays and we can hit enter and there you would give you an example of how arrays work in C++ and If I was to type part of that so let's say I was just type AR it's gonna give us an example It's gonna give us okay So there's a command that says start because it has AR there in the middle There's also arrays and then there's the learn Option here what we're gonna do here is we can also go colon list and we'll list out all of the Examples it has for that programming language so you can use any of these so like hello Let's go ahead and give that a try so here. We'll just type in hello And it's gonna give us a basic hello world for C++ example here And of course like I said you could use other programming languages So if we were to come in here and type in whoops Python It's gonna give us a brief summary of Python and quickly here. It shows you how to even start a web server Whether you were running with Python 3 or Python 2.7 and again just like Previously with C++ we can type in colon list whoops Colon list and it'll give us a list of options here that we can look at Why did it bring up Perl stuff? Did I type something wrong there? Oh? Because I forgot to type Python so that's listing all the different languages there I was gonna show you that next But Python Ford slash colon list and list just the Python doesn't have a whole lot of examples here But enough to get you started again you can do Hello, and I'll give you a basic hello world for Python Maybe they'll add more things layer obviously like I showed you last time There are a whole lot of commands that I have as listed just for your basic shell interface But it has a few examples for different programming languages here So Prince. Hello world would be your example. Of course, that's Python 2. Whatever there does tell you how to Install it like if you're on a Debbie and a Rubin 2 system or if you're on a Fedora or CentOS Anyway, so I just want to show you that the cheat that SH website gives you more than just your basic shell commands and programs you can use in the shell But it gives you a few examples right now for other programming languages and again if we were to just do curl cheat that at a sage and colon list it'll give us a list of Different options, so you have different shells here if you want to look at bash that shell or Z shell Which is what I'm currently using fish. You got some emack examples So these are different commands I guess you could say to bring up information on those things and then again up here We have different programming languages Lua, Perl, C++ You know, this is just listing out everything that it has a list for and then you get up at the top here into commands for your shell That's pretty much it again like I showed you last time you can use W get I would use the queue for quiet So you don't see the output of W get capital O dat and dash will say standard output Instead of putting it in a file. Otherwise it would put it into a file and cheat dot sh forward slash and again, we'll say and it will give you the output for rock So whether you want to use curl or W get both displayed properly here in your shell And of course you can always go to the website And there's a few other things that this website does but that's basically what I wanted to show you I do. Thank you for watching if you enjoy these videos be sure to check out my website films by chris comm That's Chris the K. There's a link in the description of the video there. You can go to the support section Support me through PayPal or through patreon patreon.com forward slash melex 1000 you appreciate all support you can search through all my videos at my website from both my channels this software channel I also have a hardware channel. I do. Thank you for watching it really does help if you like share subscribe and comment So if you do enjoy this video, please do those things for me, and I hope that you have a great day