Update cheatsheets

This commit is contained in:
ivuorinen
2024-08-05 00:16:08 +00:00
parent 680f252b67
commit 06b7c53756
4 changed files with 9 additions and 5 deletions

View File

@@ -29,6 +29,6 @@ source: https://github.com/tldr-pages/tldr.git
`doppler secrets`
- Open doppler dashboard in browser:
- Open Doppler dashboard in browser:
`doppler open`

View File

@@ -35,3 +35,7 @@ source: https://github.com/tldr-pages/tldr.git
- Move files in verbose mode, showing files after they are moved:
`mv -v {{path/to/source}} {{path/to/target}}`
- Specify target directory (convenient in situations when the target directory has to be the first argument):
`ls | {{parallel|xargs}} mv -t {{path/to/target_directory}}`

View File

@@ -17,9 +17,9 @@ source: https://github.com/tldr-pages/tldr.git
`nmap -T5 -sn {{192.168.0.0/24|ip_or_hostname1,ip_or_hostname2,...}}`
- Enable OS detection, version detection, script scanning, and traceroute:
- Enable OS detection, version detection, script scanning, and traceroute of hosts from a file:
`sudo nmap -A {{ip_or_hostname1,ip_or_hostname2,...}}`
`sudo nmap -A -iL {{path/to/file.txt}}`
- Scan a specific list of ports (use `-p-` for all ports from 1 to 65535):

View File

@@ -16,6 +16,6 @@ source: https://github.com/tldr-pages/tldr.git
`read -r {{variable}}`
- Read `stdin` and perform an action on every line:
- Read `stdin` or file and perform an action on every line:
`while read line; do echo "$line"; done`
`while read line; do {{echo|ls|rm|...}} "$line"; done < {{/dev/stdin|path/to/file|...}}`