Skip to content

Commit 9297206

Browse files
linux/*: expand pid name placeholders (tldr-pages#23808)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
1 parent 7a465a8 commit 9297206

19 files changed

Lines changed: 39 additions & 39 deletions

pages/linux/apport-bug.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717

1818
- Report a bug about a specific process:
1919

20-
`apport-bug {{pid}}`
20+
`apport-bug {{process_id}}`

pages/linux/choom.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
66
- Display the OOM-killer score of the process with a specific ID:
77

8-
`choom {{[-p|--pid]}} {{pid}}`
8+
`choom {{[-p|--pid]}} {{process_id}}`
99

1010
- Change the adjust OOM-killer score of a specific process:
1111

12-
`choom {{[-p|--pid]}} {{pid}} {{[-n|--adjust]}} {{-1000..+1000}}`
12+
`choom {{[-p|--pid]}} {{process_id}} {{[-n|--adjust]}} {{-1000..+1000}}`
1313

1414
- Run a command with a specific adjust OOM-killer score:
1515

pages/linux/chrt.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
66
- Display attributes of a process:
77

8-
`chrt {{[-p|--pid]}} {{pid}}`
8+
`chrt {{[-p|--pid]}} {{process_id}}`
99

1010
- Display attributes of all threads of a process:
1111

12-
`chrt {{[-a|--all-tasks]}} {{[-p|--pid]}} {{pid}}`
12+
`chrt {{[-a|--all-tasks]}} {{[-p|--pid]}} {{process_id}}`
1313

1414
- Display the min/max priority values that can be used with `chrt`:
1515

1616
`chrt {{[-m|--max]}}`
1717

1818
- Set the scheduling priority of a process:
1919

20-
`chrt {{[-p|--pid]}} {{priority}} {{pid}}`
20+
`chrt {{[-p|--pid]}} {{priority}} {{process_id}}`
2121

2222
- Set the scheduling policy of a process:
2323

24-
`chrt --{{deadline|idle|batch|rr|fifo|other}} {{[-p|--pid]}} {{priority}} {{pid}}`
24+
`chrt --{{deadline|idle|batch|rr|fifo|other}} {{[-p|--pid]}} {{priority}} {{process_id}}`

pages/linux/ionice.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919

2020
- Ignore failure to set the requested priority:
2121

22-
`ionice {{[-t|--ignore]}} {{[-n|--classdata]}} {{priority}} {{[-p|--pid]}} {{pid}}`
22+
`ionice {{[-t|--ignore]}} {{[-n|--classdata]}} {{priority}} {{[-p|--pid]}} {{process_id}}`
2323

2424
- Run the command even in case it was not possible to set the desired priority (this can happen due to insufficient privileges or an old kernel version):
2525

26-
`ionice {{[-t|--ignore]}} {{[-n|--classdata]}} {{priority}} {{[-p|--pid]}} {{pid}}`
26+
`ionice {{[-t|--ignore]}} {{[-n|--classdata]}} {{priority}} {{[-p|--pid]}} {{process_id}}`
2727

2828
- Print the I/O scheduling class and priority of a running process:
2929

30-
`ionice {{[-p|--pid]}} {{pid}}`
30+
`ionice {{[-p|--pid]}} {{process_id}}`

pages/linux/journalctl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
- Show all messages by a specific process:
2828

29-
`journalctl _PID={{pid}}`
29+
`journalctl _PID={{process_id}}`
3030

3131
- Show all messages by a specific executable:
3232

pages/linux/lsns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
- List namespaces associated with the specified process:
1515

16-
`lsns {{[-p|--task]}} {{pid}}`
16+
`lsns {{[-p|--task]}} {{process_id}}`
1717

1818
- List the specified type of namespaces only:
1919

pages/linux/nsenter.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
77
- Run a specific command using the same namespaces as an existing process:
88

9-
`nsenter {{[-t|--target]}} {{pid}} {{[-a|--all]}} {{command}} {{command_arguments}}`
9+
`nsenter {{[-t|--target]}} {{process_id}} {{[-a|--all]}} {{command}} {{command_arguments}}`
1010

1111
- Run a specific command in an existing process's mount|UTS|IPC|network|PID|user|cgroup|time namespace:
1212

13-
`nsenter {{[-t|--target]}} {{pid}} --{{mount|uts|ipc|net|pid|user|cgroup}} {{command}} {{command_arguments}}`
13+
`nsenter {{[-t|--target]}} {{process_id}} --{{mount|uts|ipc|net|pid|user|cgroup}} {{command}} {{command_arguments}}`
1414

1515
- Run a specific command in an existing process's UTS, time, and IPC namespaces:
1616

17-
`nsenter {{[-t|--target]}} {{pid}} {{[-u|--uts]}} {{[-T|--time]}} {{[-i|--ipc]}} -- {{command}} {{command_arguments}}`
17+
`nsenter {{[-t|--target]}} {{process_id}} {{[-u|--uts]}} {{[-T|--time]}} {{[-i|--ipc]}} -- {{command}} {{command_arguments}}`
1818

1919
- Run a specific command in an existing process's namespace by referencing procfs:
2020

21-
`nsenter {{[-p|--pid=]}}/proc/{{pid}}/pid/net -- {{command}} {{command_arguments}}`
21+
`nsenter {{[-p|--pid=]}}/proc/{{process_id}}/pid/net -- {{command}} {{command_arguments}}`

pages/linux/perf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
- Record the profile of an existing process into `perf.data`:
1919

20-
`sudo perf record {{[-p|--pid]}} {{pid}}`
20+
`sudo perf record {{[-p|--pid]}} {{process_id}}`
2121

2222
- Read `perf.data` (created by `perf record`) and display the profile:
2323

pages/linux/pidstat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
- Show information on a specific PID:
1919

20-
`pidstat -p {{pid}}`
20+
`pidstat -p {{process_id}}`
2121

2222
- Show memory statistics for all processes whose command name include "fox" or "bird":
2323

pages/linux/pmap.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
66
- Print memory map for a specific process ID (PID):
77

8-
`pmap {{pid}}`
8+
`pmap {{process_id}}`
99

1010
- Show the extended format:
1111

12-
`pmap --extended {{pid}}`
12+
`pmap --extended {{process_id}}`
1313

1414
- Show the device format:
1515

16-
`pmap --device {{pid}}`
16+
`pmap --device {{process_id}}`
1717

1818
- Limit results to a memory address range specified by `low` and `high`:
1919

2020
`pmap --range {{low}},{{high}}`
2121

2222
- Print memory maps for multiple processes:
2323

24-
`pmap {{pid1 pid2 ...}}`
24+
`pmap {{process_id1 process_id2 ...}}`

0 commit comments

Comments
 (0)