一些零碎修改

This commit is contained in:
Hmtsai 2024-07-21 19:50:40 +08:00
parent bdc9054201
commit 6080a4fb81
105 changed files with 38 additions and 10 deletions

0
.gitea/workflows/build.yaml Normal file → Executable file
View File

0
.gitignore vendored Normal file → Executable file
View File

0
.lintmdrc Normal file → Executable file
View File

0
LICENSE-APACHE Normal file → Executable file
View File

0
LICENSE-MIT Normal file → Executable file
View File

6
README.md Normal file → Executable file
View File

@ -1,4 +1,6 @@
# Study Area CN [learn.study-area.org.cn](learn.study-area.org.cn)
# Study Area CN
### URL : [learn.study-area.org.cn](https://learn.study-area.org.cn)
![stars](https://img.shields.io/badge/dynamic/json?url=http%3A%2F%2Fgit.hmtsai.cn%2Fapi%2Fv1%2Frepos%2Fstudy-area-cn%2Fstudy-area-cn&query=%24.stars_count&style=for-the-badge&logo=gitea&label=stars&labelColor=%23F0F0F0&color=%231080FF&cacheSeconds=120&link=http%3A%2F%2Fgit.hmtsai.cn%2Fstudy-area-cn%2Fstudy-area-cn&link=http%3A%2F%2Fgit.hmtsai.cn%2Fstudy-area-cn%2Fstudy-area-cn)
![forks](https://img.shields.io/badge/dynamic/json?url=http%3A%2F%2Fgit.hmtsai.cn%2Fapi%2Fv1%2Frepos%2Fstudy-area-cn%2Fstudy-area-cn&query=%24.forks_count&style=for-the-badge&logo=git&logoColor=%23303030&label=forks&labelColor=%23F0F0F0&color=%2350B250&cacheSeconds=120&link=http%3A%2F%2Fgit.hmtsai.cn%2Fstudy-area-cn%2Fstudy-area-cn&link=http%3A%2F%2Fgit.hmtsai.cn%2Fstudy-area-cn%2Fstudy-area-cn)
@ -21,4 +23,4 @@
## 如何帮助开发?
如果您想要协助我们的开发,请参阅[百科](https://git.hmtsai.cn/study-area-cn/study-area-cn/wiki)
如果你对本项目做出了贡献,就请在`/src/contributors.md`中写上你的名字吧!
如果你对本项目做出了贡献,就请在`/src/contributors.md`中写上你的名字吧!

0
book.toml Normal file → Executable file
View File

0
hash.txt Normal file → Executable file
View File

5
src/SUMMARY.md Normal file → Executable file
View File

@ -34,9 +34,8 @@
- [在你的电脑(实体机)上安装](./learn_linux_basic/install_rocky_linux/install_in_your_pc.md)
- [安装 Rocky Linux](./learn_linux_basic/install_rocky_linux/install_rocky_linux.md)
- [Linux 常识](./learn_linux_basic/linux_common_sense.md)
- [文件与路径](./file_and_path/file_and_path.md)
- [文件目录管理]()
- [文件权限管理]()
- [文件与路径](./learn_linux_basic/file_and_path/file_and_path.md)
- [文件权限管理](./learn_linux_basic/file_and_path/manage_file_premissons.md)
- [磁盘分区以及文件系统]()
- [tar打包软件]()
- [gzip与xz]()

0
src/contributors.md Normal file → Executable file
View File

0
src/conventions.md Normal file → Executable file
View File

0
src/how_to_use_studyenv.md Normal file → Executable file
View File

0
src/intro.md Normal file → Executable file
View File

0
src/learn_computer_basic/cpu.md Normal file → Executable file
View File

0
src/learn_computer_basic/input_and_output.md Normal file → Executable file
View File

0
src/learn_computer_basic/memory.md Normal file → Executable file
View File

0
src/learn_computer_basic/motherboard.md Normal file → Executable file
View File

0
src/learn_computer_basic/operating_system.md Normal file → Executable file
View File

0
src/learn_computer_basic/storage_device.md Normal file → Executable file
View File

0
src/learn_computer_basic/what_is_computer.md Normal file → Executable file
View File

0
src/learn_linux_basic/assets/2.1.1.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 1.0 MiB

0
src/learn_linux_basic/assets/2.3.1.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 526 KiB

After

Width:  |  Height:  |  Size: 526 KiB

0
src/learn_linux_basic/assets/2.3.2.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 MiB

10
src/learn_linux_basic/file_and_path/file_and_path.md Normal file → Executable file
View File

@ -26,13 +26,17 @@
- `/boot` 存放系统启动信息
- `/dev` 大部分设备对应的文件,上文中提到了
- `/proc` 所有的进程信息(Linux 中“一切皆文件”的思想)
- `/lib` 存放所有重要的被软件调用的以来。有时会有`lib64`
- `/proc` 所有的进程信息(*nix 中“一切皆文件”的思想)
- `/lib` 存放所有的静态链接库和动态链接库。有时会有`lib64`
- `/etc` 存放软件配置文件(其实很乱,相当于杂项)
- `/opt` 扩展软件目录,少部分软件会装到这里
- `/tmp` 存放一些临时文件,通常被挂载到了内存
- `/usr` 包含系统核心文件,其中的`bin`目录包含的上述除`cd`外的所有命令,`sbin`也是(仅限 root 的命令),这两个文件夹还被映射到了根目录同名文件夹。
- `/var` 经常变动的一些重要的文件,也包含日志
- `/var` 可变动的文件(variable)
- `/var/mail` (本地邮件信箱)
- `/var/spool/news` (新闻组)
- `/var/run` (程序相关文件)
- `/var/lock` (程序锁相關)
- `/sys` 也是一个重要的设备目录
- `/home` 用户目录,相当于 `C:\Users`MacOS`/Users`

View File

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

View File

Before

Width:  |  Height:  |  Size: 166 KiB

After

Width:  |  Height:  |  Size: 166 KiB

View File

Before

Width:  |  Height:  |  Size: 158 KiB

After

Width:  |  Height:  |  Size: 158 KiB

View File

Before

Width:  |  Height:  |  Size: 306 KiB

After

Width:  |  Height:  |  Size: 306 KiB

View File

Before

Width:  |  Height:  |  Size: 306 KiB

After

Width:  |  Height:  |  Size: 306 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 412 KiB

After

Width:  |  Height:  |  Size: 412 KiB

View File

Before

Width:  |  Height:  |  Size: 119 KiB

After

Width:  |  Height:  |  Size: 119 KiB

View File

Before

Width:  |  Height:  |  Size: 652 KiB

After

Width:  |  Height:  |  Size: 652 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

Before

Width:  |  Height:  |  Size: 294 KiB

After

Width:  |  Height:  |  Size: 294 KiB

View File

Before

Width:  |  Height:  |  Size: 312 KiB

After

Width:  |  Height:  |  Size: 312 KiB

View File

Before

Width:  |  Height:  |  Size: 314 KiB

After

Width:  |  Height:  |  Size: 314 KiB

View File

Before

Width:  |  Height:  |  Size: 262 KiB

After

Width:  |  Height:  |  Size: 262 KiB

View File

Before

Width:  |  Height:  |  Size: 191 KiB

After

Width:  |  Height:  |  Size: 191 KiB

View File

Before

Width:  |  Height:  |  Size: 218 KiB

After

Width:  |  Height:  |  Size: 218 KiB

View File

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 97 KiB

View File

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View File

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 65 KiB

View File

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

View File

Before

Width:  |  Height:  |  Size: 90 KiB

After

Width:  |  Height:  |  Size: 90 KiB

View File

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

Before

Width:  |  Height:  |  Size: 314 KiB

After

Width:  |  Height:  |  Size: 314 KiB

View File

Before

Width:  |  Height:  |  Size: 498 KiB

After

Width:  |  Height:  |  Size: 498 KiB

View File

Before

Width:  |  Height:  |  Size: 92 KiB

After

Width:  |  Height:  |  Size: 92 KiB

View File

Before

Width:  |  Height:  |  Size: 137 KiB

After

Width:  |  Height:  |  Size: 137 KiB

View File

Before

Width:  |  Height:  |  Size: 110 KiB

After

Width:  |  Height:  |  Size: 110 KiB

View File

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 88 KiB

View File

Before

Width:  |  Height:  |  Size: 111 KiB

After

Width:  |  Height:  |  Size: 111 KiB

View File

Before

Width:  |  Height:  |  Size: 96 KiB

After

Width:  |  Height:  |  Size: 96 KiB

View File

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 59 KiB

View File

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View File

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 9.6 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 55 KiB

View File

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 68 KiB

View File

View File

View File

View File

View File

27
src/learn_linux_basic/linux_common_sense.md Normal file → Executable file
View File

@ -4,7 +4,11 @@
其实Linux 的很多逻辑以及文件的组织结构都是与 Windows 大不相同的,接下来,我们就一起了解一下。
> 注意以下操作若无特殊说明输入命令均在终端Terminal下操作可以按下 Ctrl-Alt-T 呼出。
> 注意以下操作若无特殊说明输入命令均在终端Terminal下操作可以按下 C-M-T 呼出。
> 本文中,快捷键使用以下格式表示:
> `Ctrl`键使用`^`或者`C`表示,`Alt`键使用`M`表示,`Super`(即`Windows`键)使用`S`表示。
> 它们的排列顺序是这样的:`C-M-S-<Other Key>`
## Linux 路径的格式
@ -29,7 +33,7 @@ Linux 中,每个文件夹下,都有两个特殊的目录,就是`.`和`..`
> 实际上,`/`只是一块硬盘的挂载点,后面会讲到
## 文件与目录的基本操作
## 基本操作
### `ls` 列出文件
@ -123,6 +127,21 @@ rm -r <你想删除的文件夹>
> 如果你真的想尝试,那么请一定在虚拟机下!搞坏系统作者可不负责!
### `nano`简单的文档编辑器
![Nano 的界面](./assets/2.5.1.png)
`nano`实际上就是被誉为“神之编辑器”的Emacs编辑器的极限精简版所有的基本操作都被标在了界面的下方
```text
^G 帮助 ^O 写入 ^F 搜索 ^K 剪切 ^T 执行命令 ^C 位置 M-U 撤销 M-A 设置标记 M-] 至括号 M-B 上一个
^◂ 向后 ^◂ 前一个字 ^X 离开 ^R 读档 ^\ 替换 ^U 粘贴 ^J 对齐 ^/ 跳行 M-E 重做 M-6 复制
^B 向前搜索 M-F 下一个 ▸ 向前 ^▸ 后一个字
```
> 以后,我们会学习一款使用更广泛的编辑器:`Vim`(被誉为“编辑器之神”)。
### `poweroff`关机
很多同学刚使用 Linux 的时候,最大的问题就是:怎么关机?
@ -136,3 +155,7 @@ sudo poweroff
回车执行之后会提示你输入密码,直接输入就可以了,输入的时候是没有回显的,不用担心,输入完直接回车即可。
> 关于`sudo`是什么意思,这个在以后我们讲解权限的时候会提到,你现在就理解为是用来获取系统的最高权限的意思就 ok 了。
### `man`用户手册
man是manual手册的意思你可以通过简单地输入 `man >:>`::

0
src/learn_linux_basic/linux_distro.md Normal file → Executable file
View File

0
src/learn_linux_basic/the_history_of_linux.md Normal file → Executable file
View File

0
src/learn_linux_basic/the_linux_learning_path.md Normal file → Executable file
View File

0
src/licenses/LICENSE-APACHE.md Normal file → Executable file
View File

0
src/licenses/LICENSE-MIT.md Normal file → Executable file
View File

0
theme/book.js Normal file → Executable file
View File

0
theme/css/chrome.css Normal file → Executable file
View File

0
theme/css/general.css Normal file → Executable file
View File

0
theme/css/print.css Normal file → Executable file
View File

0
theme/css/variables.css Normal file → Executable file
View File

0
theme/favicon.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

0
theme/favicon.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

0
theme/fonts/OPEN-SANS-LICENSE.txt Normal file → Executable file
View File

0
theme/fonts/SOURCE-CODE-PRO-LICENSE.txt Normal file → Executable file
View File

0
theme/fonts/fonts.css Normal file → Executable file
View File

0
theme/fonts/open-sans-v17-all-charsets-300.woff2 Normal file → Executable file
View File

0
theme/fonts/open-sans-v17-all-charsets-300italic.woff2 Normal file → Executable file
View File

0
theme/fonts/open-sans-v17-all-charsets-600.woff2 Normal file → Executable file
View File

0
theme/fonts/open-sans-v17-all-charsets-600italic.woff2 Normal file → Executable file
View File

0
theme/fonts/open-sans-v17-all-charsets-700.woff2 Normal file → Executable file
View File

0
theme/fonts/open-sans-v17-all-charsets-700italic.woff2 Normal file → Executable file
View File

0
theme/fonts/open-sans-v17-all-charsets-800.woff2 Normal file → Executable file
View File

0
theme/fonts/open-sans-v17-all-charsets-800italic.woff2 Normal file → Executable file
View File

0
theme/fonts/open-sans-v17-all-charsets-italic.woff2 Normal file → Executable file
View File

Some files were not shown because too many files have changed in this diff Show More