update docs
parent
a7b999acdb
commit
a105d6f4a7
|
@ -45,6 +45,32 @@ sudo systemctl disable firewalld.service
|
|||
|
||||
## 系统维护
|
||||
|
||||
### 查看操作系统版本和位数
|
||||
|
||||
查看系统版本
|
||||
|
||||
```bash
|
||||
# 方法一
|
||||
cat /etc/redhat-release
|
||||
# 方法二
|
||||
cat /proc/version
|
||||
# 方法三
|
||||
uname -a
|
||||
# 方法四
|
||||
lsb_release -r
|
||||
```
|
||||
|
||||
查看系统位数:
|
||||
|
||||
```bash
|
||||
# 方法一
|
||||
getconf LONG_BIT
|
||||
# 方法二
|
||||
file /bin/ls
|
||||
# 方法三
|
||||
uname -i
|
||||
```
|
||||
|
||||
### 使用 NTP 进行时间同步
|
||||
|
||||
(1)先安装时钟同步工具 ntp
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
>
|
||||
> 本文主要介绍 bash 的语法,对于 linux 指令不做任何介绍。
|
||||
>
|
||||
> :notebook: 本文已归档到:[notes](https://github.com/dunwu/notes)
|
||||
> :notebook: 本文已归档到:「[blog](https://github.com/dunwu/blog)」
|
||||
> :keyboard: 本文的源码已归档到 [os-tutorial](https://github.com/dunwu/os-tutorial/tree/master/codes/shell/demos)
|
||||
|
||||
```
|
||||
|
@ -1675,7 +1675,7 @@ printf "\n"
|
|||
|
||||
## 12. 更多内容
|
||||
|
||||
> :notebook: 本文已归档到:[notes](https://github.com/dunwu/notes)
|
||||
> :notebook: 本文已归档到:「[blog](https://github.com/dunwu/blog)」
|
||||
|
||||
- [awesome-shell](https://github.com/alebcay/awesome-shell),shell 资源列表
|
||||
- [awesome-bash](https://github.com/awesome-lists/awesome-bash),bash 资源列表
|
||||
|
|
Loading…
Reference in New Issue