What Are Command Line Interfaces?

Building Command Line Tools with Python, Julia and Nodejs Module 01 - Building Command Line Tools
6 minutes
Share the link to this page
Copied
  Completed

Transcript

All right. So, welcome back and thank you very much. So, in this particular session of the course, which is going to be a module one, we try to see what see Eliza. So, what are CL eyes right. So, trying to understand the basic ideas about CLR. So, in the past used to interact with computers in service, even as currently we are just completed in several ways.

The first way that we used to interact with computers was using a CLR right, but that is one of the ways we interact with the computer, the command line interface as a full name for the later on we advanced and we developed another way of interact with the computer called the GI right the graphical user interface. So, that is another way in which we can interact with a computer. Then a third method is an API right, which is application programming interface that is a third way in which you and I can interact with a computer or a server somewhere else. Then finally, a new ordinance for the SABC. So a BCI is a brain computer interface right, in which I live. Using a neural link to link our brain to a complete machine.

So that's why it comes to be call me by mind machine interface. So these are the four main ways in which we can interact with a computer. So in this course, we'll be going more into CLA how to build your own CLA tools. Let's dive into some stuff. So what is ACLs ACLs, a program that are set tested put to execute opportunistic patches. So what do I mean by that?

So let's see something. So let's say I want to quit within four days. So there are several ways I can create a folder from here, I can come here, and I'll click on this new, then I click on folder, then I need to create a folder. So let's click this example. One, right so that is how to create a folder. So it is using a graphic user interface to be able to create a folder, but I can do the same thing from my terminal.

So I come back to my terminal here, which is inside motor one. If I check here we have my example one food and one I quitted here. It's been used by scientists, I believe folder here, right? So that I use the graphical user interface to be able to create a folder by clicking on it right click, and I move my mouse to new, right? Then I click, I created a folder, right? That is how I was able to create it further.

But from the command macros, I can also do the same thing by going with M. Katie, then let's see example. To write a good example to now I see that a squid did the same thing. So a command line interface is a program that receive a text input, which is make directory and execute the same fashion that you could have done with your graphic user interface. Same thing I did hear, I could do it from my command line. And it's something very interesting. So this is a program font on my system that does the same thing that I did all of them but in a simple way.

So a command line interface is simply program, right that interprets, it performs a function. So let's see another example. So in case I want to install something my system and just go with NPM installed Commander, Commander eligibility install it. That is one way I can install it. Or I can just go to the website, download it, click Next, Next Next, then install it right by this from this option, I was able to install a program right so this is a COI program that is going to do this but claim extraction function in any store displays plus or minus a, right so, it's a way in which we can interact with a computer from a window. So this particular window is called terminal emulator.

So let's go back to details. Alright, so I given a test, right, which was big directory, which was a comment, then it went in give me a result of creating a food truck with a stick. So in between this there are several pushes that went behind the scene. So the first of them was that there was a terminal. The minute I place inside. The next one was that I when I type in a test inside a window to set a terminal emulator, it gives me my result, but how did he do that?

So one of the ways to do that was that there was a moment interpreter, right? Those are interpreted behind the terminal that understood what I typed in. They didn't give me my results to the assembler interpreters, we have shell, right bash fish partial, and also have another interpreter call Python interpreter or no GS interpreter. So the first one we saw was with NPM. So NPM is using a Node JS decorator to be able to keep up the same result, right? That is the basic idea.

So we have some tests, we have some terminal, we have an interpreter, and a result imagine. So the terminal is the window into the interpreter into the shell, right? It can be a Python shell, a Pedro interpreter or a bash interpreter is simply called show. So that is the basic idea behind the command line interface. So you put in some text, it goes through a window, which is called a terminal or a terminal window or terminal emulator. Then it goes to your interpreter, which interprets that test that you give them give us our result.

If it So now, let's see some other stuff. In short, the the basic structure, we have some terminal console, then up some test that it goes to your PC and do some particular test. Apologies for the noise behind keys, what are some of the big things you have to understand we have something called terminal. The terminal simply is a test input output environment. Also qualitative, why? So there are several templates, latest we have commander, we have a stamped template and all of these things.

You saw the console console is a physical terminal that is attached to the computer, right? So that the monitor your keyboard, and also how they show. So let's see what a console is. So in the past, this was how they used to work with computers. Right now we don't see this anymore. So when this was a mainframe computer, these are mainframe.

The only way they could interact with this was using a console. Right? So this was attached to this to enable them to be able to interact with the computer. So that was why it was called a console. So in the past, so this was today's to interact with a computer, right? There was a mainframe, and there was something that touched the mainframe called a So, this thing is called a console right.

So, with this console, you able to interact with this particular mainframe computer the same this is a call. So, this is going to explain why sometimes if you have a gamepad or game setting, these things can also be termed as console something very interesting. Apologies for the noise, the height, okay, so that is something very interesting. So this is the basic idea. So we have a causal we have a terminal then we have a computer

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.