mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-11 04:58:25 +00:00
Update cheatsheets
This commit is contained in:
@@ -11,16 +11,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run a specific command using the same namespaces as an existing process:
|
||||
|
||||
`nsenter --target {{pid}} --all {{command}} {{command_arguments}}`
|
||||
`nsenter {{[-t|--target]}} {{pid}} {{[-a|--all]}} {{command}} {{command_arguments}}`
|
||||
|
||||
- Run a specific command in an existing process's mount|UTS|IPC|network|PID|user|cgroup|time namespace:
|
||||
|
||||
`nsenter --target {{pid}} --{{mount|uts|ipc|net|pid|user|cgroup}} {{command}} {{command_arguments}}`
|
||||
`nsenter {{[-t|--target]}} {{pid}} --{{mount|uts|ipc|net|pid|user|cgroup}} {{command}} {{command_arguments}}`
|
||||
|
||||
- Run a specific command in an existing process's UTS, time, and IPC namespaces:
|
||||
|
||||
`nsenter --target {{pid}} --uts --time --ipc -- {{command}} {{command_arguments}}`
|
||||
`nsenter {{[-t|--target]}} {{pid}} {{[-u|--uts]}} {{[-T|--time]}} {{[-i|--ipc]}} -- {{command}} {{command_arguments}}`
|
||||
|
||||
- Run a specific command in an existing process's namespace by referencing procfs:
|
||||
|
||||
`nsenter --pid=/proc/{{pid}}/pid/net -- {{command}} {{command_arguments}}`
|
||||
`nsenter {{[-p|--pid=]}}/proc/{{pid}}/pid/net -- {{command}} {{command_arguments}}`
|
||||
|
||||
Reference in New Issue
Block a user