File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 资源列表
You can’t perform that action at this time.
0 commit comments