mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-01 03:42:17 +00:00
Update cheatsheets
This commit is contained in:
@@ -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`
|
||||
|
||||
4
tldr/mv
4
tldr/mv
@@ -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}}`
|
||||
|
||||
@@ -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):
|
||||
|
||||
|
||||
@@ -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|...}}`
|
||||
|
||||
Reference in New Issue
Block a user