提交 f2264f81 编写于 作者: F feilong

添加终端

上级 b7190572
{
"type": "code_options",
"author": "",
"source": "centos_terminal.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "1d06ce83bba7473cbc3289c0114a48d1"
}
\ No newline at end of file
# 标题
## 答案
## 选项
### A
### B
### C
\ No newline at end of file
......@@ -3,11 +3,7 @@
"keywords": [],
"children": [],
"export": [
"windows_console.json",
"centos_terminal.json",
"mac_iterm2.json",
"ubuntu_terminal.json",
"mac_terminator.json"
],
"keywords_must": [],
"keywords_forbid": []
......
{
"type": "code_options",
"author": "huanhuilong",
"source": "learn.md",
"notebook_enable": false,
"depends": []
}
\ No newline at end of file
# 认识终端(Terminal)
无论是Windows,Mac,还是Linux操作系统,都可以通过这组操作让操作系统执行命令。
1. 打开`终端`
2.`终端`的命令行里输入`命令`
3. 回车,`终端``命令`传递给`shell`程序解释。
4. `shell`程序解释`命令`后,调用对应的操作系统接口执行。
5. `shell`程序将执行结果返回给`终端`显示。
`终端``shell`的通俗解释:
* `shell`:
* 解析输入命令并传递给操作系统的程序,并把操作系统反馈信息输出的程序,是shell
* `终端`
* GUI下,把GUI下管理`shell`的程序(负责让`shell`能在GUI下交互、以及同时开启多个`shell`等叫做`terminal`
* 非GUI下,只有纯文本界面,Linux`终端`包含3类:
*`shell``本地显示器交互`的机制叫做`tty`
*`shell``远程访问交互`的机制叫做`pts`
*`shell``串口设备交互`的机制叫做`console`
* 其中最具争议的是`console`。因为有一些GUI下调用`shell`的GUI程序,也叫做`console`
每个操作系统都有多种可选的终端程序。
* Windows 系统
* 安装[Windows 终端](https://docs.microsoft.com/zh-cn/windows/terminal/install)
* 一般来说,Window 的`cmd.exe``powershell.exe`,当作为一个`console`的时候,算是一个`终端`
* 当你在`cmd`或者`powershell`里运行任何命令的时候,这些命令是`cmd``powershell`负责解析并运行的,此时他们就是`shell`角色
* Ubuntu 系统
* 系统自带的终端
* 通过命令安装其他Linux终端程序, 例如安装名为`Terminator`的Linux终端:`sudo apt install terminator`
* Mac 系统
* 使用系统自带的终端
* 安装[iterm2终端](https://iterm2.com/)
根据上述材料,下列哪些说法是错误的
## 答案
每个终端只能运行一种shell程序。
## 选项
### A
Mac系统自带的终端和`iterm2`都是终端,只是除了基本功能外一些功能上有差异。
### B
Ubuntu自带的终端和安装的`Terminator`都是终端,只是除了基本功能外一些功能上有差异。
### C
这个链接可以安装Windows最新的终端:`https://docs.microsoft.com/zh-cn/windows/terminal/install`
{
"type": "code_options",
"author": "",
"source": "mac_iterm2.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "db7576af42df41a180984ee6fe6e2857"
}
\ No newline at end of file
# 标题
## 答案
## 选项
### A
### B
### C
\ No newline at end of file
{
"type": "code_options",
"author": "",
"source": "mac_terminator.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "8bb4d05da7c147589ecec6a464529486"
}
\ No newline at end of file
# 标题
## 答案
## 选项
### A
### B
### C
\ No newline at end of file
{
"type": "code_options",
"author": "",
"source": "ubuntu_terminal.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "3cbf7ab167ba4143b712cb930b8266c1"
}
\ No newline at end of file
# 标题
## 答案
## 选项
### A
### B
### C
\ No newline at end of file
{
"type": "code_options",
"author": "",
"source": "windows_console.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "e734d8bbb38040e4a8be242750d35463"
}
\ No newline at end of file
# 标题
## 答案
## 选项
### A
### B
### C
\ No newline at end of file
{
"type": "code_options",
"author": "",
"source": "bash.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "332ff1b8c60b4b5e916adde8757f28d6"
}
\ No newline at end of file
# 标题
## 答案
## 选项
### A
### B
### C
\ No newline at end of file
{
"type": "code_options",
"author": "",
"source": "cmd.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "17e5894c075a4bb18c90266fe7361149"
}
\ No newline at end of file
# 标题
## 答案
## 选项
### A
### B
### C
\ No newline at end of file
......@@ -3,12 +3,7 @@
"keywords": [],
"children": [],
"export": [
"fish.json",
"cmd.json",
"zsh.json",
"powershell.json",
"bash.json",
"sh.json"
],
"keywords_must": [],
"keywords_forbid": []
......
{
"type": "code_options",
"author": "",
"source": "fish.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "e8fbd4baa88440198052ef41d6ac54eb"
}
\ No newline at end of file
# 标题
## 答案
## 选项
### A
### B
### C
\ No newline at end of file
{
"type": "code_options",
"author": "huanhuilong",
"source": "learn.md",
"notebook_enable": false,
"depends": []
}
\ No newline at end of file
{
"type": "code_options",
"author": "",
"source": "powershell.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "6143fee728224114a2ae2bfb6474429a"
}
\ No newline at end of file
# 标题
## 答案
## 选项
### A
### B
### C
\ No newline at end of file
{
"type": "code_options",
"author": "",
"source": "sh.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "f465b9a3f9e24c7cada8981d3d4aecde"
}
\ No newline at end of file
# 标题
## 答案
## 选项
### A
### B
### C
\ No newline at end of file
{
"type": "code_options",
"author": "",
"source": "zsh.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "f669725fa4ee4d1a9e97a1c1b06e3a99"
}
\ No newline at end of file
# 标题
## 答案
## 选项
### A
### B
### C
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册