From ac5cd6d896a449f8ea6144c932d610781e373877 Mon Sep 17 00:00:00 2001 From: Marco Bonelli Date: Wed, 9 Jan 2019 00:12:18 +0100 Subject: [PATCH] brctl: add page. --- pages/common/id.md | 4 ++-- pages/common/kill.md | 8 ++------ pages/linux/brctl.md | 23 +++++++++++++++++++++++ 3 files changed, 27 insertions(+), 8 deletions(-) create mode 100644 pages/linux/brctl.md diff --git a/pages/common/id.md b/pages/common/id.md index 228d5cb69..c52620cf1 100644 --- a/pages/common/id.md +++ b/pages/common/id.md @@ -2,7 +2,7 @@ > 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` @@ -14,6 +14,6 @@ `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}}` diff --git a/pages/common/kill.md b/pages/common/kill.md index 6367c6a90..3e92f92d3 100644 --- a/pages/common/kill.md +++ b/pages/common/kill.md @@ -27,10 +27,6 @@ `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 every process that can be killed by the current user (except init and kill itself): - -`kill -9 -1` +`kill -{{SIGUSR1}} -{{group_id}}` diff --git a/pages/linux/brctl.md b/pages/linux/brctl.md new file mode 100644 index 000000000..60dec3177 --- /dev/null +++ b/pages/linux/brctl.md @@ -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}}`