Skip to content

Commit a105d6f

Browse files
committed
update docs
1 parent a7b999a commit a105d6f

2 files changed

Lines changed: 28 additions & 2 deletions

File tree

docs/linux/ops/linux典型运维应用.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,32 @@ sudo systemctl disable firewalld.service
4545

4646
## 系统维护
4747

48+
### 查看操作系统版本和位数
49+
50+
查看系统版本
51+
52+
```bash
53+
# 方法一
54+
cat /etc/redhat-release
55+
# 方法二
56+
cat /proc/version
57+
# 方法三
58+
uname -a
59+
# 方法四
60+
lsb_release -r
61+
```
62+
63+
查看系统位数:
64+
65+
```bash
66+
# 方法一
67+
getconf LONG_BIT
68+
# 方法二
69+
file /bin/ls
70+
# 方法三
71+
uname -i
72+
```
73+
4874
### 使用 NTP 进行时间同步
4975

5076
(1)先安装时钟同步工具 ntp

docs/linux/scripts/shell.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
>
55
> 本文主要介绍 bash 的语法,对于 linux 指令不做任何介绍。
66
>
7-
> :notebook: 本文已归档到:[notes](https://github.com/dunwu/notes)
7+
> :notebook: 本文已归档到:[blog](https://github.com/dunwu/blog)
88
> :keyboard: 本文的源码已归档到 [os-tutorial](https://github.com/dunwu/os-tutorial/tree/master/codes/shell/demos)
99
1010
```
@@ -1675,7 +1675,7 @@ printf "\n"
16751675
16761676
## 12. 更多内容
16771677
1678-
> :notebook: 本文已归档到:[notes](https://github.com/dunwu/notes)
1678+
> :notebook: 本文已归档到:「[blog](https://github.com/dunwu/blog)」
16791679
16801680
- [awesome-shell](https://github.com/alebcay/awesome-shell),shell 资源列表
16811681
- [awesome-bash](https://github.com/awesome-lists/awesome-bash),bash 资源列表

0 commit comments

Comments
 (0)