提交 1f01967b 编写于 作者: ccat's avatar ccat

Merge branch 'master' into 'uniform'

# Conflicts:
#   .pre-commit-config.yaml
#   main.py
#   requirements.txt
......@@ -4,4 +4,5 @@
__pycache__
*.pyc
*.zip
*.out
\ No newline at end of file
*.out
*.pdf
\ No newline at end of file
{
"type": "code_options",
"type": "task_git_course",
"task_link": "https://codechina.csdn.net/courses/register/1/1",
"task_id_info": {
"course_id": 1,
"task_id": 1
},
"author": "csdn.net",
"source": "learn.md",
"exercise_id": "399ebefcdd3444d4a99c140527c8d98d",
......
{
"type": "code_options",
"type": "task_git_course",
"task_link": "https://codechina.csdn.net/courses/register/1/2",
"task_id_info": {
"course_id": 1,
"task_id": 2
},
"author": "csdn.net",
"source": "learn.md",
"exercise_id": "2c2b3735973143c7a001d0f550a9b9c6",
......
{
"type": "code_options",
"type": "task_git_course",
"task_link": "https://codechina.csdn.net/courses/register/1/3",
"task_id_info": {
"course_id": 1,
"task_id": 3
},
"author": "csdn.net",
"source": "learn.md",
"exercise_id": "ec97e801f80f47e3a8218f511f9ecd06",
......
{
"type": "code_options",
"type": "task_git_course",
"task_link": "https://codechina.csdn.net/courses/register/1/4",
"task_id_info": {
"course_id": 1,
"task_id": 4
},
"author": "csdn.net",
"source": "learn.md",
"exercise_id": "f8a64858e47e4504989c3b33ba9b11e0",
......
{
"type": "code_options",
"type": "task_git_course",
"task_link": "https://codechina.csdn.net/courses/register/1/5",
"task_id_info": {
"course_id": 1,
"task_id": 5
},
"author": "csdn.net",
"source": "learn.md",
"exercise_id": "5591a41efbc049f3ba57daeaf24e2001",
......
{
"type": "code_options",
"type": "task_git_course",
"task_link": "https://codechina.csdn.net/courses/register/1/6",
"task_id_info": {
"course_id": 1,
"task_id": 6
},
"author": "csdn.net",
"source": "learn.md",
"exercise_id": "8694fd578817477d8b699cfa801dedc2",
......
{
"node_id": "gml-23b8a7b7033540e388c911bb0298aa7b",
"keywords": [
"VSCode配置Git"
],
"keywords_must": [
[
"VSCode",
"Git",
"Mac"
]
],
"keywords_forbid": [],
"export": [
"install_git.json",
"create_repo.json",
"install_vscode.json",
"first_commit.json"
]
}
\ No newline at end of file
{
"type": "code_options",
"author": "huanhuilong",
"source": "create_repo.md",
"notebook_enable": false,
"exercise_id": "8dabd23113cd4fc6ab2903d66dcc7612"
}
\ No newline at end of file
# 极简 Git+VSCode for Mac(2): 在GitCode上创建一个Git仓库
**第1步:登陆GitCode**
1. GitCode 是CSDN官方的Git代码仓库中心,网站地址是: https://gitcode.net
2. GitCod 的登陆账号就是你的 CSDN 账号。
3. 请使用 CSDN 账号登陆 GitCode
登陆前如图所示:
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/gitcode_01.png)
<br/>
登陆后如图所示,如果在移动端安装了CSDN App,也可以通过 CSDN App 扫码登陆:
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/gitcode_02.png)
<br/>
点击右上角的用户头像图标,在下拉菜单里点击“个人主页”,进入你的GitCode个人主页:
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/gitcode_03.png)
<br/>
**第2步:创建一个Git仓库**
1. 在GitCode个人主页右上角,点击+号按钮,在下拉菜单里点击“新建项目”
2. 在新建项目页面里选择“创建空白项目”
3. 在“创建空白项目”配置页面填写“项目名称”,“项目描述”,并勾选“使用自述文件初始化仓库”
4. 最后点击“新建项目”,创建项目。
新建项目按钮如图所示:
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/gitcode_04.png)
<br/>
选择创建空白项目如图所示:
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/gitcode_05.png)
<br/>
“创建空白项目”配置页面填写“项目名称”,“项目描述”,并勾选“使用自述文件初始化仓库”。例如这里第一个项目起名叫做“hello_git”
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/gitcode_06.png)
<br/>
点击“新建项目”后,如图所示:
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/gitcode_07.png)
<br/>
**第3步:使用Git命令克隆仓库到本机**
1. 在Git项目页面上拷贝仓库地址。
2. 在本机适用 Git 命令将仓库克隆下来。
如图所示,点击仓库页面上的“克隆”按钮,选择“通过 HTTPS Clone 项目”的地址,并拷贝。这里示例的是:https://gitcode.net/huanhuilong/hello_git.git
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/gitcode_08.png)
<br/>
如图所示,在本机打开“终端”,输入命令`pwd`,并回车,查看当前终端环境下的工作目录位置,下图显示当前目录在Mac系统个人用户目录下。
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/gitcode_09.png)
<br/>
如图所示,我们希望将终端环境的工作目录切换到桌面。输入命令`cd /Users/feilong/Desktop`,并回车,进入到桌面。再次输入`pwd`并回车可以看到工作目录已经切换到了桌面。(注意这里的"feilong"应该替换为你自己的Mac系统用户名)
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/gitcode_10.png)
<br/>
如图所示,现在我们使用 Git 命令来克隆前一节创建的 Git 仓库。输入命令`git clone https://gitcode.net/huanhuilong/hello_git.git`,并回车。
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/gitcode_11.png)
<br/>
如图所示,Git 会将在GitCode上创建的仓库克隆到本机:
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/gitcode_12.png)
<br/>
如图所示,此时Mac电脑的桌面上已经有了"hello_git"这个目录:
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/gitcode_13.png)
<br/>
**第4步:请回答问题**:
通过上面的几个步骤,你已经学会了如何在 GitCode 上创建一个Git仓库,并克隆到本机,以下描述错误的是?
## 答案
```bash
GitCode 不用登陆就可以创建Git仓库,并且会自动将Git仓库从远程克隆到本机。
```
## 选项
### A
```bash
GitCode 可以使用 CSDN 账号登陆。
```
### B
```bash
GitCode 上可以创建并托管一个Git仓库。
```
### C
```bash
GitCode 上创建Git仓库时,可以选择创建空白项目,并配置“项目名称”,“项目描述”,创建时可以勾选“使用自述文件初始化仓库”以简化仓库数据初始化。
```
### D
```bash
在Mac上的终端里可以使用命令`pwd`查看当前工作目录,使用`cd`命令可以切换当前工作目录到桌面。
```
### E
```bash
在Mac上的终端里可以使用`git clone`命令将Git仓库从远程克隆到本机。
```
{
"type": "code_options",
"author": "huanhuilong",
"source": "first_commit.md",
"notebook_enable": false,
"exercise_id": "bc1cb266f8fa4cffb74915cb88d5ce37"
}
\ No newline at end of file
# 极简 Git+VSCode for Mac(4): 使用VSCode添加MarkDown文件到Git仓库
如图所示,在VSCode的左侧导航列表里,使用右键菜单新建一个目录:doc,并在doc目录下新建一个MarkDown文件`test.md`
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/first_commit_01.png)
<br/>
如图所示,在`test.md`里编辑几行MarkDown文本(MarkDown语法请学习本技能树第二章),并保存。
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/first_commit_02.png)
<br/>
如图所示,点击VSCode左侧的“Git面板按钮”,切换左侧导航栏。可以看到按钮上也显示里一个数字1,表示有一个文件发生变动。这里是新增了一个test.md文件。
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/first_commit_03.png)
<br/>
如图所示,在“源代码管理”下的输入框里输入一个提交信息,这里输入“第一次提交”。
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/first_commit_04.png)
<br/>
如图所示,在打勾图标的“提交”按钮,将文件的变动提交到Git本地。注意这里的提交只是将变动的文件提交到Git的本地索引系统里,还并不是提交到Git远程仓库。
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/first_commit_05.png)
<br/>
如图所示,弹框会提示你还没有可提交到暂存更改。这是由于将文件变动提交到Git本地索引是需要两个步骤的,先将文件变动加入到暂存更改,再将暂存更改提交到Git本地索引。这里只需要点击「是」,VSCode会自动把两个步骤都做掉。
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/first_commit_06.png)
<br/>
如图所示,提交后,VSCode左侧按钮栏的“Git面板按钮”上的数字消失了。我们希望将本地修改推送到GitCode的远程仓库。但是GitCode仓库上,仓库的其他成员可能也添加了文件,因此一般需要在推送前先拉取下变动到本机,如果拉取的过程中远程仓库的文件和本地的文件有冲突,则需要解决冲突,如何解决冲突不在本节考虑的范围。
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/first_commit_10.png)
<br/>
如图所示,我们进一步点击下来菜单,点击“推送”按钮,将Git仓库的本地索引变动推送到GitCode上的远程仓库。
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/first_commit_07.png)
<br/>
如图所示,Mac系统可能会提示你输入GitCode仓库的用户名密码,或者之前已经配置过,但是首次推送也会提示是否允许使用。根据提示做相应的授权即可。
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/first_commit_08.png)
<br/>
如图所示,推送成功后,打开GitCode的 hello_git 仓库,可以看到新增的doc/test.md文件已经提交到仓库。
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/first_commit_09.png)
<br/>
经过这些操作,你已经学会了在VSCode里给Git仓库添加文件,提交到Git本地索引,拉取远程Git仓库变动到本机,再推送本地Git仓库的变动到远程仓库。以下描述错误的是?
## 答案
```bash
Git仓库文件编辑后,提交变动到Git后,文件就已经推送到了远程仓库。
```
## 选项
### A
```bash
一般情况下推送数据到远程仓库之前,最好先拉取下远程仓库的变动到本地,可能的话需要解决冲突。
```
### B
```bash
VSCode 里文件变动后直接点提交实际上会提示你是否先将文件变动添加到Git的暂存区,再进一步将暂存区变动提交到Git本地索引。
```
### C
```bash
Git 仓库的文件发生变化后,VSCode左侧的Git面板按钮上会显示有变动的文件个数。
```
{
"type": "code_options",
"author": "huanhuilong",
"source": "install_git.md",
"notebook_enable": false,
"exercise_id": "9065f65a8ef44b56bb3e4a889563a419"
}
\ No newline at end of file
# 极简 Git+VSCode for Mac(1): 安装Git
**第一步,请执行以操作打开Mac下的终端。**
1. 点按程序坞中的“启动台”图标 ,在搜索栏中键入“终端”,然后点按“终端”。
2. 在“访达” 中,打开“/应用程序/实用工具”文件夹,然后连按“终端”。
3. 打开的“终端”一般如下图所示:
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/install_git_01.png)
**第二步,请执行以操作安装Mac下的包管理软件:`brew`。**
简单介绍下`brew``brew`是一个包管理软件,用来安装、更新、卸载Mac上的其他工具包和库。
1. 拷贝命令:`/bin/bash -c "\$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"`
2. 在“终端”里粘贴
3. 回车执行,等待brew安装完成,有时候网络慢会等的旧一点,必要时请开VPN。
<br/>
安装过程如图所示:
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/install_git_02.png)
<br/>
安装成功后,如图所示:
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/install_git_03.png)
**第三步,请执行以操作,使用刚刚安装的 `brew` 来安装 `git` 的最新版本。**
1. 拷贝命令:`brew install git`
2. 在“终端”里粘贴
3. 回车执行,等待brew安装完git。
4. 安装成功后,关闭终端并重现打开。
5. 重新打开终端后,输入命令`git --version`并回车,查看git的最新版本号。
<br/>
开始安装如图所示:
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/install_git_04.png)
<br/>
安装过程如图所示:
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/install_git_05.png)
<br/>
安装成功如图所示:
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/install_git_06.png)
<br/>
好了,经过上述操作,你已经成功在Mac系统上使用终端安装了git的最新版本。以下说法错误的是?
## 答案
```bash
Mac下无法打开终端,Mac下的终端无法安装brew,Mac下的终端即使装了brew也不能使用brew安装git。
```
## 选项
### A
```bash
Mac的终端在“应用程序/实用工具”目录下。
```
### B
```bash
brew 是一个Mac的包管理软件,可以用来安装其他包和库。
```
### C
```bash
使用 brew 安装 git 的命令是: brew install git
```
### D
```bash
查看 git 版本号的命令是: git --version
```
{
"type": "code_options",
"author": "huanhuilong",
"source": "install_vscode.md",
"notebook_enable": false,
"exercise_id": "bd879ccdf1da4712b4839b7841ce4587"
}
\ No newline at end of file
# 极简 Git+VSCode for Mac(3): 安装VSCode并打开Git仓库
1. 打开 https://code.visualstudio.com/ 下载 VSCode Mac版
2. 解压 VSCode-darwin-universal.zip,得到 Visual Studio Code.app
3. 将 Visual Studio Code.app 拖放到 Mac 的“应用程序”里
4. 在应用程序里双击Visual Studio Code打开 VSCode
5. 在VSCode 里按快捷键“command+shift+p”
6. 在打开的输入框里输入 “shell command”
7. 点击下拉菜单:“Shell Command: install 'code' command in PATH”
8. 这样我们就在终端里安装了一个命令`code`,通过这个命令可以在终端里使用`code {dir}`来使用VSCode打开指定目录。
9. 例如打开Mac的终端,输入 `cd /Users/feilong/Desktop/hello_git` 进入到上一节克隆到本机的Git仓库目录。
10. 然后执行命令:`code .`,并回车,就会使用VSCode打开 hello_git 仓库目录。
11. 当然,也可以在打开VSCode后,通过菜单“文件->打开文件夹”的方式打开 hello_git 目录。取决于你更喜欢命令行还是GUI操作。
<br/>
如图所示,下载VSCode并安装:
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/vscode_01.png)
<br/>
如图所示,安装code命令到终端:
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/vscode_02.png)
<br/>
如图所示,在命令下使用`code .`命令打开仓库,这里的 `.` 表示当前目录。
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/vscode_03.png)
<br/>
如果所示,VSCode里打开了仓库目录,会提示是否信任目录,点击信任。
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/vscode_04.png)
<br/>
如图所示,VSCode打开了 hello_git 仓库,点击“README.md”文件并显示
<br/>
![](https://gitcode.net/csdn/skill_tree_git_md_linux/-/raw/master/data/1.gml%E5%88%9D%E9%98%B6/1.Git%E5%85%A5%E9%97%A8/7.%E6%9E%81%E7%AE%80Git+VSCode(Mac)/img/vscode_05.png)
<br/>
经过上述操作,你已经学会安装VSCode并打开Git仓库了,以下描述错误的是?
## 答案
```bash
VSCode 只能通过菜单 文件->打开文件夹 来打开目标文件夹。
```
## 选项
### A
```bash
VSCode 可以通过菜单 文件->打开文件夹 来打开目标文件夹。
```
### B
```bash
VSCode 可以通过注册`code`命令到终端,在终端里使用`code {dir}` 的方式打开目录。
```
### C
```bash
VSCode 打开目录时候,如果需要提示是否信任,可以点击信任,因为这个目录就是你自己创建的,你决定信任这个文件夹。
```
### D
```bash
Mac下安装VSCode实际上就是把VSCode程序拷贝到Mac访达里的的“应用程序”下即可。
```
{
"node_id": "gml-0e1928df298a40fbbfc81e73809035ad",
"keywords": [
"VSCode配置Git"
],
"keywords_must": [
[
"VSCode",
"Git",
"Windows"
]
],
"keywords_forbid": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"type": "code_options",
"type": "task_git_course",
"task_link": "https://codechina.csdn.net/courses/register/2/1",
"task_id_info": {
"course_id": 2,
"task_id": 1
},
"author": "csdn.net",
"source": "learn.md",
"exercise_id": "f033c7a4957a4f908f66f5a348274cde",
......
{
"type": "code_options",
"type": "task_git_course",
"task_link": "https://codechina.csdn.net/courses/register/2/2",
"task_id_info": {
"course_id": 2,
"task_id": 2
},
"author": "csdn.net",
"source": "learn.md",
"exercise_id": "b03d2e4169a14e2599719ab881974c0a",
......
......@@ -31,5 +31,5 @@
```bash
段落的引用
强调的语法,包括 斜体 加粗 以及 删除线
强调的语法,包括 斜体 加粗 以及 下划线
```
{
"type": "code_options",
"type": "task_git_course",
"task_link": "https://codechina.csdn.net/courses/register/2/3",
"task_id_info": {
"course_id": 2,
"task_id": 3
},
"author": "csdn.net",
"source": "learn.md",
"exercise_id": "8844d2a58b3744a59f004d067e6ec935",
......
{
"type": "code_options",
"type": "task_git_course",
"task_link": "https://codechina.csdn.net/courses/register/2/4",
"task_id_info": {
"course_id": 2,
"task_id": 4
},
"author": "csdn.net",
"source": "learn.md",
"exercise_id": "48621469905d49ce88133d7af94a3d70",
......
{
"type": "code_options",
"type": "task_git_course",
"task_link": "https://codechina.csdn.net/courses/register/2/5",
"task_id_info": {
"course_id": 2,
"task_id": 5
},
"author": "csdn.net",
"source": "learn.md",
"exercise_id": "d2cf04bb0acc417995cb301f45da5eb3",
......
{
"type": "code_options",
"type": "task_git_course",
"task_link": "https://codechina.csdn.net/courses/register/2/6",
"task_id_info": {
"course_id": 2,
"task_id": 6
},
"author": "csdn.net",
"source": "learn.md",
"exercise_id": "973934ecb71045beadcf4b5bd3778012",
......
{
"type": "code_options",
"type": "task_git_course",
"task_link": "https://codechina.csdn.net/courses/register/2/7",
"task_id_info": {
"course_id": 2,
"task_id": 7
},
"author": "csdn.net",
"source": "learn.md",
"exercise_id": "ed154ec698ce462d9147c16a0bdf0139",
......
{
"type": "code_options",
"type": "task_git_course",
"task_link": "https://codechina.csdn.net/courses/register/2/8",
"task_id_info": {
"course_id": 2,
"task_id": 8
},
"author": "csdn.net",
"source": "learn.md",
"exercise_id": "78ab9558c2cb42cabf233350b3ad2095",
......
{
"type": "code_options",
"type": "task_git_course",
"task_link": "https://codechina.csdn.net/courses/register/2/9",
"task_id_info": {
"course_id": 2,
"task_id": 9
},
"author": "csdn.net",
"source": "learn.md",
"exercise_id": "c028bd1229dd48aa90ce0987a9dd475d",
......
......@@ -7,11 +7,9 @@
## 答案
```bash
| header 1 |
header 2 | header 3 |
|:-------- | :------: | --------:|
| left-aligned 文本居左 | centered 文本居中 | right-aligned 文本居右 |
| `:---` 左侧冒号表示**内容和标题栏**居左对齐 | `:--:` 两端都有冒号表示**内容和标题栏**居中对齐 | `---:` 右侧冒号表示**内容和标题栏**居右对齐 |
| header 1 |header 2 | header 3 |
| 文本居左 | 文本居中 | 文本居右 |
| | | |
```
## 选项
......@@ -21,26 +19,26 @@
```bash
| header 1 | header 2 | header 3 |
|:-------- | :------: | --------:|
| left-aligned 文本居左 | centered 文本居中 | right-aligned 文本居右 |
| `:---` 左侧冒号表示**内容和标题栏**居左对齐 | `:--:` 两端都有冒号表示**内容和标题栏**居中对齐 | `---:` 右侧冒号表示**内容和标题栏**居右对齐 |
| 文本居左 | 文本居中 | 文本居右 |
| | | |
```
### B
````bash
| header 1 | header 2 | header 3 |
| --- | ------ |---------:|
| --- | ------ |---------:|
| cell 1 | cell 2 | cell 3 |
| cell 4 | cell 5 is longer | cell 6 is much longer than the others, but that's ok. It will eventually wrap the text when the cell is too large for the display size. |
| cell 7 | | cell <br> 9 |
| cell 4 | cell 5 | cell 6 |
| cell 7 | | cell <br> 9 |
````
### C
````bash
| header 1 | header 2 | header 3 |
| :--- | :------: |---------:|
| :--- | :------: |---------:|
| cell 1 | cell 2 | cell 3 |
| cell 4 | cell 5 is longer | cell 6 is much longer than the others, but that's ok. It will eventually wrap the text when the cell is too large for the display size. |
| cell 7 | | cell <br> 9 |
| cell 4 | cell 5 | cell 6 |
| cell 7 | | cell <br> 9 |
````
{
"node_id": "gml-1c31834f07b04bcc9c5dff5baaa6680c",
"keywords": [],
"children": [],
"export": [
"exercise_01.json"
],
"keywords_must": [["Linux", "命令"]],
"keywords_forbid": []
}
\ No newline at end of file
{
"type": "task_git_course",
"task_link": "https://edu.csdn.net/lab/36675?targetLesson=2673",
"task_id_info": {
"course_id": 36675,
"task_id": 2673
},
"author": "csdn.net",
"source": "exercise_01.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "ba91eb3418d24043b011add17d5315b4"
}
\ No newline at end of file
# 实战:初识Linux
* 请在线上Linux环境里完成[Linux实战任务](https://edu.csdn.net/lab/36675?targetLesson=2673),完成实战练习后请点击【`检测任务`】按钮。
* 通过实战练习,你已经掌握了相关知识,以下对登陆信息含义描述错误的是?
登陆信息:
```bash
# csdn @ edu in ~ [18:47:27]
$
```
## 答案
```bash
$: 命令提示符. 如果是root用户则提示符是¥;
```
## 选项
### A
```bash
$: 命令提示符. 如果是root用户则提示符是#;
```
### B
```bash
@: 分隔符.
```
### C
```bash
csdn: 表示当前的登陆用户,这里是使用csdn账户登陆.
```
### D
```bash
edu: 主机短名称
```
### E
```bash
~: 当前所在目录
```
### F
```bash
在Linux系统中, 最重要的就是命令, 而每个命令执行必然有两步: 输入和输出.
```
{
"node_id": "gml-fc9a7ad4c2104078a430dac6988be2b3",
"keywords": [],
"children": [],
"export": [
"exercise_01.json"
],
"keywords_must": [["Linux", "查看", "文件"]],
"keywords_forbid": []
}
\ No newline at end of file
{
"type": "task_git_course",
"task_link": "https://edu.csdn.net/lab/36675?targetLesson=2682",
"task_id_info": {
"course_id": 36675,
"task_id": 2682
},
"author": "csdn.net",
"source": "exercise_01.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "9d99e9d47a234651824c90e117668f91"
}
\ No newline at end of file
# 实战:如何查看文件全部内容
* 请在线上Linux环境里完成[Linux实战任务](https://edu.csdn.net/lab/36675?targetLesson=2682),完成实战练习后请点击【`检测任务`】按钮。
* 通过实战练习,你已经掌握了相关知识,以下描述错误的是?
## 答案
```bash
执行命令:cat -n /etc/hosts
可以看到 hosts 文件中含有'127.0.0.1 localhost'这行
```
## 选项
### A
```bash
执行命令:cp /etc/hosts hosts
执行命令:cat hosts
可以看到 hosts 文件中含有'127.0.0.1 localhost'这行
```
### B
```bash
执行命令:cp /etc/hosts hosts
执行命令:cat -n hosts
可以看到 hosts 文件中含有'2 127.0.0.1 localhost'这行
```
### C
```bash
执行命令:cat /etc/hosts
可以看到 hosts 文件中含有'127.0.0.1 localhost'这行
```
{
"node_id": "gml-aa338e6848444ca69346373e15171cff",
"keywords": [],
"children": [],
"export": [
"exercise_01.json"
],
"keywords_must": [["Linux", "长", "文件", "查看"]],
"keywords_forbid": []
}
\ No newline at end of file
{
"type": "task_git_course",
"task_link": "https://edu.csdn.net/lab/36675?targetLesson=2683",
"task_id_info": {
"course_id": 36675,
"task_id": 2683
},
"author": "csdn.net",
"source": "exercise_01.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "37859717499c41cf89fd2dad4a01e6f3"
}
\ No newline at end of file
# 实战:长内容的文件查看方式
* 请在线上Linux环境里完成[Linux实战任务](https://edu.csdn.net/lab/36675?targetLesson=2683),完成实战练习后请点击【`检测任务`】按钮。
* 通过实战练习,你已经掌握了相关知识,以下描述错误的是?
## 答案
```bash
有一个程序从1开始一直往1.log文件里,每隔1秒按行插入序号到文件1.log
执行命令:`head -h 1.log`
那么可以看到屏幕每隔1秒会显示一行新的序号
```
## 选项
### A
```bash
执行命令:`head /etc/hosts` 可以查看文件的前10行文本
执行命令:`tail /etc/hosts` 可以查看文件的尾巴10行文本
```
### B
```bash
有一个程序从1开始一直往1.log文件里,每隔1秒按行写入序号
执行命令:`tail -f 1.log`
那么可以看到屏幕每隔1秒会显示一行新的序号
```
### C
```bash
执行命令:`tail /etc/hosts -n 2` 可以查看文件的尾巴2行文本
执行命令:`head /etc/hosts -n 2` 可以查看文件的前2行文本
```
{
"node_id": "gml-b47a6f78d32146c3a7e04ab59f64b8ce",
"keywords": [],
"children": [],
"export": [
"exercise_01.json"
],
"keywords_must": [["Linux", "vi", "编辑"]],
"keywords_forbid": []
}
\ No newline at end of file
{
"type": "task_git_course",
"task_link": "https://edu.csdn.net/lab/36675?targetLesson=2684",
"task_id_info": {
"course_id": 36675,
"task_id": 2684
},
"author": "csdn.net",
"source": "exercise_01.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "ffae07c755b04b1d80f499060aa88197"
}
\ No newline at end of file
# 实战:使用vi简单的编辑文本
* 请在线上Linux环境里完成[Linux实战任务](https://edu.csdn.net/lab/36675?targetLesson=2684),完成实战练习后请点击【`检测任务`】按钮。
* 通过实战练习,你已经掌握了相关知识,以下描述错误的是?
## 答案
```bash
执行命令:`touch 1.txt`
使用 `vi 1.txt` 打开文本文件
输入`i`键进入编辑模式
输入文本:hello
`ESC`键退出编辑模式
输入冒号按键:`:`,切换到vi的命令输入区
输入命令:`q` 退出编辑器
此时,文件 1.txt 里含有文本"hello"
```
## 选项
### A
```bash
使用 vi 打开文本文件后,
需要输入`a`或者`i`键才能进入编辑模式,输入文本到编辑器中
```
### B
```bash
使用 vi 编辑文本后,ESC退出编辑模式,
然后按冒号进入命令区
然后执行`w`可以保存文本
然后执行`q`可以退出vi编辑器
```
### C
```bash
执行命令:`touch 1.txt`
使用 `vi 1.txt` 打开文本文件
输入`i`键进入编辑模式
输入文本:hello
`ESC`键退出编辑模式
输入冒号按键:`:`,切换到vi的命令输入区
输入命令:`wq` 退出编辑器
此时,文件 1.txt 里含有文本"hello"
```
{
"node_id": "gml-a8e04f2df89a484cb8bd22d3d0e5633d",
"keywords": [],
"children": [],
"export": [
"exercise_01.json"
],
"keywords_must": [["Linux", "查找", "文件"]],
"keywords_forbid": []
}
\ No newline at end of file
{
"type": "task_git_course",
"task_link": "https://edu.csdn.net/lab/36675?targetLesson=2685",
"task_id_info": {
"course_id": 36675,
"task_id": 2685
},
"author": "csdn.net",
"source": "exercise_01.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "f20fa303de92484694b133aebad9113f"
}
\ No newline at end of file
# 实战:查找文件
* 请在线上Linux环境里完成[Linux实战任务](https://edu.csdn.net/lab/36675?targetLesson=2685),完成实战练习后请点击【`检测任务`】按钮。
* 通过实战练习,你已经掌握了相关知识,以下描述错误的是?
## 答案
```bash
执行命令:`mkdir test`
执行命令:`cd test`
执行命令:`touch 1.txt`
执行命令:`mkdir test`
执行命令:`cd test`
执行命令:`touch 1.txt`
执行命令:`cd ..`
执行命令:`find test/ -name 1.txt -size 0M`
此时,会输出:
test/1.txt
```
## 选项
### A
```bash
执行命令:`mkdir test`
执行命令:`cd test`
执行命令:`touch 1.txt`
执行命令:`mkdir test`
执行命令:`cd test`
执行命令:`touch 1.txt`
执行命令:`cd ../../`
执行命令:`find test/ -name 1.txt -size 1M`
此时,会输出:
test/test/1.txt
test/1.txt
```
### B
```bash
执行命令:`mkdir test`
执行命令:`cd test`
执行命令:`touch 1.txt`
执行命令:`mkdir test`
执行命令:`cd test`
执行命令:`touch 1.txt`
执行命令:`cd ..`
执行命令:`find test/ -name 1.txt`
此时,会输出:
test/1.txt
```
### C
```bash
执行命令:`mkdir test`
执行命令:`cd test`
执行命令:`touch 1.txt`
执行命令:`mkdir test`
执行命令:`cd test`
执行命令:`touch 1.txt`
执行命令:`cd ../../`
执行命令:`find test/ -name 1.txt`
此时,会输出:
test/test/1.txt
test/1.txt
```
{
"node_id": "gml-310c5ffd82204e7580c2a44681b884e6",
"keywords": [],
"children": [],
"export": [
"exercise_01.json"
],
"keywords_must": [["Linux", "创建", "快捷方式"]],
"keywords_forbid": []
}
\ No newline at end of file
{
"type": "task_git_course",
"task_link": "https://edu.csdn.net/lab/36675?targetLesson=2686",
"task_id_info": {
"course_id": 36675,
"task_id": 2686
},
"author": "csdn.net",
"source": "exercise_01.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "f5bdbdd43d184f26a7783ca3f187070a"
}
\ No newline at end of file
# 实战:创建一个快捷方式
* 请在线上Linux环境里完成[Linux实战任务](https://edu.csdn.net/lab/36675?targetLesson=2686),完成实战练习后请点击【`检测任务`】按钮。
* 通过实战练习,你已经掌握了相关知识,以下描述错误的是?
## 答案
```bash
执行命令:`touch 1.txt`
使用`vi 1.txt`编辑并输入"hello",然后保存退出
执行命令:`ln -s 1.txt 2.txt`
执行命令:`rm 1.txt`
执行命令:`cat 2.txt`
此时,输出:hello
```
## 选项
### A
```bash
执行命令:`touch 1.txt`
使用`vi 1.txt`编辑并输入"hello",然后保存退出
执行命令:`ln 1.txt 2.txt`
执行命令:`rm 1.txt`
执行命令:`cat 2.txt`
此时,输出:hello
```
### B
```bash
执行命令:`ln -s /usr /home/csdn/myusr`
执行命令:`rm /home/csdn/myusr`
执行命令:`ln -s /usr /home/csdn/myusr`
会在/home/csdn/目录下创建一个myusr的软链接
该软链接指向 /usr 目录
```
### C
```bash
执行命令:`ln -s /usr /home/csdn/myusr`
会在/home/csdn/目录下创建一个myusr的软链接
该软链接指向 /usr 目录
```
{
"node_id": "gml-acbb691afc4f4b8ba8cf7b0b74f2b21c",
"keywords": [],
"children": [],
"export": [
"exercise_01.json"
],
"keywords_must": [["Linux", "压缩", "文件"]],
"keywords_forbid": ["解压"]
}
\ No newline at end of file
{
"type": "task_git_course",
"task_link": "https://edu.csdn.net/lab/36675?targetLesson=2687",
"task_id_info": {
"course_id": 36675,
"task_id": 2687
},
"author": "csdn.net",
"source": "exercise_01.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "1d52581f0b8a44e3acb757678bb98e10"
}
\ No newline at end of file
# 实战:压缩一个文件
* 请在线上Linux环境里完成[Linux实战任务](https://edu.csdn.net/lab/36675?targetLesson=2687),完成实战练习后请点击【`检测任务`】按钮。
* 通过实战练习,你已经掌握了相关知识,以下描述错误的是?
## 答案
```bash
执行命令:`touch 1.txt`
执行命令:`zip 1.txt`
此时,生产了一个`1.txt.zip`压缩包文件
```
## 选项
### A
```bash
执行命令:`touch 1.txt`
执行命令:`tar -cvzf 1.tar 1.txt`
此时,生产了一个`1.tar`压缩包文件
```
### B
```bash
执行命令:`touch 1.txt`
执行命令:`tar -cvzf 1.tar.gz 1.txt`
此时,生产了一个`1.tar.gz`压缩包文件
```
### C
```bash
执行命令:`touch 1.txt`
执行命令:`gzip 1.txt`
此时,生产了一个`1.txt.gz`压缩包文件
```
{
"node_id": "gml-d1315a1e6baf4131b97f49534410339d",
"keywords": [],
"children": [],
"export": [
"exercise_01.json"
],
"keywords_must": [["Linux", "解压", "文件"]],
"keywords_forbid": []
}
\ No newline at end of file
{
"type": "task_git_course",
"task_link": "https://edu.csdn.net/lab/36675?targetLesson=2688",
"task_id_info": {
"course_id": 36675,
"task_id": 2688
},
"author": "csdn.net",
"source": "exercise_01.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "a92c84137ec24f0fa562c91bee8b7096"
}
\ No newline at end of file
# 实战:解压缩一个文件
* 请在线上Linux环境里完成[Linux实战任务](https://edu.csdn.net/lab/36675?targetLesson=2688),完成实战练习后请点击【`检测任务`】按钮。
* 通过实战练习,你已经掌握了相关知识,以下描述错误的是?
## 答案
```bash
执行命令:`touch 1.txt`
执行命令:`gunzip 1.txt`
执行命令:`gunzip -d 1.txt`
此时目录下:
* 不存在文件 1.txt.gz
* 存在文件 1.txt
```
## 选项
### A
```bash
执行命令:`touch 1.txt`
执行命令:`gzip 1.txt`
执行命令:`gunzip 1.txt`
此时目录下:
* 不存在文件 1.txt.gz
* 存在文件 1.txt
```
### B
```bash
执行命令:`touch 1.txt`
执行命令:`gzip 1.txt`
执行命令:`gzip -d 1.txt`
此时目录下:
* 不存在文件 1.txt.gz
* 存在文件 1.txt
```
### C
```bash
执行命令:`touch 1.txt`
执行命令:`gzip 1.txt`
此时目录下:
* 存在文件 1.txt.gz
* 不存在文件 1.txt
```
{
"node_id": "gml-41a013b0731e4e348ef458c87db2b66a",
"keywords": [],
"children": [],
"export": [
"exercise_01.json"
],
"keywords_must": [["Linux", "安装"]],
"keywords_forbid": []
}
\ No newline at end of file
{
"type": "task_git_course",
"task_link": "https://edu.csdn.net/lab/36675?targetLesson=2689",
"task_id_info": {
"course_id": 36675,
"task_id": 2689
},
"author": "csdn.net",
"source": "exercise_01.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "f86f96f6f5594a81822c9c689f46a6a6"
}
\ No newline at end of file
# 实战:在线安装软件
* 请在线上Linux环境里完成[Linux实战任务](https://edu.csdn.net/lab/36675?targetLesson=2689),完成实战练习后请点击【`检测任务`】按钮。
* 通过实战练习,你已经掌握了相关知识,以下描述错误的是?
## 答案
```bash
在Windows系统上执行命令:`biergaici install tree`
然后执行:`tree /home`
可以输出 home/ 目录的目录树结构
```
## 选项
### A
```bash
Mac系统上如果预装了包管理命令`brew`
在Mac系统上执行命令:`sudo brew install tree`
然后执行:`tree home/`
可以输出 home/ 目录的目录树结构
```
### B
```bash
在Ubuntu系统上执行命令:`sudo apt-get install tree`
然后执行:`tree home/`
可以输出 home/ 目录的目录树结构
```
### C
```bash
在CentOS系统上执行命令:`sudo yum install tree`
然后执行:`tree /home`
可以输出 /home 目录的目录树结构
```
{
"node_id": "gml-232c4187598a4e1b851d871070514e10",
"keywords": [],
"children": [],
"export": [
"exercise_01.json"
],
"keywords_must": [["Linux", "效率", "技巧"]],
"keywords_forbid": []
}
\ No newline at end of file
{
"type": "task_git_course",
"task_link": "https://edu.csdn.net/lab/36675?targetLesson=2690",
"task_id_info": {
"course_id": 36675,
"task_id": 2690
},
"author": "csdn.net",
"source": "exercise_01.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "d56da15acdc74b648fd90b0b39edd28a"
}
\ No newline at end of file
# 实战:提升效率的一些技巧
* 请在线上Linux环境里完成[Linux实战任务](https://edu.csdn.net/lab/36675?targetLesson=2690),完成实战练习后请点击【`检测任务`】按钮。
* 通过实战练习,你已经掌握了相关知识,以下描述错误的是?
## 答案
```bash
history命令就是查看当前用户下所以有历史执行命令。
因此在Linux下输入命令的时候,在命令行参数里直接指定密码是安全的行为。
```
## 选项
### A
```bash
上下翻页键可以直接回显最近执行的一条命令。
```
### B
```bash
history命令就是查看当前用户下所以有历史执行命令。
因此在Linux下输入命令的时候,在命令行参数里直接指定密码是不安全的行为。
```
### C
```bash
[tab]热键是Linux bash shell中最最常用的键了。
它具有补全命令和文件补全的功能。
```
{
"node_id": "gml-c430b5c28d9b42a88d3660cc7ad9c265",
"keywords": [],
"children": [],
"export": [
"exercise_01.json"
],
"keywords_must": [["Linux", "基础命令"]],
"keywords_forbid": []
}
\ No newline at end of file
{
"type": "task_git_course",
"task_link": "https://edu.csdn.net/lab/36675?targetLesson=2691",
"task_id_info": {
"course_id": 36675,
"task_id": 2691
},
"author": "csdn.net",
"source": "exercise_01.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "5a9951c0498b4b418b1944ae3925bb14"
}
\ No newline at end of file
# 实战:Linux基础命令汇总
* 请在线上Linux环境里完成[Linux实战任务](https://edu.csdn.net/lab/36675?targetLesson=2691),完成实战练习后请点击【`检测任务`】按钮。
* 通过实战练习,你已经掌握了相关知识,以下描述错误的是?
## 答案
```bash
Linux 命令有一大类是用来变魔法的
例如:Anti-Apparition Charm,Beauty spell,Bedazzling Hex
```
## 选项
### A
```bash
Linux 命令有一大类是用来创建文件和文件夹的,
例如:touch, mkdir, ln
```
### B
```bash
Linux 命令有一大类是用来移动文件的,
例如:cp,mv
```
### C
```bash
Linux 命令有一大类是用来查看文件的,
例如:cat, head, tail
```
### D
```bash
Linux 命令有一大类是用来删除文件和文件夹的,
例如:rm, rmdir
```
### E
```bash
Linux 命令有一大类是用来编辑文件的,
例如:vi, vim
```
### F
```bash
Linux 每个平台都有对应包管理器,用来安装/卸载新包和命令,
例如:yum, apt-get
```
{
"node_id": "gml-f9bb56211d994831a3560d3e07be0b1d",
"keywords": [],
"children": [],
"export": [
"exercise_01.json"
],
"keywords_must": [["Linux", "创建", "目录"]],
"keywords_forbid": ["删除"]
}
\ No newline at end of file
{
"type": "task_git_course",
"task_link": "https://edu.csdn.net/lab/36675?targetLesson=2674",
"task_id_info": {
"course_id": 36675,
"task_id": 2674
},
"author": "csdn.net",
"source": "exercise_01.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "ec52393cb69b47f8a02ace9564551c8d"
}
\ No newline at end of file
# 实战:创建一个目录
* 请在线上Linux环境里完成[Linux实战任务](https://edu.csdn.net/lab/36675?targetLesson=2674),完成实战练习后请点击【`检测任务`】按钮。
* 通过实战练习,你已经掌握了相关知识,以下描述错误的是?
## 答案
```bash
创建doc目录的命令是:`makedir doc`
```
## 选项
### A
```bash
在Linux下权限是极其严格的,如果不在home目录下,
是没有权限创建目录的.
```
### B
```bash
创建doc目录的命令是:`mkdir doc`
```
### C
```bash
切换当前目录到var目录的命令是: `cd /var`
```
{
"node_id": "gml-5d30b74764e645f49839c545d784f29e",
"keywords": [],
"children": [],
"export": [
"exercise_01.json"
],
"keywords_must": [["Linux", "入门"]],
"keywords_forbid": []
}
\ No newline at end of file
{
"type": "task_git_course",
"task_link": "https://edu.csdn.net/lab/36675?targetLesson=2692",
"task_id_info": {
"course_id": 36675,
"task_id": 2692
},
"author": "csdn.net",
"source": "exercise_01.md",
"notebook_enable": false,
"depends": [],
"exercise_id": "a567f4bf1b1a491c8f556106ca15cf0a"
}
\ No newline at end of file
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册