mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 00:58:48 +00:00
Update cheatsheets
This commit is contained in:
@@ -9,9 +9,9 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
> Some subcommands such as `install` have their own usage documentation.
|
> Some subcommands such as `install` have their own usage documentation.
|
||||||
> More information: <https://docs.brew.sh/Manpage>.
|
> More information: <https://docs.brew.sh/Manpage>.
|
||||||
|
|
||||||
- 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:
|
- 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):
|
- 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:
|
- 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.):
|
- 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:
|
- Check the local Homebrew installation for potential problems:
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
`file {{[-z|--uncompress]}} {{path/to/file.zip}}`
|
`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}}`
|
`file {{[-s|--special-files]}} {{path/to/file}}`
|
||||||
|
|
||||||
|
|||||||
33
tldr/fpsync
Normal file
33
tldr/fpsync
Normal file
@@ -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: <https://manned.org/fpsync>.
|
||||||
|
|
||||||
|
- 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}}/`
|
||||||
@@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
`ghcup tui`
|
`ghcup tui`
|
||||||
|
|
||||||
- List available GHC/cabal versions:
|
- List available GHC/Cabal versions:
|
||||||
|
|
||||||
`ghcup list`
|
`ghcup list`
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
`ghcup install ghc {{version}}`
|
`ghcup install ghc {{version}}`
|
||||||
|
|
||||||
- Set the currently "active" GHC version:
|
- Activate a specific GHC version:
|
||||||
|
|
||||||
`ghcup set ghc {{version}}`
|
`ghcup set ghc {{version}}`
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
`history -{{d|f|i|E}}`
|
`history -{{d|f|i|E}}`
|
||||||
|
|
||||||
- [c]lear the commands history list (only for current Bash shell):
|
- [c]lear the commands history list:
|
||||||
|
|
||||||
`history -c`
|
`history -c`
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
---
|
---
|
||||||
# kubectl describe
|
# kubectl describe
|
||||||
|
|
||||||
> Show details of Kubernetes objects and resources.
|
> Show details of Kubernetes resources.
|
||||||
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#describe>.
|
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#describe>.
|
||||||
|
|
||||||
- Show details of pods in a namespace:
|
- Show details of pods in a namespace:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
# pest
|
# pest
|
||||||
|
|
||||||
> A PHP testing framework with a focus on simplicity.
|
> A PHP testing framework with a focus on simplicity.
|
||||||
> More information: <https://pestphp.com>.
|
> More information: <https://pestphp.com/docs/cli-api-reference>.
|
||||||
|
|
||||||
- Initialize a standard Pest configuration in the current directory:
|
- Initialize a standard Pest configuration in the current directory:
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- Print system architecture and processor information:
|
- Print system architecture and processor information:
|
||||||
|
|
||||||
`uname {{[-mp|--machine --processsor]}}`
|
`uname {{[-mp|--machine --processor]}}`
|
||||||
|
|
||||||
- Print kernel name, kernel release and kernel version:
|
- Print kernel name, kernel release and kernel version:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user