mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 11:33:33 +02:00
dog, exa, fabric, fd, fzf, mosh, mtr, ranger, shred: add option placeholders and refresh more info link (#16824)
This commit is contained in:
parent
a2ee32a825
commit
2725415a27
9 changed files with 39 additions and 39 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
> DNS lookup utility.
|
||||
> It has colorful output, supports DNS-over-TLS and DNS-over-HTTPS protocols, and can emit JSON.
|
||||
> More information: <https://dns.lookup.dog>.
|
||||
> More information: <https://github.com/ogham/dog#examples>.
|
||||
|
||||
- Lookup the IP(s) associated with a hostname (A records):
|
||||
|
||||
|
@ -18,12 +18,12 @@
|
|||
|
||||
- Query over TCP rather than UDP:
|
||||
|
||||
`dog {{example.com}} MX @{{1.1.1.1}} --tcp`
|
||||
`dog {{example.com}} MX @{{1.1.1.1}} {{[-T|--tcp]}}`
|
||||
|
||||
- Query the MX records type associated with a given domain name over TCP using explicit arguments:
|
||||
|
||||
`dog --query {{example.com}} --type MX --nameserver {{1.1.1.1}} --tcp`
|
||||
`dog {{[-q|--query]}} {{example.com}} {{[-t|--type]}} MX {{[-n|--nameserver]}} {{1.1.1.1}} {{[-T|--tcp]}}`
|
||||
|
||||
- Lookup the IP(s) associated with a hostname (A records) using DNS over HTTPS (DoH):
|
||||
|
||||
`dog {{example.com}} --https @{{https://cloudflare-dns.com/dns-query}}`
|
||||
`dog {{example.com}} {{[-H|--https]}} @{{https://cloudflare-dns.com/dns-query}}`
|
||||
|
|
|
@ -1,35 +1,35 @@
|
|||
# exa
|
||||
|
||||
> A modern replacement for `ls` (List directory contents).
|
||||
> More information: <https://github.com/ogham/exa>.
|
||||
> More information: <https://github.com/ogham/exa#command-line-options>.
|
||||
|
||||
- List files one per line:
|
||||
|
||||
`exa --oneline`
|
||||
`exa {{[-1|--oneline]}}`
|
||||
|
||||
- List all files, including hidden files:
|
||||
|
||||
`exa --all`
|
||||
`exa {{[-a|--all]}}`
|
||||
|
||||
- Long format list (permissions, ownership, size and modification date) of all files:
|
||||
|
||||
`exa --long --all`
|
||||
`exa {{[-l|--long]}} {{[-a|--all]}}`
|
||||
|
||||
- List files with the largest at the top:
|
||||
|
||||
`exa --reverse --sort={{size}}`
|
||||
`exa {{[-r|--reverse]}} {{[-s|--sort]}} {{size}}`
|
||||
|
||||
- Display a tree of files, three levels deep:
|
||||
|
||||
`exa --long --tree --level={{3}}`
|
||||
`exa {{[-l|--long]}} {[[-T|--tree]}} {{[-L|--level]}} {{3}}`
|
||||
|
||||
- List files sorted by modification date (oldest first):
|
||||
|
||||
`exa --long --sort={{modified}}`
|
||||
`exa {{[-l|--long]}} {{[-s|--sort]}} {{modified}}`
|
||||
|
||||
- List files with their headers, icons, and Git statuses:
|
||||
|
||||
`exa --long --header --icons --git`
|
||||
`exa {{[-l|--long]}} {{[-h|--header]}} --icons --git`
|
||||
|
||||
- Don't list files mentioned in `.gitignore`:
|
||||
|
||||
|
|
|
@ -2,36 +2,36 @@
|
|||
|
||||
> An open-source framework for augmenting humans using AI.
|
||||
> Provides a modular framework for solving specific problems using a crowdsourced set of AI prompts.
|
||||
> More information: <https://github.com/danielmiessler/fabric>.
|
||||
> More information: <https://github.com/danielmiessler/fabric#usage>.
|
||||
|
||||
- Run the setup to configure fabric:
|
||||
|
||||
`fabric --setup`
|
||||
`fabric {{[-S|--setup]}}`
|
||||
|
||||
- List all available patterns:
|
||||
|
||||
`fabric --listpatterns`
|
||||
`fabric {{[-l|--listpatterns]}}`
|
||||
|
||||
- Run a pattern with input from a file:
|
||||
|
||||
`fabric --pattern {{pattern_name}} < {{path/to/input_file}}`
|
||||
`fabric {{[-p|--pattern]}} {{pattern_name}} < {{path/to/input_file}}`
|
||||
|
||||
- Run a pattern on a YouTube video URL:
|
||||
|
||||
`fabric --youtube "{{https://www.youtube.com/watch?v=video_id}}" --pattern {{pattern_name}}`
|
||||
`fabric {{[-y|--youtube]}} "{{https://www.youtube.com/watch?v=video_id}}" {{[-p|--pattern]}} {{pattern_name}}`
|
||||
|
||||
- Chain patterns together by piping output from one to another:
|
||||
|
||||
`fabric --pattern {{pattern1}} | fabric --pattern {{pattern2}}`
|
||||
`fabric {{[-p|--pattern]}} {{pattern1}} | fabric {{[-p|--pattern]}} {{pattern2}}`
|
||||
|
||||
- Run a custom user-defined pattern:
|
||||
|
||||
`fabric --pattern {{custom_pattern_name}}`
|
||||
`fabric {{[-p|--pattern]}} {{custom_pattern_name}}`
|
||||
|
||||
- Run a pattern and save the output to a file:
|
||||
|
||||
`fabric --pattern {{pattern_name}} --output {{path/to/output_file}}`
|
||||
`fabric {{[-p|--pattern]}} {{pattern_name}} {{[-o|--output]}} {{path/to/output_file}}`
|
||||
|
||||
- Run a pattern with the specified variables:
|
||||
|
||||
`fabric --pattern {{pattern_name}} --variable "{{variable_name}}:{{value}}"`
|
||||
`fabric {{[-p|--pattern]}} {{pattern_name}} {{[-v|--variable]}} "{{variable_name}}:{{value}}"`
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> An alternative to `find`.
|
||||
> Aims to be faster and easier to use than `find`.
|
||||
> More information: <https://github.com/sharkdp/fd>.
|
||||
> More information: <https://github.com/sharkdp/fd#how-to-use>.
|
||||
|
||||
- Recursively find files matching a specific pattern in the current directory:
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
|||
|
||||
- Find files with a specific extension:
|
||||
|
||||
`fd --extension {{txt}}`
|
||||
`fd {{[-e|--extension]}} {{txt}}`
|
||||
|
||||
- Find files in a specific directory:
|
||||
|
||||
|
@ -22,8 +22,8 @@
|
|||
|
||||
- Include ignored and hidden files in the search:
|
||||
|
||||
`fd --hidden --no-ignore "{{string|regex}}"`
|
||||
`fd {{[-H|--hidden]}} {{[-I|--no-ignore]}} "{{string|regex}}"`
|
||||
|
||||
- Execute a command on each search result returned:
|
||||
|
||||
`fd "{{string|regex}}" --exec {{command}}`
|
||||
`fd "{{string|regex}}" {{[-x|--exec]}} {{command}}`
|
||||
|
|
|
@ -14,16 +14,16 @@
|
|||
|
||||
- Select multiple files with `<Shift Tab>` and write to a file:
|
||||
|
||||
`find {{path/to/directory}} -type f | fzf --multi > {{path/to/file}}`
|
||||
`find {{path/to/directory}} -type f | fzf {{[-m|--multi]}} > {{path/to/file}}`
|
||||
|
||||
- Start `fzf` with a specified query:
|
||||
|
||||
`fzf --query "{{query}}"`
|
||||
`fzf {{[-q|--query]}} "{{query}}"`
|
||||
|
||||
- Start `fzf` on entries that start with core and end with either go, rb, or py:
|
||||
|
||||
`fzf --query "^core go$ | rb$ | py$"`
|
||||
`fzf {{[-q|--query]}} "^core go$ | rb$ | py$"`
|
||||
|
||||
- Start `fzf` on entries that not match pyc and match exactly travis:
|
||||
|
||||
`fzf --query "!pyc 'travis"`
|
||||
`fzf {{[-q|--query]}} "!pyc 'travis"`
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Mobile Shell (`mosh`) is a robust and responsive replacement for SSH.
|
||||
> `mosh` persists connections to remote servers while roaming between networks.
|
||||
> More information: <https://mosh.org>.
|
||||
> More information: <https://manned.org/mosh>.
|
||||
|
||||
- Connect to a remote server:
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# mtr
|
||||
|
||||
> Matt's Traceroute: combined traceroute and ping tool.
|
||||
> More information: <https://www.bitwizard.nl/mtr/>.
|
||||
> More information: <https://manned.org/mtr>.
|
||||
|
||||
- Traceroute to a host and continuously ping all intermediary hops:
|
||||
|
||||
|
@ -9,11 +9,11 @@
|
|||
|
||||
- Disable IP address and host name mapping:
|
||||
|
||||
`mtr --no-dns {{example.com}}`
|
||||
`mtr {{[-n|--no-dns]}} {{example.com}}`
|
||||
|
||||
- Generate output after pinging each hop 10 times:
|
||||
|
||||
`mtr --report-wide {{example.com}}`
|
||||
`mtr {{[-w|--report-wide]}} {{example.com}}`
|
||||
|
||||
- Force IP IPv4 or IPV6:
|
||||
|
||||
|
@ -21,12 +21,12 @@
|
|||
|
||||
- Wait for a given time (in seconds) before sending another packet to the same hop:
|
||||
|
||||
`mtr --interval {{10}} {{example.com}}`
|
||||
`mtr {{[-i|--interval]}} {{10}} {{example.com}}`
|
||||
|
||||
- Display the Autonomous System Number (ASN) for each hop:
|
||||
|
||||
`mtr --aslookup {{example.com}}`
|
||||
`mtr {{[-z|--aslookup]}} {{example.com}}`
|
||||
|
||||
- Display both IP address and reverse DNS name:
|
||||
|
||||
`mtr --show-ips {{example.com}}`
|
||||
`mtr {{[-b|--show-ips]}} {{example.com}}`
|
||||
|
|
|
@ -14,11 +14,11 @@
|
|||
|
||||
- Change the configuration directory:
|
||||
|
||||
`ranger --confdir={{path/to/directory}}`
|
||||
`ranger {{[-r|--confdir]}} {{path/to/directory}}`
|
||||
|
||||
- Change the data directory:
|
||||
|
||||
`ranger --datadir={{path/to/directory}}`
|
||||
`ranger --datadir {{path/to/directory}}`
|
||||
|
||||
- Print CPU usage statistics on exit:
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
- Overwrite a file and remove it:
|
||||
|
||||
`shred --remove {{path/to/file}}`
|
||||
`shred {{[-u|--remove]}} {{path/to/file}}`
|
||||
|
||||
- Overwrite a file 100 times, add a final overwrite with zeros, remove the file after overwriting it and show verbose progress on the screen:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue