Update cheatsheets

This commit is contained in:
ivuorinen
2025-06-14 00:19:47 +00:00
parent d60c0b1b4b
commit ae37c90b9f
6 changed files with 39 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
- Search for lines matching a pattern, printing only the matched text and not the rest of the line:
`ack {{[-o|--output='$&']}} "{{search_pattern}}"`
`ack {{[-o|--output '$&']}} "{{search_pattern}}"`
- Limit search to files of a specific type:

13
tldr/agg Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# agg
> Create a GIF from an `asciinema` terminal session recording.
> More information: <https://docs.asciinema.org/manual/agg/usage/>.
- Create a GIF:
`agg {{path/to/demo.cast}} {{path/to/demo.gif}}`

View File

@@ -22,8 +22,8 @@ source: https://github.com/tldr-pages/tldr.git
- Run `aspell` with a different language (takes two-letter ISO 639 language code):
`aspell --lang={{cs}}`
`aspell --lang {{cs}}`
- List misspelled words from `stdin` and ignore words from personal word list:
`cat {{path/to/file}} | aspell --personal={{personal-word-list.pws}} list`
`cat {{path/to/file}} | aspell --personal {{personal-word-list.pws}} list`

View File

@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run a Chisel server listening to a specific port:
`chisel server -p {{server_port}}`
`chisel server {{[-p|--port]}} {{server_port}}`
- Run a chisel server that accepts authenticated connections using username and password:
@@ -35,7 +35,7 @@ source: https://github.com/tldr-pages/tldr.git
- Initialize a Chisel server in reverse mode on a specific port, also enabling SOCKS5 proxy (on port 1080) functionality:
`chisel server -p {{server_port}} --reverse --socks5`
`chisel server {{[-p|--port]}} {{server_port}} --reverse --socks5`
- Connect to a Chisel server at specific IP and port, creating a reverse tunnel mapped to a local SOCKS proxy:

17
tldr/linux/termshark Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# termshark
> Terminal UI for `tshark`, but looks more like `wireshark`.
> More information: <https://github.com/gcla/termshark/blob/master/docs/UserGuide.md>.
- Monitor the default network interface:
`sudo termshark`
- Specify the interface to monitor:
`sudo termshark {{interface}}`

View File

@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
- Set the files' timestamp to the reference file's timestamp, and do not create the file if it does not exist:
`touch {{[-c|--no-create]}} {{[-r|--reference]}} {{path/to/reference_file}} {{path/to/file1 path/to/file2 ...}}`
- Set the timestamp by parsing a string:
`touch {{[-d|--date]}} "{{last year|5 hours|next thursday|nov 14|...}}" {{path/to/file}}`