diff --git a/tldr/adb-disconnect b/tldr/adb-disconnect index b6ea1661..d05d4fcf 100644 --- a/tldr/adb-disconnect +++ b/tldr/adb-disconnect @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # adb disconnect -> This command has been moved to `adb connect`. +> The examples for this command have been moved together with `adb connect`. - View documentation for `adb disconnect`: diff --git a/tldr/adb-pair b/tldr/adb-pair index 21f28d65..36bc8e4b 100644 --- a/tldr/adb-pair +++ b/tldr/adb-pair @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # adb pair -> This command has been moved to `adb connect`. +> The examples for this command have been moved together with `adb connect`. - View documentation for `adb pair`: diff --git a/tldr/azcopy b/tldr/azcopy new file mode 100644 index 00000000..7a2e9a9f --- /dev/null +++ b/tldr/azcopy @@ -0,0 +1,34 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# azcopy + +> Copy data to and from Azure Storage. +> See also: `az storage`. +> More information: . + +- Log in to an Azure Tenant: + +`azcopy login` + +- Upload a local file: + +`azcopy {{[c|copy]}} '{{path/to/source_file}}' 'https://{{storage_account_name}}.blob.core.windows.net/{{container_name}}/{{blob_name}}'` + +- Upload files with `.txt` and `.jpg` extensions: + +`azcopy {{[c|copy]}} '{{path/to/source_directory}}' 'https://{{storage_account_name}}.blob.core.windows.net/{{container_name}}' --include-pattern '*.txt;*.jpg'` + +- Copy a container directly between two Azure storage accounts: + +`azcopy {{[c|copy]}} 'https://{{source_storage_account_name}}.blob.core.windows.net/{{container_name}}' 'https://{{destination_storage_account_name}}.blob.core.windows.net/{{container_name}}'` + +- Synchronize a local directory and delete files in the destination if they no longer exist in the source: + +`azcopy {{[s|sync]}} '{{path/to/source_directory}}' 'https://{{storage_account_name}}.blob.core.windows.net/{{container_name}}' --delete-destination true` + +- Display help: + +`azcopy {{[-h|--help]}}` diff --git a/tldr/fresh b/tldr/fresh new file mode 100644 index 00000000..c9491f2b --- /dev/null +++ b/tldr/fresh @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# fresh + +> A fully-featured terminal-based text editor. +> More information: . + +- Open a file: + +`fresh {{path/to/file}}` + +- Search for a pattern: + +`{{search_pattern}}` + +- Replace a pattern: + +`{{search_pattern}}{{replacement}}` + +- Show File Explorer: + +`` + +- Save file: + +`` + +- Quit: + +`` diff --git a/tldr/git-revert b/tldr/git-revert index ae6a9066..a81aea9c 100644 --- a/tldr/git-revert +++ b/tldr/git-revert @@ -10,11 +10,11 @@ source: https://github.com/tldr-pages/tldr.git - Revert the most recent commit: -`git revert {{HEAD}}` +`git revert HEAD` - Revert the 5th last commit: -`git revert HEAD~{{4}}` +`git revert HEAD~4` - Revert a specific commit: @@ -22,11 +22,11 @@ source: https://github.com/tldr-pages/tldr.git - Revert multiple commits: -`git revert {{branch_name~5..branch_name~2}}` +`git revert {{branch_name~5}}..{{branch_name~2}}` - Don't create new commits, just change the working tree: -`git revert {{[-n|--no-commit]}} {{0c01a9..9a1743}}` +`git revert {{[-n|--no-commit]}} {{0c01a9}}..{{9a1743}}` - Cancel a Git revert after a merge conflict: diff --git a/tldr/linux/trash-empty b/tldr/linux/trash-empty index dbe8e418..65507f8e 100644 --- a/tldr/linux/trash-empty +++ b/tldr/linux/trash-empty @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # trash-empty -> This command has been moved to `trash`. +> The examples for this command have been moved together with `trash`. - View documentation for `trash-empty`: diff --git a/tldr/linux/trash-list b/tldr/linux/trash-list index 1db2ffe3..a74aa783 100644 --- a/tldr/linux/trash-list +++ b/tldr/linux/trash-list @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # trash-list -> This command has been moved to `trash`. +> The examples for this command have been moved together with `trash`. - View documentation for `trash-list`: diff --git a/tldr/linux/trash-restore b/tldr/linux/trash-restore index eab60775..b6ad6cfd 100644 --- a/tldr/linux/trash-restore +++ b/tldr/linux/trash-restore @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # trash-restore -> This command has been moved to `trash`. +> The examples for this command have been moved together with `trash`. - View documentation for `trash-restore`: diff --git a/tldr/linux/trash-rm b/tldr/linux/trash-rm index 297ee94b..a1155c6a 100644 --- a/tldr/linux/trash-rm +++ b/tldr/linux/trash-rm @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # trash-rm -> This command has been moved to `trash`. +> The examples for this command have been moved together with `trash`. - View documentation for `trash-rm`: diff --git a/tldr/openssl b/tldr/openssl index 5c25c4fe..c0b33032 100644 --- a/tldr/openssl +++ b/tldr/openssl @@ -9,29 +9,29 @@ source: https://github.com/tldr-pages/tldr.git > Some subcommands such as `req` have their own usage documentation. > More information: . -- Generate a private key and encrypt the output file using AES256: +- Generate a private key and encrypt the output file using AES-256: -`openssl genpkey -algorithm {{rsa|ec}} -out {{private.key}} -aes256` +`openssl genpkey -algorithm {{rsa|ec}} -out {{path/to/private.key}} -aes256` -- Generate the corresponding public key from private key `private.key` using `rsa`: +- Generate the corresponding public key from the private key `private.key` using `rsa`: -`openssl rsa -in {{private.key}} -pubout -out {{public.key}}` +`openssl rsa -in {{path/to/private.key}} -pubout -out {{path/to/public.key}}` -- Generate a self-signed certificate valid for a specified number of days (`365`): +- Generate a self-signed certificate valid for a specified number of days (365): -`openssl req -new -x509 -key {{private.key}} -out {{certificate.crt}} -days {{365}}` +`openssl req -new -x509 -key {{path/to/private.key}} -out {{path/to/certificate.crt}} -days 365` -- Convert certificate to `pem` or `der` format: +- Convert a certificate to `.pem` or `.der` format: -`openssl x509 -in {{certificate.crt}} -out {{certificate.pem|certificate.der}} -outform {{pem|der}}` +`openssl x509 -in {{path/to/certificate.crt}} -out {{path/to/certificate.pem|path/to/certificate.der}} -outform {{pem|der}}` - Check certificate details: -`openssl x509 -in {{certificate.crt}} -text -noout` +`openssl x509 -in {{path/to/certificate.crt}} -text -noout` - Generate a certificate signing request (CSR): -`openssl req -new -key {{private.key}} -out {{request.csr}}` +`openssl req -new -key {{path/to/private.key}} -out {{path/to/request.csr}}` - Display help: diff --git a/tldr/qr b/tldr/qr index 59fbe831..4573d330 100644 --- a/tldr/qr +++ b/tldr/qr @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # qr > Generate QR codes in the terminal with ANSI VT-100 escape codes. +> See also: `qrencode`. > More information: . - Generate a QR code: diff --git a/tldr/qrencode b/tldr/qrencode index bc13092e..ccb38aa5 100644 --- a/tldr/qrencode +++ b/tldr/qrencode @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # qrencode > QR Code generator. Supports PNG and EPS. +> See also: `qr`. > More information: . - Convert a string to a QR code and save to an output file: diff --git a/tldr/sfdk-emulator-device-model-list b/tldr/sfdk-emulator-device-model-list index 4f2e48bd..170ce271 100644 --- a/tldr/sfdk-emulator-device-model-list +++ b/tldr/sfdk-emulator-device-model-list @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # sfdk emulator device-model-list -> This command has been moved to `sfdk emulator device-model-show`. +> The examples for this command have been moved together with `sfdk emulator device-model-show`. - View documentation for `sfdk emulator device-model-show`: diff --git a/tldr/sfdk-emulator-remove b/tldr/sfdk-emulator-remove index 0489c242..eff28a0a 100644 --- a/tldr/sfdk-emulator-remove +++ b/tldr/sfdk-emulator-remove @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # sfdk emulator remove -> This command has been moved to `sfdk emulator install`. +> The examples for this command have been moved together with `sfdk emulator install`. - View documentation for `sfdk emulator install`: diff --git a/tldr/watchexec b/tldr/watchexec index c84b68b4..5448fba6 100644 --- a/tldr/watchexec +++ b/tldr/watchexec @@ -25,6 +25,6 @@ source: https://github.com/tldr-pages/tldr.git `watchexec {{[-r|--restart]}} --stop-signal {{SIGKILL}} {{my_server}}` -- Restart the execution of a command when any Java source file in the current directory changes, sending `SIGKILL` and only checking for updates every `n`ms: +- Restart the execution of a command when any Java source file in the current directory changes, sending `SIGKILL` and only checking for updates every `10000` ms: -`watchexec {{[-r|--restart]}} --stop-signal {{SIGKILL}} --poll {{10000}} {{[-e|--exts]}} {{java}} {{command}}` +`watchexec {{[-r|--restart]}} --stop-signal {{SIGKILL}} --poll 10000 {{[-e|--exts]}} {{java}} {{command}}`