Skip to content

Commit

Permalink
Update shell.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lhtin authored Jan 23, 2024
1 parent ef3adeb commit 5a1a9f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@
# 输出mem_heap_B最大值
grep mem_heap_B massif.out | sed -e 's/mem_heap_B=\(.*\)/\1/' | sort -g | tail -n 1
```
- 将diff和patch转成更容易看的html网页:`diff2html --input file --style side --file a.html -- a.diff`
- 安装:`npm install diff2html-cli`
- 官网:https://diff2html.xyz/
- 非root权限安装yum包
- 下载yum包:`yumdownloader package`
- 解压(文件放在当前目录的usr目录下面):`rpm2cpio package | cpio -idmv`

0 comments on commit 5a1a9f9

Please sign in to comment.