diff --git a/tldr/linux/systemctl-list-machines b/tldr/linux/systemctl-list-machines new file mode 100644 index 00000000..e1e4fbf1 --- /dev/null +++ b/tldr/linux/systemctl-list-machines @@ -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: . + +- 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}}` diff --git a/tldr/linux/systemctl-list-paths b/tldr/linux/systemctl-list-paths new file mode 100644 index 00000000..c4484e34 --- /dev/null +++ b/tldr/linux/systemctl-list-paths @@ -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: . + +- 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` diff --git a/tldr/nuclei b/tldr/nuclei index 95fcb377..22a9df9a 100644 --- a/tldr/nuclei +++ b/tldr/nuclei @@ -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}}"` diff --git a/tldr/osx/cut b/tldr/osx/cut index 53e38e39..9aabda1d 100644 --- a/tldr/osx/cut +++ b/tldr/osx/cut @@ -8,14 +8,22 @@ source: https://github.com/tldr-pages/tldr.git > Cut out fields from `stdin` or files. > More information: . -- 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`