Update cheatsheets

This commit is contained in:
ivuorinen
2026-01-11 00:24:43 +00:00
parent 5ad1f5ce60
commit 66b30baed4
12 changed files with 252 additions and 19 deletions

29
tldr/arjun Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# arjun
> Discover HTTP parameters for web applications.
> More information: <https://github.com/s0md3v/Arjun/wiki/Usage>.
- Scan a URL for GET parameters:
`arjun -u {{https://example.com/page.php}}`
- Scan using POST method:
`arjun -u {{https://example.com/api}} -m POST`
- Save discovered parameters to a JSON file:
`arjun -u {{https://example.com}} -o {{path/to/output.json}}`
- Use a custom wordlist:
`arjun -u {{https://example.com}} -w {{path/to/wordlist.txt}}`
- Increase request delay by specific amount of seconds to avoid rate limiting:
`arjun -u {{https://example.com}} -d {{2}}`

View File

@@ -10,32 +10,32 @@ source: https://github.com/tldr-pages/tldr.git
- Find files by extension:
`bfs {{root_path}} -name '{{*.ext}}'`
`bfs {{path/to/directory}} -name '{{*.ext}}'`
- Find files matching multiple path/name patterns:
`bfs {{root_path}} -path '{{**/path/**/*.ext}}' -or -name '{{*pattern*}}'`
`bfs {{path/to/directory}} -path '{{**/path/**/*.ext}}' -or -name '{{*pattern*}}'`
- Find directories matching a given name, in case-insensitive mode:
`bfs {{root_path}} -type d -iname '{{*lib*}}'`
`bfs {{path/to/directory}} -type d -iname '{{*lib*}}'`
- Find files matching a given pattern, excluding specific paths:
`bfs {{root_path}} -name '{{*.py}}' -not -path '{{*/site-packages/*}}'`
`bfs {{path/to/directory}} -name '{{*.py}}' -not -path '{{*/site-packages/*}}'`
- Find files matching a given size range, limiting the recursive depth to "1":
`bfs {{root_path}} -maxdepth 1 -size {{+500k}} -size {{-10M}}`
`bfs {{path/to/directory}} -maxdepth 1 -size {{+500k}} -size {{-10M}}`
- Run a command for each file (use `{}` within the command to access the filename):
`bfs {{root_path}} -name '{{*.ext}}' -exec {{wc -l}} {} \;`
`bfs {{path/to/directory}} -name '{{*.ext}}' -exec {{wc -l}} {} \;`
- Find all files modified today and pass the results to a single command as arguments:
`bfs {{root_path}} -daystart -mtime {{-1}} -exec {{tar -cvf archive.tar}} {} \+`
`bfs {{path/to/directory}} -daystart -mtime {{-1}} -exec {{tar -cvf archive.tar}} {} \+`
- Find empty files (0 byte) or directories and delete them verbosely:
`bfs {{root_path}} -type {{f|d}} -empty -delete -print`
`bfs {{path/to/directory}} -type {{f|d}} -empty -delete -print`

View File

@@ -11,32 +11,32 @@ source: https://github.com/tldr-pages/tldr.git
- Find files by extension:
`find {{root_path}} -name '{{*.ext}}'`
`find {{path/to/directory}} -name '{{*.ext}}'`
- Find files matching multiple path/name patterns:
`find {{root_path}} -path '{{*/path/*/*.ext}}' -or -name '{{*pattern*}}'`
`find {{path/to/directory}} -path '{{*/path/*/*.ext}}' -or -name '{{*pattern*}}'`
- Find directories matching a given name, in case-insensitive mode:
`find {{root_path}} -type d -iname '{{*lib*}}'`
`find {{path/to/directory}} -type d -iname '{{*lib*}}'`
- Find files matching a given pattern, excluding specific paths:
`find {{root_path}} -name '{{*.py}}' -not -path '{{*/site-packages/*}}'`
`find {{path/to/directory}} -name '{{*.py}}' -not -path '{{*/site-packages/*}}'`
- Find files matching a given size range, limiting the recursive depth to "1":
`find {{root_path}} -maxdepth 1 -size {{+500k}} -size {{-10M}}`
`find {{path/to/directory}} -maxdepth 1 -size {{+500k}} -size {{-10M}}`
- Run a command for each file (use `{}` within the command to access the filename):
`find {{root_path}} -name '{{*.ext}}' -exec {{wc -l}} {} \;`
`find {{path/to/directory}} -name '{{*.ext}}' -exec {{wc -l}} {} \;`
- Find all files modified today and pass the results to a single command as arguments:
`find {{root_path}} -daystart -mtime {{-1}} -exec {{tar -cvf archive.tar}} {} \+`
`find {{path/to/directory}} -daystart -mtime {{-1}} -exec {{tar -cvf archive.tar}} {} \+`
- Search for either empty files or directories and delete them verbosely:
`find {{root_path}} -type {{f|d}} -empty -delete -print`
`find {{path/to/directory}} -type {{f|d}} -empty -delete -print`

View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# apptainer search
> Search a Container Library for container images.
> More information: <https://apptainer.org/docs/user/main/cli/apptainer_search.html>.
- Search for container images matching a query:
`apptainer search {{query}}`
- Search for container images for a specific architecture:
`apptainer search --arch {{amd64|arm64|386|ppc64le|s390x}} {{query}}`
- Search for only signed container images:
`apptainer search --signed {{query}}`
- Search in a specific Container Library:
`apptainer search --library {{library_url}} {{query}}`
- Display help:
`apptainer search {{[-h|--help]}}`

33
tldr/linux/apptainer-sign Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# apptainer sign
> Add digital signatures to a SIF container image.
> More information: <https://apptainer.org/docs/user/main/cli/apptainer_sign.html>.
- Sign a container image using the default PGP key:
`apptainer sign {{path/to/image.sif}}`
- Sign a container image using a specific private key file:
`apptainer sign --key {{path/to/private.pem}} {{path/to/image.sif}}`
- Sign a container image using a specific PGP key index:
`apptainer sign {{[-k|--keyidx]}} {{key_index}} {{path/to/image.sif}}`
- Sign a specific object group within the image:
`apptainer sign {{[-g|--group-id]}} {{group_id}} {{path/to/image.sif}}`
- Sign a specific object by ID within the image:
`apptainer sign {{[-i|--sif-id]}} {{object_id}} {{path/to/image.sif}}`
- Display help:
`apptainer sign {{[-h|--help]}}`

View File

@@ -28,3 +28,7 @@ source: https://github.com/tldr-pages/tldr.git
- Send a file to the trash (reversible):
`gio trash {{path/to/file}}`
- Launch an application from a `.desktop` file:
`gio launch {{path/to/file}}.desktop`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# systemctl mask
> Link units to `/dev/null` so that they can be even started.
> Link units to `/dev/null` so that they cannot be started.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#mask%20UNIT%E2%80%A6>.
- Mask a service:

34
tldr/massdns Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# massdns
> Resolve DNS records in bulk with high performance for reconnaissance.
> See also: `dig`, `dnsx`.
> More information: <https://github.com/blechschmidt/massdns#usage>.
- Resolve `A` records for domains in a file using specified resolvers:
`massdns {{[-r|--resolvers]}} {{path/to/resolvers.txt}} {{path/to/domains.txt}}`
- Resolve a specific record type and write results to a file:
`massdns {{[-r|--resolvers]}} {{path/to/resolvers.txt}} {{[-t|--type]}} {{A|AAAA|NS|MX|TXT}} {{[-w|--outfile]}} {{path/to/output.txt}} {{path/to/domains.txt}}`
- Resolve domains with simple text output format:
`massdns {{[-r|--resolvers]}} {{path/to/resolvers.txt}} {{[-o|--output]}} S {{path/to/domains.txt}}`
- Resolve domains with JSON output format:
`massdns {{[-r|--resolvers]}} {{path/to/resolvers.txt}} {{[-o|--output]}} J {{path/to/domains.txt}}`
- Resolve domains with a custom number of concurrent lookups:
`massdns {{[-r|--resolvers]}} {{path/to/resolvers.txt}} {{[-s|--hashmap-size]}} {{10000}} {{path/to/domains.txt}}`
- Resolve domains in quiet mode, suppressing status output:
`massdns {{[-r|--resolvers]}} {{path/to/resolvers.txt}} {{[-q|--quiet]}} {{path/to/domains.txt}}`

View File

@@ -12,11 +12,11 @@ source: https://github.com/tldr-pages/tldr.git
`npm completion`
- Add completion to your shell profile (Bash):
- Add completion to the shell profile (Bash):
`npm completion >> ~/.bashrc`
- Add completion to your shell profile (Zsh):
- Add completion to the shell profile (Zsh):
`npm completion >> ~/.zshrc`

33
tldr/showmount Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# showmount
> Display mount information for an NFS server.
> More information: <https://manned.org/showmount>.
- Show clients currently mounting from the server:
`showmount {{hostname}}`
- Show the NFS server's export list:
`showmount {{[-e|--exports]}} {{hostname}}`
- Show all clients and their mounted directories:
`showmount {{[-a|--all]}} {{hostname}}`
- Show only the directories mounted by clients:
`showmount {{[-d|--directories]}} {{hostname}}`
- Show the export list without headers:
`showmount {{[-e|--exports]}} --no-headers {{hostname}}`
- Display help:
`showmount {{[-h|--help]}}`

34
tldr/sipcalc Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# sipcalc
> Calculate IP subnet information for IPv4 and IPv6 addresses.
> See also: `ipcalc`.
> More information: <https://manned.org/sipcalc>.
- Display subnet information for an IPv4 CIDR address:
`sipcalc {{192.168.1.0/24}}`
- Display all available information for an address:
`sipcalc {{[-a|--all]}} {{192.168.1.0/24}}`
- Split an IPv4 network into subnets of a specified mask:
`sipcalc {{[-s|--v4split]}} {{255.255.255.128}} {{192.168.1.0/24}}`
- Display IPv6 reverse DNS information:
`sipcalc {{[-r|--v6rev]}} {{2001:db8::/32}}`
- Enable DNS name resolution:
`sipcalc {{[-d|--resolve]}} {{192.168.1.0/24}}`
- Display help:
`sipcalc {{[-h|--help]}}`

37
tldr/squid Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# squid
> Cache and forward HTTP requests through a proxy server.
> More information: <https://manned.org/squid>.
- Start Squid in the background:
`sudo squid`
- Start Squid in the foreground:
`sudo squid -N`
- Start Squid with a specific configuration file:
`sudo squid -f {{path/to/squid.conf}}`
- Test the configuration file for errors:
`sudo squid -k parse`
- Reload the configuration file:
`sudo squid -k reconfigure`
- Shut down Squid gracefully:
`sudo squid -k shutdown`
- Rotate the log files:
`sudo squid -k rotate`