mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-15 16:48:53 +00:00
Update cheatsheets
This commit is contained in:
17
tldr/linux/bwrap
Normal file
17
tldr/linux/bwrap
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bwrap
|
||||
|
||||
> Run programs in a lightweight sandbox.
|
||||
> More information: <https://manned.org/bwrap>.
|
||||
|
||||
- Run a program in a read-only environment:
|
||||
|
||||
`bwrap --ro-bind / / {{/bin/bash}}`
|
||||
|
||||
- Give the environment access to devices, process information and create a `tmpfs` for it:
|
||||
|
||||
`bwrap --dev-bind /dev /dev --proc /proc --ro-bind / / --tmpfs /tmp {{/bin/bash}}`
|
||||
21
tldr/linux/eglinfo
Normal file
21
tldr/linux/eglinfo
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# eglinfo
|
||||
|
||||
> Display platform EGL information.
|
||||
> More information: <https://github.com/dv1/eglinfo>.
|
||||
|
||||
- Display full platform information:
|
||||
|
||||
`eglinfo`
|
||||
|
||||
- Display a brief version of platform information:
|
||||
|
||||
`eglinfo -B`
|
||||
|
||||
- Display help:
|
||||
|
||||
`eglinfo -h`
|
||||
13
tldr/linux/ifstatus
Normal file
13
tldr/linux/ifstatus
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ifstatus
|
||||
|
||||
> Display OpenWRT interface status in JSON format.
|
||||
> More information: <https://openwrt.org/docs/techref/netifd>.
|
||||
|
||||
- Display interface status:
|
||||
|
||||
`ifstatus {{interface_name}}`
|
||||
25
tldr/linux/logread
Normal file
25
tldr/linux/logread
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# logread
|
||||
|
||||
> Read the `logd` ring buffer log.
|
||||
> More information: <https://openwrt.org/docs/guide-user/base-system/log.essentials>.
|
||||
|
||||
- Print the log:
|
||||
|
||||
`logread`
|
||||
|
||||
- Print a specified number of messages:
|
||||
|
||||
`logread -l {{N}}`
|
||||
|
||||
- Filter messages by (Keyword/Regular Expression):
|
||||
|
||||
`logread -e {{pattern}}`
|
||||
|
||||
- Print log messages as they happen:
|
||||
|
||||
`logread -f`
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List the commands and the names of the expected events:
|
||||
|
||||
`trap -p`
|
||||
`trap`
|
||||
|
||||
- Execute a command when a signal is received:
|
||||
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Remove commands:
|
||||
|
||||
`trap - {{SIGHUP}} {{SIGINT}}`
|
||||
|
||||
- Ignore a signal:
|
||||
|
||||
`trap '' {{SIGINT}}`
|
||||
|
||||
Reference in New Issue
Block a user