This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
journalctl -xe --no-pager
|
||||
```
|
||||
|
||||
`-f` 持续查看日志
|
||||
|
||||
- 显示内核环缓冲区的内容
|
||||
|
||||
```bash
|
||||
|
||||
17
Docs/Linux查看进程.md
Normal file
17
Docs/Linux查看进程.md
Normal file
@@ -0,0 +1,17 @@
|
||||
> 本位作者:丁辉
|
||||
|
||||
# Linux查看进程
|
||||
|
||||
- 查看资源占用前 10 的进程
|
||||
|
||||
```bash
|
||||
ps aux --sort=-%mem | awk 'NR==1; NR>1 {print $0 | "head -11"}'
|
||||
```
|
||||
|
||||
或者更简洁的
|
||||
|
||||
```bash
|
||||
ps aux --sort=-%mem | head -11
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user