Update cheatsheets

This commit is contained in:
ivuorinen
2025-02-07 00:17:34 +00:00
parent efdf464901
commit c8986586ce
16 changed files with 308 additions and 11 deletions

17
tldr/linux/bwrap Normal file
View 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
View 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
View 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
View 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`

View File

@@ -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}}`