[RUBY] What is a terminal?

Terminal description

** Terminal is a tool that can give commands to a PC. A tool called command line is required to execute environment construction. The command line installed by default on your Mac is Terminal. ** **

Command line description

** The command line (or command line interface: CLI) is a tool that allows you to type commands on your computer from the keyboard. ** **

GUI (Graphical User Interface)

** In contrast to the command line, the mechanism for performing operations using graphics is called a graphical user interface (GUI). ** **

For example, most of the operations that you normally perform on a PC, such as "double-clicking a file with the mouse to open it," are often performed using the GUI.

基本.png

Learn why to use the terminal

Earlier, I explained that there is a GUI that can be operated intuitively using a mouse, etc., and a CLI that can be operated using commands like a terminal.

Why do I have to get used to the operation of the terminal and use it instead of the GUI that can be operated intuitively and is familiar to me?

** The reason is that the GUI and CLI have an overwhelming number of operations that the CLI can perform. ** **

This is because if all operations are graphically represented like a GUI, the screen will be overwhelmed with menus and buttons, making it difficult to understand. In many cases, there are no buttons for operations that are not normally performed, or if it is dangerous to operate easily in the first place, it cannot be operated.

ボタン.png

With the CLI, you can almost do most of the operations on your PC. You can perform various operations.

"Running a Ruby program" is also one of the operations that can be performed by the CLI. Therefore, I think that terminal operation is an essential skill.

How to read the terminal

First, let's open the terminal and look at the display screen! !!

ターミナル見方.png

** Your computer name is your computer name, isn't it? Here, it is "A-137". The user name is your name. Here, it is "div-M.T". The "$" or "%" that follows is called a prompt, which indicates that the computer is ready to accept instructions. In other words, we are waiting for an instruction now. ** **

Summary

**-A terminal is a tool that can give commands to a PC ** ** ・ The current directory is entered in "~". "%" Means the prompt. ** **

** Programming has a huge amount of information, so Let's gradually understand from the basics without rushing! !! It will take some time before you can do it. But if you keep doing it every day, you will be able to do it gradually. Let's work hard together! !! ** **

that's all.

Recommended Posts

What is a terminal?
What is a distribution?
What is a hacker?
What is a pointer?
What is a decision tree?
What is a Context Switch?
What is a super user?
What is a system call
[Definition] What is a framework?
What is a callback function?
What is a python map?
[Python] What is a zip function?
[Python] What is a with statement?
What is a lexical scope / dynamic scope?
What is a Convolutional Neural Network?
What is namespace
What is copy.copy ()
What is Django? .. ..
What is dotenv?
What is POSIX?
What is Linux
What is klass?
What is SALOME?
What is Linux?
What is python
What is hyperopt?
What is Linux
What is pyvenv
What is __call__
What is Linux
What is Python
What is a dog? Django installation volume
What is a dog? Python installation volume
What is a dog? Django--Create a custom user model
What is Piotroski's F-Score?
What is Raspberry Pi?
[Python] What is Pipeline ...
What is Calmar Ratio?
[PyTorch Tutorial ①] What is PyTorch?
What is hyperparameter tuning?
What is JSON? .. [Note]
What is Linux for?
What is ensemble learning?
What is TCP / IP?
It's a Mac. What is the Linux command Linux?
What is a dog? Django--Create a custom user model 2
What is Python's __init__.py?
What is an iterator?
What is UNIT-V Linux?
[Python] What is virtualenv
Tell me what a conformal map is, Python!
What is machine learning?
What is a dog? POST Sending Volume Using Django--forms.py
What is a dog? Django App Creation Start Volume--startproject
Basics of Python learning ~ What is a string literal? ~
What is a recommend engine? Summary of the types
What is God? Make a simple chatbot with python
To myself as a Django beginner (2) --What is MTV?
What is Minisum or Minimax?
What is Linux? [Command list]
What is Logistic Regression Analysis?