Skip to content

Commit 42aced5

Browse files
committed
update docs
1 parent 645534b commit 42aced5

37 files changed

+251
-390
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ package-lock.json
3737
node_modules
3838

3939
# temp folders
40-
build
40+
.temp
4141
dist
4242
_book
4343
_jsdoc

README.md

+25-24
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
</p>
1010

1111
<h1 align="center">linux-tutorial</h1>
12-
1312
> 📚 **linux-tutorial** 是一个 Linux 教程。
1413
>
1514
> 🔁 项目同步维护在 [github](https://github.com/dunwu/linux-tutorial) | [gitee](https://gitee.com/turnon/linux-tutorial)
@@ -26,26 +25,26 @@
2625

2726
> 学习 Linux 的第一步:当然是从 [Linux 命令](docs/linux/cli/README.md) 入手了。
2827
29-
- [查看 Linux 命令帮助信息](docs/linux/cli/查看Linux命令帮助信息.md) - 关键词:`help`, `whatis`, `info`, `which`, `whereis`, `man`
30-
- [Linux 文件目录管理](docs/linux/cli/Linux文件目录管理.md) - 关键词:`cd`, `ls`, `pwd`, `mkdir`, `rmdir`, `tree`, `touch`, `ln`, `rename`, `stat`, `file`, `chmod`, `chown`, `locate`, `find`, `cp`, `mv`, `rm`
31-
- [Linux 文件内容查看命令](docs/linux/cli/Linux文件内容查看编辑.md) - 关键词:`cat`, `head`, `tail`, `more`, `less`, `sed`, `vi`, `grep`
32-
- [Linux 文件压缩和解压](docs/linux/cli/Linux文件压缩和解压.md) - 关键词:`tar`, `gzip`, `zip`, `unzip`
33-
- [Linux 用户管理](docs/linux/cli/Linux用户管理.md) - 关键词:`groupadd`, `groupdel`, `groupmod`, `useradd`, `userdel`, `usermod`, `passwd`, `su`, `sudo`
34-
- [Linux 系统管理](docs/linux/cli/Linux系统管理.md) - 关键词:`reboot`, `exit`, `shutdown`, `date`, `mount`, `umount`, `ps`, `kill`, `systemctl`, `service`, `crontab`
35-
- [Linux 网络管理](docs/linux/cli/Linux网络管理.md) - 关键词:关键词:`curl`, `wget`, `telnet`, `ip`, `hostname`, `ifconfig`, `route`, `ssh`, `ssh-keygen`, `firewalld`, `iptables`, `host`, `nslookup`, `nc`/`netcat`, `ping`, `traceroute`, `netstat`
36-
- [Linux 硬件管理](docs/linux/cli/Linux硬件管理.md) - 关键词:`df`, `du`, `top`, `free`, `iotop`
37-
- [Linux 软件管理](docs/linux/cli/Linux硬件管理.md) - 关键词:`rpm`, `yum`, `apt-get`
28+
- [查看 Linux 命令帮助信息](docs/linux/cli/linux-cli-help.md) - 关键词:`help`, `whatis`, `info`, `which`, `whereis`, `man`
29+
- [Linux 文件目录管理](docs/linux/cli/linux-cli-dir.md) - 关键词:`cd`, `ls`, `pwd`, `mkdir`, `rmdir`, `tree`, `touch`, `ln`, `rename`, `stat`, `file`, `chmod`, `chown`, `locate`, `find`, `cp`, `mv`, `rm`
30+
- [Linux 文件内容查看命令](docs/linux/cli/linux-cli-file.md) - 关键词:`cat`, `head`, `tail`, `more`, `less`, `sed`, `vi`, `grep`
31+
- [Linux 文件压缩和解压](docs/linux/cli/linux-cli-file-compress.md) - 关键词:`tar`, `gzip`, `zip`, `unzip`
32+
- [Linux 用户管理](docs/linux/cli/linux-cli-user.md) - 关键词:`groupadd`, `groupdel`, `groupmod`, `useradd`, `userdel`, `usermod`, `passwd`, `su`, `sudo`
33+
- [Linux 系统管理](docs/linux/cli/linux-cli-system.md) - 关键词:`reboot`, `exit`, `shutdown`, `date`, `mount`, `umount`, `ps`, `kill`, `systemctl`, `service`, `crontab`
34+
- [Linux 网络管理](docs/linux/cli/linux-cli-net.md) - 关键词:关键词:`curl`, `wget`, `telnet`, `ip`, `hostname`, `ifconfig`, `route`, `ssh`, `ssh-keygen`, `firewalld`, `iptables`, `host`, `nslookup`, `nc`/`netcat`, `ping`, `traceroute`, `netstat`
35+
- [Linux 硬件管理](docs/linux/cli/linux-cli-hardware.md) - 关键词:`df`, `du`, `top`, `free`, `iotop`
36+
- [Linux 软件管理](docs/linux/cli/linux-cli-software.md) - 关键词:`rpm`, `yum`, `apt-get`
3837

39-
### Linux 系统运维
38+
### Linux 运维
4039

4140
> Linux 系统的常见运维工作。
4241
43-
- [linux 典型运维应用](docs/linux/ops/linux典型运维应用.md) - 关键词:域名解析、防火墙、网卡、NTP、crontab
44-
- [Samba 应用](docs/linux/ops/samba.md)
45-
- [Systemd 应用](docs/linux/ops/systemd.md)
46-
- [Vim 应用](docs/linux/ops/vim.md)
47-
- [Iptables 应用](docs/linux/ops/iptables.md)
48-
- [oh-my-zsh 应用](docs/linux/ops/zsh.md)
42+
- [linux 典型运维应用](docs/linux/ops/linux-base-ops.md) - 关键词:域名解析、防火墙、网卡、NTP、crontab
43+
- [Samba](docs/linux/ops/samba.md)
44+
- [Systemd](docs/linux/ops/systemd.md)
45+
- [Vim](docs/linux/ops/vim.md)
46+
- [Iptables](docs/linux/ops/iptables.md)
47+
- [oh-my-zsh](docs/linux/ops/zsh.md)
4948

5049
### 软件运维
5150

@@ -67,7 +66,7 @@
6766
- [Elastic 运维](docs/linux/soft/elastic)
6867
- [Kafka 运维](docs/linux/soft/kafka-install.md)
6968
- [RocketMQ 运维](docs/linux/soft/rocketmq-install.md)
70-
- [Zookeeper 运维](https://github.com/dunwu/javaweb/blob/master/docs/technology/monitor/zookeeper-ops.md)
69+
- [Zookeeper 运维](https://github.com/dunwu/javatech/blob/master/docs/technology/monitor/zookeeper-ops.md)
7170
- [Nacos 运维](docs/linux/soft/nacos-install.md)
7271
- 服务器
7372
- [Nginx 教程 📚](https://github.com/dunwu/nginx-tutorial)
@@ -76,13 +75,15 @@
7675
- [Mysql 运维](https://github.com/dunwu/db-tutorial/blob/master/docs/sql/mysql/mysql-ops.md)
7776
- [Redis 运维](https://github.com/dunwu/db-tutorial/blob/master/docs/nosql/redis/redis-ops.md)
7877

79-
### 扩展
78+
### Docker
79+
80+
- [Docker 快速入门](docs/docker/docker-quickstart.md)
81+
- [Dockerfile 最佳实践](docs/docker/docker-dockerfile.md)
82+
- [Docker Cheat Sheet](docs/docker/docker-cheat-sheet.md)
83+
- [Kubernetes 应用指南](docs/docker/kubernetes.md)
84+
85+
### 其他
8086

81-
- [Docker 教程](docs/docker/README.md)
82-
- [Docker 快速入门](docs/docker/docker-quickstart.md)
83-
- [Dockerfile 最佳实践](docs/docker/docker-dockerfile.md)
84-
- [Docker Cheat Sheet](docs/docker/docker-cheat-sheet.md)
85-
- [Kubernetes 应用指南](docs/docker/kubernetes.md)
8687
- [一篇文章让你彻底掌握 Python](https://github.com/dunwu/blog/blob/master/source/_posts/coding/python.md)
8788
- [一篇文章让你彻底掌握 Shell](https://github.com/dunwu/blog/blob/master/source/_posts/coding/shell.md)
8889
- [Git 从入门到精通](https://github.com/dunwu/blog/blob/master/source/_posts/tools/git.md)

codes/linux/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@
66

77
(1)下载脚本
88

9-
```sh
9+
```shell
1010
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/download.sh | bash
1111
```
1212

1313
(2)执行脚本
1414

15-
```sh
15+
```shell
1616
cd /tmp/dunwu-ops
1717
./dunwu-ops.sh
1818
```
1919

2020
(3)清除脚本
2121

22-
```sh
22+
```shell
2323
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/clear.sh | bash
2424
```
2525

codes/linux/soft/README.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
执行以下任意命令即可执行安装脚本。
3131

32-
```sh
32+
```shell
3333
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/zsh-install.sh | bash
3434
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/zsh-install.sh | bash
3535
```
@@ -44,7 +44,7 @@ JDK8 会被安装到 `/usr/lib/jvm/java` 路径。
4444

4545
执行以下任意命令即可执行安装脚本。
4646

47-
```sh
47+
```shell
4848
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/jdk8-install.sh | bash
4949
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/jdk8-install.sh | bash
5050
```
@@ -60,7 +60,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/jd
6060

6161
执行以下任意命令即可执行安装脚本。
6262

63-
```sh
63+
```shell
6464
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/maven-install.sh | bash
6565
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/maven-install.sh | bash
6666
```
@@ -75,7 +75,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/ma
7575

7676
执行以下任意命令即可执行安装脚本。
7777

78-
```sh
78+
```shell
7979
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nodejs-install.sh | bash
8080
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nodejs-install.sh | bash
8181
```
@@ -90,7 +90,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/no
9090

9191
执行以下任意命令即可执行安装脚本。
9292

93-
```sh
93+
```shell
9494
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/mongodb-install.sh | bash
9595
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/mongodb-install.sh | bash
9696
```
@@ -107,15 +107,15 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/mo
107107

108108
- 默认安装 - 执行以下任意命令即可:
109109

110-
```sh
110+
```shell
111111
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/redis-install.sh | bash
112112
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/redis-install.sh | bash
113113
```
114114

115115
- 自定义安装 - 下载脚本到本地,并按照以下格式执行:
116116

117117

118-
```sh
118+
```shell
119119
sh redis-install.sh [version] [port] [password]
120120
```
121121

@@ -133,7 +133,7 @@ sh redis-install.sh [version] [port] [password]
133133

134134
使用方法:
135135

136-
```sh
136+
```shell
137137
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/tomcat8-install.sh | bash
138138
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/tomcat8-install.sh | bash
139139
```
@@ -146,7 +146,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/to
146146

147147
使用方法:执行以下任意命令即可执行脚本。
148148

149-
```sh
149+
```shell
150150
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/kafka-install.sh | bash
151151
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/kafka-install.sh | bash
152152
```
@@ -159,7 +159,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/ka
159159

160160
使用方法:执行以下任意命令即可执行脚本。
161161

162-
```sh
162+
```shell
163163
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/rocketmq-install.sh | bash
164164
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/rocketmq-install.sh | bash
165165
```
@@ -172,7 +172,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/ro
172172

173173
使用方法:执行以下任意命令即可执行脚本。
174174

175-
```sh
175+
```shell
176176
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nacos-install.sh | bash
177177
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nacos-install.sh | bash
178178
```
@@ -185,7 +185,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/na
185185

186186
使用方法:执行以下任意命令即可执行脚本。
187187

188-
```sh
188+
```shell
189189
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/zookeeper-install.sh | bash
190190
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/zookeeper-install.sh | bash
191191
```
@@ -203,7 +203,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/zo
203203
- 默认安装 - 执行以下任意命令即可:
204204

205205

206-
```sh
206+
```shell
207207
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nginx-install.sh | bash
208208
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nginx-install.sh | bash
209209
```
@@ -224,7 +224,7 @@ sh nginx-install.sh [version]
224224

225225
使用方法:执行以下任意命令即可执行脚本。
226226

227-
```sh
227+
```shell
228228
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/fastdfs-install.sh | bash
229229
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/fastdfs-install.sh | bash
230230
```
@@ -235,7 +235,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/fa
235235

236236
使用方法:执行以下任意命令即可执行脚本。
237237

238-
```sh
238+
```shell
239239
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/docker-install.sh | bash
240240
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/docker-install.sh | bash
241241
```
@@ -246,7 +246,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/do
246246

247247
使用方法:执行以下任意命令即可执行脚本。
248248

249-
```sh
249+
```shell
250250
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/fastdfs-install.sh | bash
251251
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/fastdfs-install.sh | bash
252252
```

codes/linux/sys/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
使用方法:执行以下任意命令即可执行脚本。
2121

22-
```sh
22+
```shell
2323
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/yum/change-yum-repo.sh | bash
2424
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/yum/change-yum-repo.sh | bash
2525
```
@@ -44,7 +44,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/yum
4444

4545
使用方法:执行以下任意命令即可执行脚本。
4646

47-
```sh
47+
```shell
4848
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/install-tools.sh | bash
4949
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/install-tools.sh | bash
5050
```
@@ -62,7 +62,7 @@ lib 清单(可以根据需要,在 install-libs.sh 中把不需要的工具
6262

6363
使用方法:执行以下任意命令即可执行脚本。
6464

65-
```sh
65+
```shell
6666
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/install-libs.sh | bash
6767
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/install-libs.sh | bash
6868
```
@@ -71,7 +71,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/ins
7171

7272
使用方法:执行以下任意命令即可执行脚本。
7373

74-
```sh
74+
```shell
7575
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/stop-firewall.sh | bash
7676
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/stop-firewall.sh | bash
7777
```
@@ -80,7 +80,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/sto
8080

8181
使用方法:执行以下任意命令即可执行脚本。
8282

83-
```sh
83+
```shell
8484
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/set-dns.sh | bash
8585
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/set-dns.sh | bash
8686
```
@@ -89,7 +89,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/set
8989

9090
使用方法:执行以下任意命令即可执行脚本。
9191

92-
```sh
92+
```shell
9393
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/set-ntp.sh | bash
9494
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/set-ntp.sh | bash
9595
```

docs/.remarkrc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"plugins": [
3+
"preset-lint-recommended",
4+
"preset-lint-consistent",
5+
6+
["lint-list-item-indent", "space"],
7+
["lint-heading-style", false]
8+
]
9+
}

docs/.textlint.terms.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[
2+
"Stylus",
3+
"VuePress",
4+
[
5+
"front[- ]matter",
6+
"frontmatter"
7+
]
8+
]

docs/.textlintrc.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module.exports = {
2+
rules: {
3+
'@textlint-rule/no-unmatched-pair': true,
4+
apostrophe: true,
5+
'common-misspellings': true,
6+
diacritics: true,
7+
'en-capitalization': {
8+
allowHeading: false
9+
},
10+
'stop-words': {
11+
severity: 'warning'
12+
},
13+
terminology: {
14+
terms: `${__dirname}/.textlint.terms.json`
15+
},
16+
'write-good': {
17+
severity: 'warning'
18+
}
19+
},
20+
filters: {
21+
comments: true
22+
}
23+
}

0 commit comments

Comments
 (0)