Skip to content

Commit

Permalink
doc: update docs/linux-command.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 17, 2023
1 parent d9e86b5 commit 9ba0641
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ Quick Reference
[Docker](./docs/docker.md)<!--rehype:style=background: rgb(72 143 223);-->
[Dockerfile](./docs/dockerfile.md)<!--rehype:style=background: rgb(0 72 153);&class=tag&data-lang=Docker-->
[Django](./docs/django.md)<!--rehype:style=background: rgb(12 75 51);&class=contributing tag&data-lang=Python-->
[Ejs](./docs/ejs.md)<!--rehype:style=background: rgb(169 30 80);&class=contributing tag&data-lang=JavaScript-->
[Flask](./docs/flask.md)<!--rehype:style=background: rgb(210 168 255);&class=contributing tag&data-lang=Python-->
[Flutter](./docs/flutter.md)<!--rehype:style=background: rgb(150 220 254);&class=contributing tag&data-lang=Dart-->
[Golang](./docs/golang.md)<!--rehype:style=background: rgb(39 160 193);-->
Expand Down Expand Up @@ -107,6 +106,7 @@ Quick Reference
## Nodejs

[Express.js](./docs/expressjs.md)<!--rehype:style=background: rgb(95 151 206);-->
[Ejs](./docs/ejs.md)<!--rehype:style=background: rgb(169 30 80);&class=tag&data-lang=JavaScript-->
[Jest](./docs/jest.md)<!--rehype:style=background: rgb(153 66 91);-->
[Koa.js](./docs/koajs.md)<!--rehype:style=background: rgb(95 151 206);-->
[Lerna](./docs/lerna.md)<!--rehype:style=background: rgb(192 132 252);-->
Expand Down
19 changes: 10 additions & 9 deletions docs/linux-command.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ Linux 命令速查表

:--- | :---
:--- | :---
**`uname`** | 显示linux系统信息
**`uname`** | 显示 linux 系统信息
**`uname -r`** | 显示内核版本信息
**`cat /etc/os-release`** | 显示linux系统详细信息
**`uptime`** | 显示系统运行的时间<br/>(包括平均负载)
**`cat /etc/os-release`** | 显示 linux 系统详细信息
**`uptime`** | 显示系统运行的时间(包括平均负载)
**`hostname`** | 显示系统主机名
**`hostname -i`** | 显示系统的IP地址
**`last reboot`** | 显示系统重新启动历史记录
Expand All @@ -32,15 +32,16 @@ Linux 命令速查表
:--- | :---
:--- | :---
**`dmesg`** | 显示启动消息
**`cat /proc/cpuinfo`** | 显示有关CPU的更多信息,例如型号、型号名称、核心、厂商标识
**`cat /proc/meminfo`** | 显示有关硬件内存的更多信息,例如总内存和可用内存
**`cat /proc/cpuinfo`** | <pur>**CPU**</pur>: 显示 CPU 的更多信息,例如型号、核心等
**`cat /proc/meminfo`** | <pur>**内存**</pur>: 显示硬件内存的更多信息
**`df -h`** | <pur>**磁盘空间**</pur>: 显示磁盘空间大小(单位`G`)
**`hdparm -i /dev/xda`** | <pur>**磁盘**</pur>: 显示有关磁盘数据的信息
**`lshw`** | 显示有关系统硬件配置的信息
**`lsblk`** | 显示块设备相关信息
**`free -m`** | 显示系统中空闲和使用的内存(-m标志表示内存(MB))
**`lspci -tv`** | 在树状图中显示PCI设备
**`lsusb -tv`** | 以树状图的形式显示USB设备
**`free -m`** | 显示系统中空闲和使用的内存`-m`(MB)`-g`(GB)
**`lspci -tv`** | 在树状图中显示 PCI 设备
**`lsusb -tv`** | 以树状图的形式显示 USB 设备
**`dmidecode`** | 显示BIOS中的硬件信息
**`hdparm -i /dev/xda`** | 显示有关磁盘数据的信息
**`hdparm -tT /dev/xda <:code>`** | 在设备xda上进行读速度测试
**`badblocks -s /dev/xda`** | 测试磁盘上不可读的块
<!--rehype:className=style-list-->
Expand Down
3 changes: 2 additions & 1 deletion docs/nestjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ bootstrap()
│ ├── app.controller.ts # 单个路由的基本控制器
│ ├── app.service.ts # 具有单一方法的基本服务
│ └── main.ts # 应用程序的入口文件
# 它使用核心函数 NestFactory 来创建 Nest 应用程序的实例
# 它使用核心函数 NestFactory
# 来创建 Nest 应用程序的实例
└── test # 测试目录
├── app.e2e-spec.ts
└── jest-e2e.json
Expand Down
2 changes: 1 addition & 1 deletion docs/quickreference.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ const school = <div>学校</div>;
:- | -
:- | -
`<yel>` | <yel>黄色</yel>
`<red>` | <yel>红色</yel>
`<red>` | <red>红色</red>
`<pur>` | <pur>紫色</pur>
`<code>` 或 <code>\`\`</code> | <code>绿</code>``
`<del>``~~删除~~` | <del>~~红色~~</del>
Expand Down

0 comments on commit 9ba0641

Please sign in to comment.