File tree 6 files changed +82
-0
lines changed
6 files changed +82
-0
lines changed Original file line number Diff line number Diff line change
1
+ node_modules /
2
+ dist /
3
+ package-lock.json
4
+
Original file line number Diff line number Diff line change
1
+ Linux 教程,正在建设中,目前还是笔记状态。
2
+
Original file line number Diff line number Diff line change
1
+ - intro.md : Linux 介绍
2
+ - cron.md : Cron 定时任务
3
+ - systemd.md : SystemD
4
+ - xargs.md : xargs 命令
Original file line number Diff line number Diff line change
1
+ # Linux 介绍
2
+
3
+ ## 查看系统信息
4
+
5
+ ` /etc/os-release ` 文件包含当前系统的标识数据和发行信息,查看此文件可以了解当前系统的发行版信息。
6
+
7
+ ``` bash
8
+ $ cat /etc/os-release
9
+ ```
10
+
11
+ 这个文件包含在 SystemD 软件包,只要当前发行版使用 SystemD,一般就会包含这个文件。
12
+
13
+ ` /etc/issue ` 文件也会包含当前发行版的名称。
14
+
15
+ ``` bash
16
+ $ cat /etc/issue
17
+ ```
18
+
19
+ ` hostnamectl ` 命令用于查找和更改系统主机名,也可以用它显示当前系统的版本信息。
20
+
21
+ ``` bash
22
+ $ hostnamectl
23
+ ```
24
+
25
+ ` uname ` 命令可以显示系统信息,包含 Linux 内核架构、名称、发布版。
26
+
27
+ ``` bash
28
+ $ uname -a
29
+ ```
30
+
31
+ 如果系统安装了` lsb-release ` 软件包,就可以用` lsb-release ` 命令查看当前系统的发行版。
32
+
33
+ ``` bash
34
+ $ lsb-release
35
+ ```
36
+
Original file line number Diff line number Diff line change
1
+ dir : docs
2
+ output : dist
3
+ site : Linux 教程
4
+ theme : wangdoc
5
+ customization : false
6
+ themeDir : loppo-theme
7
+ direction : ltr
8
+ id : linux
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " linux-tutorial" ,
3
+ "version" : " 1.0.0" ,
4
+ "main" : " index.js" ,
5
+ "directories" : {
6
+ "doc" : " docs"
7
+ },
8
+ "scripts" : {
9
+ "build" : " loppo --site \" Linux 教程\" --id linux --theme wangdoc" ,
10
+ "build-and-commit" : " npm run build && npm run commit" ,
11
+ "commit" :
" gh-pages --dist dist --dest dist/linux --branch master --repo [email protected] :wangdoc/website.git" ,
12
+ "chapter" : " loppo chapter" ,
13
+ "server" : " loppo server"
14
+ },
15
+ "keywords" : [
16
+ " wangdoc" ,
17
+ " document" ,
18
+ " linux"
19
+ ],
20
+ "author" : " Ruan Yifeng" ,
21
+ "license" : " CC-BY-SA-4.0" ,
22
+ "description" : " " ,
23
+ "dependencies" : {
24
+ "gh-pages" : " ^6.1.1" ,
25
+ "loppo" : " ^0.6.26" ,
26
+ "loppo-theme-wangdoc" : " ^0.7.1"
27
+ }
28
+ }
You can’t perform that action at this time.
0 commit comments