Files
2021-10-21 14:41:06 +08:00

63 lines
1.8 KiB
Markdown
Executable File
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "1.1 一个非常重要的东西-终端"
date: 2021-10-18T16:59:28+08:00
draft: false
---
#
第一节 一个非常重要的东西-终端
在你装好deepin以后四处找找你会找到一个叫做终端的应用。你也可以使用`ctrl+alt+t`快捷键唤起终端.
打开它,你会看到这样的东西
`momen@momen-PC:~$`
诶,这不是我的机子吗?:D
好吧你看到的是这样的东西
`[用户名]@(主机名):~$`
没错,你要开始打命令了
打命令之前,你需要的知道的几个关系,终端terminal,tty,shell和bash.
啊这...
别慌,咱们先从字面意思来解释
terminal--终点站;终端
tty--终端; 电传打字机; 终端设备; 控制台; 控制终端;
shell--壳
bash--猛击
啊?什么玩意?越来越离谱?壳和猛击是什么东西?
问题不大,我们来一一解释.
狭义的来讲terminal=tty.
shell,他就是壳,没错就是那个王八顶的那个壳.他的对立面是核.他就像"cmd",接受你发出的指令,解析你的命令后,再内核中运行.
bash是一个缩写,不是真的猛击啦.bash的全称为**B**ourne-**A**gain **SH**ell。
shell由许多种有bash / sh / ksh / csh / zsh.我们默认用的是bash.
shell有两种命令,内部命令和外部命令.这是个啥子哦?大家在用cmd的时候,应该都见过这个东西."xxxxx"不是内部或外部命令,也不是可运行程序或批处理文件.
是不是很眼熟呢?
没错,他所说的内部命令和外部命令与linux所说的意思相似.
这个内部命令就是shell自带的命令,外部命令就是shell本身不具有,但是你另外赋给他的命令.
你可以用这些命令做许多大胆的事情.而这一切,你都需要打开终端来控制shell.
以下我来讲解几个常用命令
(未完待续)