Update cheatsheets

This commit is contained in:
ivuorinen
2025-09-27 00:18:09 +00:00
parent aec5fb32c3
commit b10686d1e9
20 changed files with 28 additions and 28 deletions

View File

@@ -13,17 +13,17 @@ source: https://github.com/tldr-pages/tldr.git
`aws s3 ls {{bucket_name}}`
- Sync files and directories from local to bucket:
- Sync files in a directory from local to bucket:
`aws s3 sync {{path/to/file1 path/to/file2 ...}} s3://{{bucket_name}}`
`aws s3 sync {{path/to/directory}} s3://{{bucket_name}}`
- Sync files and directories from bucket to local:
`aws s3 sync s3://{{bucket_name}} {{path/to/target}}`
- Sync files and directories with exclusions:
- Sync files in a directory with exclusions:
`aws s3 sync {{path/to/file1 path/to/file2 ...}} s3://{{bucket_name}} --exclude {{path/to/file}} --exclude {{path/to/directory}}/*`
`aws s3 sync {{path/to/directory}} s3://{{bucket_name}} --exclude {{path/to/file}} --exclude {{path/to/directory}}/*`
- Remove file from bucket:

View File

@@ -8,13 +8,13 @@ source: https://github.com/tldr-pages/tldr.git
> Recursively sync files and directories between your local system and an S3 bucket, or between S3 buckets.
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/sync.html>.
- Sync files and directories from local to a bucket:
- Sync files in a directory from local to a bucket:
`aws s3 sync {{path/to/file_or_directory}} s3://{{bucket_target_name}}/{{path/to/remote_location}}`
`aws s3 sync {{path/to/directory}} s3://{{bucket_name}}/{{path/to/remote_location}}`
- Sync files and directories from a bucket to local:
- Sync files in a directory from a bucket to local:
`aws s3 sync s3://{{bucket_source_name}}/{{path/to/remote_location}} {{path/to/file_or_directory}}`
`aws s3 sync s3://{{bucket_name}}/{{path/to/remote_location}} {{path/to/directory}}`
- Sync objects between two buckets:
@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
- Sync local files to S3 while excluding specific files or directories:
`aws s3 sync {{path/to/file_or_directory}} s3://{{bucket_target_name}}/{{path/to/remote_location}} --exclude {{path/to/file}} --exclude {{path/to/directory}}/*`
`aws s3 sync {{path/to/directory}} s3://{{bucket_name}}/{{path/to/remote_location}} --exclude {{path/to/file}} --exclude {{path/to/directory}}/*`
- Sync objects between buckets and delete destination files not in source:
@@ -34,7 +34,7 @@ source: https://github.com/tldr-pages/tldr.git
- Sync files to S3 and skip unchanged ones (compare size and modification time):
`aws s3 sync {{path/to/file_or_directory}} s3://{{bucket_name}}/{{path/to/remote_location}} --size-only`
`aws s3 sync {{path/to/directory}} s3://{{bucket_name}}/{{path/to/remote_location}} --size-only`
- Display help:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# caddy
> An enterprise-ready open source web server with automatic HTTPS, written in Go.
> More information: <https://caddyserver.com>.
> More information: <https://caddyserver.com/docs/command-line>.
- Start Caddy in the foreground:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ember
> Ember CLI: create and manage Ember.js applications.
> More information: <https://cli.emberjs.com>.
> More information: <https://cli.emberjs.com/release/advanced-use/cli-commands-reference/>.
- Create a new Ember application:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# gatsby
> Static site generator for React.
> More information: <https://gatsbyjs.com>.
> More information: <https://www.gatsbyjs.com/docs/reference/gatsby-cli/>.
- Create a new site:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Manage files with Git, without checking their contents in.
> When a file is annexed, its content is moved into a key-value store, and a symlink is made that points to the content.
> More information: <https://git-annex.branchable.com>.
> More information: <https://git-annex.branchable.com/git-annex/>.
- Initialize a repo with Git annex:

View File

@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
- Jump to the parent of a specific commit and track a specific text and 10 of its following lines:
`git blame -L '/{{text}}/',+10 {{a82812aa}}^ tldr.py`
`git blame -L '/{{text}}/',+10 {{a82812aa}}^ {{path/to/file}}`
- Print author name and commit hash information for a specific line range:

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Control the settings of connected displays via DDC/CI.
> This command requires the kernel module `i2c-dev` to be loaded.
> See also: `modprobe`.
> More information: <https://www.ddcutil.com>.
> More information: <https://www.ddcutil.com/commands/>.
- List all compatible displays:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# xfreerdp
> Free Remote Desktop Protocol implementation.
> More information: <https://www.freerdp.com>.
> More information: <https://github.com/FreeRDP/FreeRDP/wiki/CommandLineInterface-(possibly-not-up-to-date,-check-application-help-text-for-most-up-to-date-version)>.
- Connect to a FreeRDP server:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ngrok
> Reverse proxy that creates a secure tunnel from a public endpoint to a locally running web service.
> More information: <https://ngrok.com>.
> More information: <https://ngrok.com/docs/agent/cli/>.
- Expose a local HTTP service on a given port:

View File

@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
- View network traffic on specific interfaces (use the `<ArrowKeys>` to switch interfaces):
`nload devices {{interface_one}} {{interface_two}}`
`nload devices {{interface1 interface2 ...}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# herd
> An official Laravel PHP development environment for macOS.
> More information: <https://herd.laravel.com>.
> More information: <https://herd.laravel.com/docs/macos/advanced-usage/herd-cli>.
- Start the Herd services:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> List available commands in the Herd PHP platform.
> See also: `herd`.
> More information: <https://herd.laravel.com>.
> More information: <https://herd.laravel.com/docs/macos/advanced-usage/herd-cli>.
- List all available commands:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pgcli
> A modern PostgreSQL CLI with auto-completion and syntax highlighting.
> More information: <https://www.pgcli.com>.
> More information: <https://www.pgcli.com/#usage>.
- Connect to a PostgreSQL database using a connection string:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# plesk
> Plesk hosting control panel.
> More information: <https://docs.plesk.com>.
> More information: <https://docs.plesk.com/en-US/obsidian/cli-linux/plesk-utility.75661/>.
- Generate an auto login link for the admin user and print it:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pre-commit
> Create Git hooks that get run before a commit.
> More information: <https://pre-commit.com>.
> More information: <https://pre-commit.com/#command-line-interface>.
- Install pre-commit into your Git hooks:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pyinfra
> Automates infrastructure at a large scale.
> More information: <https://docs.pyinfra.com>.
> More information: <https://docs.pyinfra.com/en/3.x/cli.html>.
- Execute a command over SSH:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sails
> A realtime enterprise level MVC framework built on top of Node.js.
> More information: <https://sailsjs.com>.
> More information: <https://sailsjs.com/documentation/reference/command-line-interface>.
- Start Sails:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# svgr
> Transform SVGs into React components.
> More information: <https://react-svgr.com>.
> More information: <https://react-svgr.com/docs/options/>.
- Transform a SVG file into a React component to `stdout`:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Record the terminal, generate animated GIFs and a web player, and optionally upload to <https://terminalizer.com>.
> See also: `asciinema`.
> More information: <https://terminalizer.com>.
> More information: <https://www.terminalizer.com/docs#getting-started>.
- Create the global configuration directory: