From 2725415a278b117a8f42bed6f6361acda8fc0d9f Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Thu, 12 Jun 2025 14:28:24 +0300 Subject: [PATCH] dog, exa, fabric, fd, fzf, mosh, mtr, ranger, shred: add option placeholders and refresh more info link (#16824) --- pages/common/dog.md | 8 ++++---- pages/common/exa.md | 16 ++++++++-------- pages/common/fabric.md | 18 +++++++++--------- pages/common/fd.md | 8 ++++---- pages/common/fzf.md | 8 ++++---- pages/common/mosh.md | 2 +- pages/common/mtr.md | 12 ++++++------ pages/common/ranger.md | 4 ++-- pages/common/shred.md | 2 +- 9 files changed, 39 insertions(+), 39 deletions(-) diff --git a/pages/common/dog.md b/pages/common/dog.md index 1d3b478d14..0e4dd9193b 100644 --- a/pages/common/dog.md +++ b/pages/common/dog.md @@ -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: . +> More information: . - 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}}` diff --git a/pages/common/exa.md b/pages/common/exa.md index 69f52e25cc..2ca0f2b604 100644 --- a/pages/common/exa.md +++ b/pages/common/exa.md @@ -1,35 +1,35 @@ # exa > A modern replacement for `ls` (List directory contents). -> More information: . +> More information: . - 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`: diff --git a/pages/common/fabric.md b/pages/common/fabric.md index 6e7ebdc7ae..e24e8d3319 100644 --- a/pages/common/fabric.md +++ b/pages/common/fabric.md @@ -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: . +> More information: . - 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}}"` diff --git a/pages/common/fd.md b/pages/common/fd.md index 1cdbbd5240..a2106b7a83 100644 --- a/pages/common/fd.md +++ b/pages/common/fd.md @@ -2,7 +2,7 @@ > An alternative to `find`. > Aims to be faster and easier to use than `find`. -> More information: . +> More information: . - 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}}` diff --git a/pages/common/fzf.md b/pages/common/fzf.md index 9b21616559..f93eed3fd6 100644 --- a/pages/common/fzf.md +++ b/pages/common/fzf.md @@ -14,16 +14,16 @@ - Select multiple files with `` 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"` diff --git a/pages/common/mosh.md b/pages/common/mosh.md index f0f853e76f..961045e159 100644 --- a/pages/common/mosh.md +++ b/pages/common/mosh.md @@ -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: . +> More information: . - Connect to a remote server: diff --git a/pages/common/mtr.md b/pages/common/mtr.md index f018d9eccb..99c743e624 100644 --- a/pages/common/mtr.md +++ b/pages/common/mtr.md @@ -1,7 +1,7 @@ # mtr > Matt's Traceroute: combined traceroute and ping tool. -> More information: . +> More information: . - 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}}` diff --git a/pages/common/ranger.md b/pages/common/ranger.md index 8d8404737c..32a8eadb61 100644 --- a/pages/common/ranger.md +++ b/pages/common/ranger.md @@ -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: diff --git a/pages/common/shred.md b/pages/common/shred.md index 09a78d8aaf..9956231d0a 100644 --- a/pages/common/shred.md +++ b/pages/common/shred.md @@ -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: