** 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. ** **
** The command line (or command line interface: CLI) is a tool that allows you to type commands on your computer from the keyboard. ** **
** 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.
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.
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.
First, let's open the terminal and look at the display screen! !!
** 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. ** **
**-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! !! ** **
Recommended Posts