Update cheatsheets

This commit is contained in:
ivuorinen
2025-11-22 00:19:27 +00:00
parent 53eeb491f5
commit c756b5f689
4 changed files with 74 additions and 8 deletions

View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl list-machines
> List the host and all running local virtual machines or containers with their state.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#list-machines%20PATTERN%E2%80%A6>.
- Show all machines (host and running containers/VMs):
`systemctl list-machines`
- List a specific machine:
`systemctl list-machines {{machine}}`
- List multiple matching machines:
`systemctl list-machines {{machine_1 machine_2 ...}}`
- Filter machines using wildcard patterns ie, `shell-globbing`:
`systemctl list-machines {{pattern}}`

View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl list-paths
> List path units currently in memory, ordered by path.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#list-paths%20PATTERN%E2%80%A6>.
- Show all path units currently in memory:
`systemctl list-paths`
- List path units matching specific wildcard pattern ie, `shell-globbing`:
`systemctl list-paths {{pattern}}`
- List path units that match with multiple patterns:
`systemctl list-paths {{pattern_1 pattern_2 ...}}`
- Show all path units, including inactive ones:
`systemctl list-paths --all`
- Filter path units by state:
`systemctl list-paths --state {{state}}`
- Also show unit types in the output:
`systemctl list-paths --show-types`

View File

@@ -37,6 +37,6 @@ uclei-templates` on Windows):
`nuclei {{[-t|-templates]}} {{path/to/nuclei-templates/http}} {{[-u|-target]}} {{https://example.com}} {{[-v|-verbose]}} {{[-o|-output]}} {{path/to/results}}`
- Run a scan based on one or more template conditions:
- Use an AI prompt to dynamically generate a template to scan a target (projectdiscovery cloud pdcp API key needs to be configured using `nuclei -auth`):
`nuclei {{[-tc|-template-condition]}} "{{contains(tags, 'xss') && contains(tags, 'cve')}}" {{[-u|-target]}} {{https://example.com}}`
`nuclei {{[-u|-target]}} {{https://example.com}} {{[-ai|-prompt]}} "{{find admin login endpoints}}"`

View File

@@ -8,14 +8,22 @@ source: https://github.com/tldr-pages/tldr.git
> Cut out fields from `stdin` or files.
> More information: <https://keith.github.io/xcode-man-pages/cut.1.html>.
- Print a specific character/field range of each line:
- Print the fifth [c]haracter on each line:
`{{command}} | cut -{{c|f}} {{1|1,10|1-10|1-|-10}}`
`{{command}} | cut -c 5`
- Print a field range of each line with a specific delimiter:
- Print the fifth to tenth [c]haracter of each line of the specified file:
`{{command}} | cut -d "{{,}}" -f {{1}}`
`cut -c 5-10 {{path/to/file}}`
- Print a character range of each line of a specific file:
- Split each line in a file by a delimiter into fields and print [f]ields two and six (default delimiter is `TAB`):
`cut -c {{1}} {{path/to/file}}`
`cut -f 2,6 {{path/to/file}}`
- Split each line by the specified [d]elimiter and print all from the second [f]ield onward:
`{{command}} | cut -d "{{delimiter}}" -f 2-`
- Use space as a [d]elimiter and print only the first 3 [f]ields:
`{{command}} | cut -d " " -f -3`