Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brctl: add page; id, history, kill: add examples; kill: fix a typo #2691

Merged
merged 6 commits into from
Jan 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pages/common/history.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@
- Overwrite history file with history of current `bash` shell (often combined with `history -c` to purge history):

`history -w`

- Delete the history entry at the specified offset:
sbrl marked this conversation as resolved.
Show resolved Hide resolved

`history -d {{offset}}`
8 changes: 8 additions & 0 deletions pages/common/id.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@

> Display current user and group identity.

- Display current user's id (UID), group id (GID) and groups to which they belong:

`id`

- Display the current user identity as a number:

`id -u`

- Display the current group identity as a number:

`id -g`

- Display an arbitrary user's id (UID), group id (GID) and groups to which they belong:

`id {{username}}`
6 changes: 5 additions & 1 deletion pages/common/kill.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@

`kill -{{9|KILL}} {{process_id}}`

- Signal the operating system to pause a program, it until a SIGCONT ("continue") signal is received:
- Signal the operating system to pause a program until a SIGCONT ("continue") signal is received:

`kill -{{17|STOP}} {{process_id}}`

- Send a `SIGUSR1` signal to all processes with the given GID (group id):

`kill -{{SIGUSR1}} -{{group_id}}`
sbrl marked this conversation as resolved.
Show resolved Hide resolved
23 changes: 23 additions & 0 deletions pages/linux/brctl.md
Original file line number Diff line number Diff line change
@@ -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}}`