Update cheatsheets

This commit is contained in:
ivuorinen
2024-08-24 00:14:54 +00:00
parent ec4def1435
commit faba405aa7
3 changed files with 83 additions and 0 deletions

34
tldr/ipscan Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ipscan
> A fast network scanner designed to be simple to use.
> Also known as Angry IP Scanner.
> More information: <https://angryip.org/>.
- Scan a specific IP address:
`ipscan {{192.168.0.1}}`
- Scan a range of IP addresses:
`ipscan {{192.168.0.1-254}}`
- Scan a range of IP addresses and save the results to a file:
`ipscan {{192.168.0.1-254}} -o {{path/to/output.txt}}`
- Scan IPs with a specific set of ports:
`ipscan {{192.168.0.1-254}} -p {{80,443,22}}`
- Scan with a delay between requests to avoid network congestion:
`ipscan {{192.168.0.1-254}} -d {{200}}`
- Display help:
`ipscan --help`

41
tldr/linux/pacgraph Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pacgraph
> Draw a graph of installed packages to PNG/SVG/GUI/console.
> More information: <https://github.com/keenerd/pacgraph>.
- Produce an SVG and PNG graph:
`pacgraph`
- Produce an SVG graph:
`pacgraph --svg`
- Print summary to console:
`pacgraph --console`
- Override the default filename/location (Note: Do not specify the file extension):
`pacgraph --file={{path/to/file}}`
- Change the color of packages that are not dependencies:
`pacgraph --top={{color}}`
- Change the color of package dependencies:
`pacgraph --dep={{color}}`
- Change the background color of a graph:
`pacgraph --background={{color}}`
- Change the color of links between packages:
`pacgraph --link={{color}}`

View File

@@ -11,3 +11,11 @@ source: https://github.com/tldr-pages/tldr.git
- Create a named pipe at a given path:
`mkfifo {{path/to/pipe}}`
- Send data through a named pipe and send the command to the background:
`echo {{"Hello World"}} > {{path/to/pipe}} &`
- Receive data through a named pipe:
`cat {{path/to/pipe}}`