mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-10-30 18:53:35 +08:00
*: use lowercase PID (#22628)
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
|
||||
- Show I/O usage of given PID(s):
|
||||
|
||||
`sudo iotop {{[-p|--pid]}} {{PID}}`
|
||||
`sudo iotop {{[-p|--pid]}} {{pid}}`
|
||||
|
||||
- Show I/O usage of a given user:
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
- List files opened by a specific process, given its PID:
|
||||
|
||||
`lsof -p {{PID}}`
|
||||
`lsof -p {{pid}}`
|
||||
|
||||
- List open files in a directory:
|
||||
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@
|
||||
|
||||
- Attach to an already running process and see its file reading progress:
|
||||
|
||||
`pv {{[-d|--watchfd]}} {{PID}}`
|
||||
`pv {{[-d|--watchfd]}} {{pid}}`
|
||||
|
||||
- Read an erroneous file, skip errors as `dd conv=sync,noerror` would:
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
- Scan a running process by its PID using multiple rules:
|
||||
|
||||
`yara {{path/to/rule1.yar path/to/rule2.yar ...}} {{PID}}`
|
||||
`yara {{path/to/rule1.yar path/to/rule2.yar ...}} {{pid}}`
|
||||
|
||||
- Print metadata associated with the matching rules:
|
||||
|
||||
|
||||
@@ -17,4 +17,4 @@
|
||||
|
||||
- Report a bug about a specific process:
|
||||
|
||||
`apport-bug {{PID}}`
|
||||
`apport-bug {{pid}}`
|
||||
|
||||
+4
-4
@@ -5,11 +5,11 @@
|
||||
|
||||
- Display attributes of a process:
|
||||
|
||||
`chrt {{[-p|--pid]}} {{PID}}`
|
||||
`chrt {{[-p|--pid]}} {{pid}}`
|
||||
|
||||
- Display attributes of all threads of a process:
|
||||
|
||||
`chrt {{[-a|--all-tasks]}} {{[-p|--pid]}} {{PID}}`
|
||||
`chrt {{[-a|--all-tasks]}} {{[-p|--pid]}} {{pid}}`
|
||||
|
||||
- Display the min/max priority values that can be used with `chrt`:
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
|
||||
- Set the scheduling priority of a process:
|
||||
|
||||
`chrt {{[-p|--pid]}} {{priority}} {{PID}}`
|
||||
`chrt {{[-p|--pid]}} {{priority}} {{pid}}`
|
||||
|
||||
- Set the scheduling policy of a process:
|
||||
|
||||
`chrt --{{deadline|idle|batch|rr|fifo|other}} {{[-p|--pid]}} {{priority}} {{PID}}`
|
||||
`chrt --{{deadline|idle|batch|rr|fifo|other}} {{[-p|--pid]}} {{priority}} {{pid}}`
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
- Show information about the core dumps matching a program with PID:
|
||||
|
||||
`coredumpctl info {{PID}}`
|
||||
`coredumpctl info {{pid}}`
|
||||
|
||||
- Invoke debugger using the last core dump:
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
- Show information on a specific PID:
|
||||
|
||||
`pidstat -p {{PID}}`
|
||||
`pidstat -p {{pid}}`
|
||||
|
||||
- Show memory statistics for all processes whose command name include "fox" or "bird":
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
- Track all file opens by a process by PID:
|
||||
|
||||
`sudo opensnoop -p {{PID}}`
|
||||
`sudo opensnoop -p {{pid}}`
|
||||
|
||||
- Track which processes open a specified file:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user