From b8f18a7a83f4d853e5a713e01f08daafd258e35d Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sat, 6 Sep 2025 00:17:58 +0000 Subject: [PATCH] Update cheatsheets --- tldr/brew | 8 ++++---- tldr/file | 2 +- tldr/fpsync | 33 +++++++++++++++++++++++++++++++++ tldr/ghcup | 4 ++-- tldr/history | 2 +- tldr/kubectl-describe | 2 +- tldr/pest | 2 +- tldr/uname | 2 +- 8 files changed, 44 insertions(+), 11 deletions(-) create mode 100644 tldr/fpsync diff --git a/tldr/brew b/tldr/brew index a4f3f205..a5cc306c 100644 --- a/tldr/brew +++ b/tldr/brew @@ -9,9 +9,9 @@ source: https://github.com/tldr-pages/tldr.git > Some subcommands such as `install` have their own usage documentation. > More information: . -- Install the latest stable version of a formula or cask (use `--devel` for development versions): +- Install the latest stable version of a formula or cask: -`brew install {{formula}}` +`brew install {{formula|cask}}` - List all installed formulae and casks: @@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git - Upgrade an installed formula or cask (if none is given, all installed formulae/casks are upgraded): -`brew upgrade {{formula}}` +`brew upgrade {{formula|cask}}` - Fetch the newest version of Homebrew and of all formulae and casks from the Homebrew source repository: @@ -35,7 +35,7 @@ source: https://github.com/tldr-pages/tldr.git - Display information about a formula or a cask (version, installation path, dependencies, etc.): -`brew info {{formula}}` +`brew info {{formula|cask}}` - Check the local Homebrew installation for potential problems: diff --git a/tldr/file b/tldr/file index 7348aed7..561488f3 100644 --- a/tldr/file +++ b/tldr/file @@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git `file {{[-z|--uncompress]}} {{path/to/file.zip}}` -- Allow file to work with special or device files: +- Allow `file` to work with special or device files: `file {{[-s|--special-files]}} {{path/to/file}}` diff --git a/tldr/fpsync b/tldr/fpsync new file mode 100644 index 00000000..ccb9fc72 --- /dev/null +++ b/tldr/fpsync @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# fpsync + +> Execute several synchronization processes locally or on several remote workers through SSH. +> More information: . + +- Recursively synchronize a directory to another location: + +`fpsync -v /{{path/to/source}}/ /{{path/to/destination}}/` + +- Recursively synchronize a directory with the final pass (It enables rsync's `--delete` option with each synchronization job): + +`fpsync -v -E /{{path/to/source}}/ /{{path/to/destination}}/` + +- Recursively synchronize a directory to a destination using 8 concurrent synchronization jobs: + +`fpsync -v -n 8 -E /{{path/to/source}}/ /{{path/to/destination}}/` + +- Recursively synchronize a directory to a destination using 8 concurrent synchronization jobs spread over two remote workers (machine1 and machine2): + +`fpsync -v -n 8 -E -w login@machine1 -w login@machine2 -d /{{path/to/shared/directory}} /{{path/to/source}}/ /{{path/to/destination}}/` + +- Recursively synchronize a directory to a destination using 4 local workers, each one transferring at most 1000 files and 100 MB per synchronization job: + +`fpsync -v -n 4 -f 1000 -s $((100 * 1024 * 1024)) /{{path/to/source}}/ /{{path/to/destination}}/` + +- Recursively synchronize any directories but exclude specific `.snapshot*` files (Note: Options and values must be separated by a pipe character): + +`fpsync -v -O "-x|.snapshot*" /{{path/to/source}}/ /{{path/to/destination}}/` diff --git a/tldr/ghcup b/tldr/ghcup index 0b4e5d95..f00d04c3 100644 --- a/tldr/ghcup +++ b/tldr/ghcup @@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git `ghcup tui` -- List available GHC/cabal versions: +- List available GHC/Cabal versions: `ghcup list` @@ -25,7 +25,7 @@ source: https://github.com/tldr-pages/tldr.git `ghcup install ghc {{version}}` -- Set the currently "active" GHC version: +- Activate a specific GHC version: `ghcup set ghc {{version}}` diff --git a/tldr/history b/tldr/history index ccc22985..eac0bbe7 100644 --- a/tldr/history +++ b/tldr/history @@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git `history -{{d|f|i|E}}` -- [c]lear the commands history list (only for current Bash shell): +- [c]lear the commands history list: `history -c` diff --git a/tldr/kubectl-describe b/tldr/kubectl-describe index 9ed243f2..0688b43c 100644 --- a/tldr/kubectl-describe +++ b/tldr/kubectl-describe @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # kubectl describe -> Show details of Kubernetes objects and resources. +> Show details of Kubernetes resources. > More information: . - Show details of pods in a namespace: diff --git a/tldr/pest b/tldr/pest index 2470362d..052fa5fb 100644 --- a/tldr/pest +++ b/tldr/pest @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # pest > A PHP testing framework with a focus on simplicity. -> More information: . +> More information: . - Initialize a standard Pest configuration in the current directory: diff --git a/tldr/uname b/tldr/uname index 7e337d07..c02a15c0 100644 --- a/tldr/uname +++ b/tldr/uname @@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git - Print system architecture and processor information: -`uname {{[-mp|--machine --processsor]}}` +`uname {{[-mp|--machine --processor]}}` - Print kernel name, kernel release and kernel version: