mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-11 15:47:26 +00:00
Update cheatsheets
This commit is contained in:
2
tldr/ack
2
tldr/ack
@@ -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
13
tldr/agg
Normal 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}}`
|
||||
@@ -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`
|
||||
|
||||
@@ -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
17
tldr/linux/termshark
Normal 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}}`
|
||||
@@ -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}}`
|
||||
|
||||
Reference in New Issue
Block a user