From e46a713c5e05eb68a2099c8006e37b3c35ab363a Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sat, 9 Nov 2024 00:16:57 +0000 Subject: [PATCH] Update cheatsheets --- tldr/aws-s3-rm | 4 ++++ tldr/gzip | 6 +++--- tldr/linux/cryptsetup-luksformat | 2 +- tldr/osx/networkquality | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/tldr/aws-s3-rm b/tldr/aws-s3-rm index c9a20d67..f7b38882 100644 --- a/tldr/aws-s3-rm +++ b/tldr/aws-s3-rm @@ -20,6 +20,10 @@ source: https://github.com/tldr-pages/tldr.git `aws s3 rm s3://arn:aws:s3:{{region}}:{{account_id}}:{{access_point}}/{{access_point_name}}/{{object_key}}` +- Remove all objects from a bucket (empty the bucket): + +`aws s3 rm s3://{{bucket_name}} --recursive` + - Display help: `aws s3 rm help` diff --git a/tldr/gzip b/tldr/gzip index 8f2c091b..363de384 100644 --- a/tldr/gzip +++ b/tldr/gzip @@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git - Decompress a file, replacing it with the original uncompressed version: -`gzip {{-d|--decompress path/to/file.gz}}` +`gzip {{-d|--decompress}} {{path/to/file.gz}}` - Compress a file, keeping the original file: -`gzip {{-k|--keep path/to/file}}` +`gzip {{-k|--keep}} {{path/to/file}}` - Compress a file, specifying the output filename: -`gzip {{-c|--stdout path/to/file}} > {{path/to/compressed_file.gz}}` +`gzip {{-c|--stdout}} {{path/to/file}} > {{path/to/compressed_file.gz}}` - Decompress a `gzip` archive specifying the output filename: diff --git a/tldr/linux/cryptsetup-luksformat b/tldr/linux/cryptsetup-luksformat index fe050643..a46ade75 100644 --- a/tldr/linux/cryptsetup-luksformat +++ b/tldr/linux/cryptsetup-luksformat @@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git - Initialize a LUKS volume with a keyfile: -`crypsetup luksFormat {{/dev/sdXY}} {{path/to/keyfile}}` +`cryptsetup luksFormat {{/dev/sdXY}} {{path/to/keyfile}}` - Initialize a LUKS volume with a passphrase and set its label: diff --git a/tldr/osx/networkquality b/tldr/osx/networkquality index 2b052ed3..3a2a596a 100644 --- a/tldr/osx/networkquality +++ b/tldr/osx/networkquality @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # networkQuality > Measure the network quality by connecting to the internet. -> More information: . +> More information: . - Test the network quality for the default interface: