What are the differences between shell, terminal, and command prompt?

Asked 1 years ago, Updated 1 years ago, 85 views

I'm currently studying Linux, and the words Shell, Terminal, and Command Prompt came up.I searched and looked it up, but I don't know the difference.

As I am a beginner studying Linux for the first time, I would like to know the difference between Shell, Terminal, and Command Prompt.Thank you for your cooperation.

linux unix technical-term terminal

2022-09-30 21:16

4 Answers

shell

A program that receives command input from a user and executes commands.
On Linux, on the CUI screen, a プロcommand prompt が appears, but it is the shell that displays it.

You can also save command entries to a text file to perform a series of saved operations.A set of commands in text is called a "shell script."

Shell scripts are also used to start and stop daemon processes, and it is common to create your own shell scripts and use them as new commands.

There are many kinds of shells, such as bash, tsch, ksh, and zsh.

Terminal

It's called a terminal in Japanese.It used to come from a terminal that connected to UNIX, but now it is virtualized software and is called a virtual terminal.There are many virtual terminals, such as gnone-terminal, rxvt, kterm, and xterm.

command prompt

The command input prompt that the shell above displays is called the とcommand prompt 」.In addition, the virtual terminal for Windows is named Command Prompt.US>This case is not available on Linux.


2022-09-30 21:16

It is responsible for getting input and launching the process.Inputs can be script files or terminal.

Currently, it is common to have a computer-connected configuration such as a monitor or keyboard, but in the era of UNIX, there was no such device and the terminal was connected in serial.VT100 is famous.
Because there are many programs that use such devices, they are now emulated using monitors and keyboards that already exist.For this reason, it is also known as a terminal emulator or virtual terminal.

You can imagine a Windows command prompt, but UNIX refers to the line and its display where the shell accepts input on the terminal.


2022-09-30 21:16

Terminal (such as gnome-terminal) invokes the shell (such as bash) to display the command prompt (such as PS1) where the user can enter the command


2022-09-30 21:16

I am not confident that I can call myself an expert, but I would like to give you an answer.
The following contains a great deal of independent research. We do not recommend giving a "useful" rating to this response.

To conclude,
"They are all used in the same concept in most cases.Kernel (the backbone of the OS; root).
in the nucleus) "

to refer to the software that you use to request specific processing." I understand that

I
in Itec's 15th edition of "Basic Computer Systems" The shell appears in the Unix section.According to it
"Accept commands from users and provide an easy-to-use environment
User Interface

That's right. I've been explained to you about the terminal in the same sense. I mean, there may be no difference.
(There was no section describing the terminal and command prompt)

So
"Oh, that black screen looks like a geek."
If you think that there is no problem with learning.
By the way, there is a dialect for commands, and depending on the environment, the
It may not exist.
When you are learning, be aware of which environment the document is intended for.

Exa 1. "Do you have a good network connection?Skip ICMP for a moment" L Both Linux and Windows "ping"
Exa 2. "I want to check IPAddress" L Linux is "ifconfig" and Windows is "ipconfig"
Exa 3. "It's disgusting.I'll hack it." L Linux is "ssh" and Windows is "telnet"

The following are individual subjects.

shell:
A phrase used in the Linux culture.
Sometimes I get confused because people who play with the exploit use it in a different way.

terminals:
Server stores and general-purpose machine personnel are used.
This is a common phrase in the Linux culture.

command prompt:
A phrase used in Windows culture.cmd.exe.
Windows environments have limited functionality (commands) available compared to Linux.
"Huh? You can't do Whois? Huh?" and so on.個人 It's an individual's subjectivity.
However, there is a successor to this, so if the OS is 7 or later, consider using it.

The following is a snake's foot.

Windows Power Shell:
Shell software that replaces the command prompt in Windows culture.
Can handle objects.Therefore, it cannot be done at the command prompt,
You can also check if the IP Address is open at xxx.xxx.xxx.xxx, port number ○○?

オブジェクトI don't think you can understand even if it's called an object, but
Windows has a large collection of useful functions.Net Framework Convenient Toolbox
Think that you can pull this software out of the toolbox and use it.

According to MS's announcement at Build 2016,
Allowing Windows 10 to use Bash (Unix Shell).
If you want to communicate with someone from a different culture,
(Shell? Oh, it's a command prompt)
(Command prompt?Oh, shell.)
I think there is a risk if we proceed without confirming that


2022-09-30 21:16

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.