mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-07 16:26:02 +02:00
brctl: add page.
This commit is contained in:
parent
ddd40bc650
commit
ac5cd6d896
3 changed files with 27 additions and 8 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
> Display current user and group identity.
|
> Display current user and group identity.
|
||||||
|
|
||||||
- Display current user id (UID), group id (GID) and groups of which you are a member:
|
- Display current user id (UID), group id (GID) and groups to which they belong:
|
||||||
|
|
||||||
`id`
|
`id`
|
||||||
|
|
||||||
|
@ -14,6 +14,6 @@
|
||||||
|
|
||||||
`id -g`
|
`id -g`
|
||||||
|
|
||||||
- Display an arbitrary user's id (UID), group id (GID) and groups of which they are a member:
|
- Display an arbitrary user's id (UID), group id (GID) and groups to which they belong:
|
||||||
|
|
||||||
`id {{username}}`
|
`id {{username}}`
|
||||||
|
|
|
@ -27,10 +27,6 @@
|
||||||
|
|
||||||
`kill -{{17|STOP}} {{process_id}}`
|
`kill -{{17|STOP}} {{process_id}}`
|
||||||
|
|
||||||
- Send a signal to all processes with the given GID (group id):
|
- Send a `SIGUSR1` signal to all processes with the given GID (group id):
|
||||||
|
|
||||||
`kill -{{signal_name}} -{{group_id}}`
|
`kill -{{SIGUSR1}} -{{group_id}}`
|
||||||
|
|
||||||
- Kill every process that can be killed by the current user (except init and kill itself):
|
|
||||||
|
|
||||||
`kill -9 -1`
|
|
||||||
|
|
23
pages/linux/brctl.md
Normal file
23
pages/linux/brctl.md
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# brctl
|
||||||
|
|
||||||
|
> Ethernet bridge administration.
|
||||||
|
|
||||||
|
- Show a list with information about currently existing ethernet bridges:
|
||||||
|
|
||||||
|
`sudo brctl show`
|
||||||
|
|
||||||
|
- Create a new ethernet bridge interface:
|
||||||
|
|
||||||
|
`sudo brctl add {{bridge_name}}`
|
||||||
|
|
||||||
|
- Delete an existing ethernet bridge interface:
|
||||||
|
|
||||||
|
`sudo brctl del {{bridge_name}}`
|
||||||
|
|
||||||
|
- Add an interface to an existing bridge:
|
||||||
|
|
||||||
|
`sudo brctl addif {{bridge_name}} {{interface_name}}`
|
||||||
|
|
||||||
|
- Remove an interface from an existing bridge:
|
||||||
|
|
||||||
|
`sudo brctl delif {{bridge_name}} {{interface_name}}`
|
Loading…
Add table
Reference in a new issue