mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-11 09:47:22 +00:00
Update cheatsheets
This commit is contained in:
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# adb shell pm list
|
||||
|
||||
> List users, packages, permissions, instrumentation, permission groups, features and libraries managed by the package manager.
|
||||
> List users, packages, permissions, instrumentation, permission groups, features, and libraries managed by the package manager.
|
||||
> More information: <https://developer.android.com/tools/adb>.
|
||||
|
||||
- List all installed packages:
|
||||
|
||||
@@ -9,6 +9,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Part of Aircrack-ng network software suite.
|
||||
> More information: <https://www.aircrack-ng.org/doku.php?id=aireplay-ng>.
|
||||
|
||||
- Send a specific number of disassociate packets given an access point's MAC address, a client's MAC address and an interface:
|
||||
- Send a specific number of disassociate packets given an access point's MAC address, a client's MAC address, and an interface:
|
||||
|
||||
`sudo aireplay-ng --deauth {{count}} --bssid {{ap_mac}} --dmac {{client_mac}} {{interface}}`
|
||||
|
||||
2
tldr/alr
2
tldr/alr
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# alr
|
||||
|
||||
> Ada package manager.
|
||||
> Manage Ada toolchains, dependencies, tools and libraries.
|
||||
> Manage Ada toolchains, dependencies, tools, and libraries.
|
||||
> More information: <https://alire.ada.dev/docs/#first-steps>.
|
||||
|
||||
- Create a binary or library project:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# archwiki-rs
|
||||
|
||||
> Read, search and download pages from the ArchWiki.
|
||||
> Read, search, and download pages from the ArchWiki.
|
||||
> More information: <https://gitlab.com/lucifayr/archwiki-rs>.
|
||||
|
||||
- Read a page from the ArchWiki:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# atoum
|
||||
|
||||
> A simple, modern and intuitive unit testing framework for PHP.
|
||||
> A simple, modern, and intuitive unit testing framework for PHP.
|
||||
> More information: <https://atoum.readthedocs.io/en/latest/option_cli.html>.
|
||||
|
||||
- Initialize a configuration file:
|
||||
|
||||
@@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`atuin search {{command}}`
|
||||
|
||||
- Register an account on the default sync server using the specified username, email and password:
|
||||
- Register an account on the default sync server using the specified username, email, and password:
|
||||
|
||||
`atuin register {{[-u|--username]}} {{username}} {{[-e|--email]}} {{email}} {{[-p|--password]}} {{password}}`
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# autossh
|
||||
|
||||
> Run, monitor and restart SSH connections.
|
||||
> Run, monitor, and restart SSH connections.
|
||||
> Auto-reconnects to keep port forwarding tunnels up. Accepts all SSH flags.
|
||||
> More information: <https://manned.org/autossh>.
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# biff
|
||||
|
||||
> A simple utility for doing datetime arithmetic, parsing and formatting.
|
||||
> A simple utility for doing datetime arithmetic, parsing, and formatting.
|
||||
> More information: <https://github.com/burntsushi/biff>.
|
||||
|
||||
- Print the current time in a format of your choosing:
|
||||
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`biff time fmt {{[-f|--format]}} '%c' now -1d 'next sat' 'last monday' '9pm last mon'`
|
||||
|
||||
- Print the current time in another time zone, and round it the nearest 15 minute increment:
|
||||
- Print the current time in another time zone and round it the nearest 15 minute increment:
|
||||
|
||||
`biff time in Asia/Bangkok now | biff time round {{[-i|--increment]}} 15 {{[-s|--smallest]}} minute`
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# bird
|
||||
|
||||
> BIRD Internet Routing Daemon.
|
||||
> Routing daemon with support for BGP, OSPF, Babel and others.
|
||||
> Routing daemon with support for BGP, OSPF, Babel, and others.
|
||||
> More information: <https://bird.network.cz/?get_doc&v=30&f=bird-1.html#ss1.3>.
|
||||
|
||||
- Start Bird with a specific configuration file:
|
||||
|
||||
@@ -24,14 +24,14 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`echo "{{string}}" | boxes {{[-s|--size]}} {{10}}x{{5}}`
|
||||
|
||||
- Align the box text [h]orizonally (at [l]eft, [c]enter or [r]ight):
|
||||
- Align the box text [h]orizonally (at [l]eft, [c]enter, or [r]ight):
|
||||
|
||||
`echo "{{string}}" | boxes {{[-a|--align]}} h{{l|c|r}}`
|
||||
|
||||
- Align the box text [v]ertically (at [t]op, [c]enter or [b]ottom):
|
||||
- Align the box text [v]ertically (at [t]op, [c]enter, or [b]ottom):
|
||||
|
||||
`echo "{{string}}" | boxes {{[-a|--align]}} v{{t|c|b}}`
|
||||
|
||||
- [j]ustify the box text (at [l]eft, [c]enter or [r]ight):
|
||||
- [j]ustify the box text (at [l]eft, [c]enter, or [r]ight):
|
||||
|
||||
`echo "{{string}}" | boxes {{[-a|--align]}} j{{l|c|r}}{{vt}}`
|
||||
|
||||
2
tldr/btm
2
tldr/btm
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# btm
|
||||
|
||||
> Display system information about the CPU, memory, disks, network and processes.
|
||||
> Display system information about the CPU, memory, disks, network, and processes.
|
||||
> An enhanced alternative to `top`.
|
||||
> See also: `btop`, `glances`, `atop`, `htop`, `top`.
|
||||
> More information: <https://clementtsang.github.io/bottom/nightly/#usage-and-configuration>.
|
||||
|
||||
30
tldr/ci
Normal file
30
tldr/ci
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ci
|
||||
|
||||
> Check in RCS revisions (store file changes in the Revision Control System).
|
||||
> See also: `co`, `rcs`, `rcsdiff`, `rlog`.
|
||||
> More information: <https://manned.org/ci>.
|
||||
|
||||
- Check in a file and keep the working file unlocked:
|
||||
|
||||
`ci -u {{path/to/file}}`
|
||||
|
||||
- Check in a file and keep the working file locked:
|
||||
|
||||
`ci -l {{path/to/file}}`
|
||||
|
||||
- Check in a file with a specific log message:
|
||||
|
||||
`ci -m"{{log_message}}" {{path/to/file}}`
|
||||
|
||||
- Check in a file, unlocking it but leaving the working file read-only:
|
||||
|
||||
`ci {{path/to/file}}`
|
||||
|
||||
- Force check-in even if there are no changes:
|
||||
|
||||
`ci -f -u {{path/to/file}}`
|
||||
30
tldr/co
Normal file
30
tldr/co
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# co
|
||||
|
||||
> Check out RCS revisions (retrieve working files from the Revision Control System).
|
||||
> See also: `ci`, `rcs`, `rcsdiff`, `rlog`.
|
||||
> More information: <https://manned.org/co>.
|
||||
|
||||
- Check out the latest revision of a file (retrieves a read-only copy):
|
||||
|
||||
`co {{path/to/file}}`
|
||||
|
||||
- Check out a file with a lock for editing:
|
||||
|
||||
`co -l {{path/to/file}}`
|
||||
|
||||
- Check out a specific revision of a file:
|
||||
|
||||
`co -r{{revision}} {{path/to/file}}`
|
||||
|
||||
- Check out a file and overwrite it if it already exists:
|
||||
|
||||
`co -f -l {{path/to/file}}`
|
||||
|
||||
- Print a specific revision to `stdout` without creating a file:
|
||||
|
||||
`co -p -r{{revision}} {{path/to/file}}`
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# conan
|
||||
|
||||
> The open source, decentralized and cross-platform package manager to create and share all your native binaries.
|
||||
> The open source, decentralized, and cross-platform package manager to create and share all your native binaries.
|
||||
> Some subcommands such as `frogarian` have their own usage documentation.
|
||||
> More information: <https://docs.conan.io/2/reference/commands.html>.
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# cpan
|
||||
|
||||
> Query, download and build perl modules from CPAN sites.
|
||||
> Query, download, and build perl modules from CPAN sites.
|
||||
> More information: <https://manned.org/cpan>.
|
||||
|
||||
- Install a module (`-i` is optional):
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Manipulate PDF files.
|
||||
> More information: <https://www.coherentpdf.com/cpdfmanual/cpdfmanual.html>.
|
||||
|
||||
- Select pages 1, 2, 3 and 6 from a source document and write those to a destination document:
|
||||
- Select pages 1, 2, 3, and 6 from a source document and write those to a destination document:
|
||||
|
||||
`cpdf {{path/to/source_document.pdf}} {{1-3,6}} -o {{path/to/destination_document.pdf}}`
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# csv-diff
|
||||
|
||||
> View differences between two CSV, TSV or JSON files.
|
||||
> View differences between two CSV, TSV, or JSON files.
|
||||
> More information: <https://github.com/simonw/csv-diff>.
|
||||
|
||||
- Display a human-readable summary of differences between files using a specific column as a unique identifier:
|
||||
|
||||
@@ -8,11 +8,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Generate an index (or tag) file of language objects found in source files for many popular programming languages.
|
||||
> More information: <https://docs.ctags.io/en/latest/man/ctags.1.html>.
|
||||
|
||||
- Generate tags for a single file, and output them to a file named "tags" in the current directory, overwriting the file if it exists:
|
||||
- Generate tags for a single file and output them to a file named "tags" in the current directory, overwriting the file if it exists:
|
||||
|
||||
`ctags {{path/to/file}}`
|
||||
|
||||
- Generate tags for all files in the current directory, and output them to a specific file, overwriting the file if it exists:
|
||||
- Generate tags for all files in the current directory and output them to a specific file, overwriting the file if it exists:
|
||||
|
||||
`ctags -f {{path/to/file}} *`
|
||||
|
||||
@@ -20,6 +20,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`ctags --recurse`
|
||||
|
||||
- Generate tags for a single file, and output them with start line number and end line number in JSON format:
|
||||
- Generate tags for a single file and output them with start line number and end line number in JSON format:
|
||||
|
||||
`ctags --fields=+ne --output-format=json {{path/to/file}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# cupstestppd
|
||||
|
||||
> Test conformance of PPD files to the version 4.3 of the specification.
|
||||
> Error codes (1, 2, 3 and 4, respectively): bad CLI arguments, unable to open file, unskippable format errors and non-conformance with PPD specification.
|
||||
> Error codes (1, 2, 3, and 4, respectively): bad CLI arguments, unable to open file, unskippable format errors, and non-conformance with PPD specification.
|
||||
> Note: This command is deprecated.
|
||||
> See also: `lpadmin`.
|
||||
> More information: <https://openprinting.github.io/cups/doc/man-cupstestppd.html>.
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# dcode
|
||||
|
||||
> Recursively detect and decode strings, supporting hex, decimal, binary, base64, URL, FromChar encodings, Caesar ciphers, and MD5, SHA1, and SHA2 hashes.
|
||||
> Warning: uses 3rd-party web services for MD5, SHA1 and SHA2 hash lookups. For sensitive data, use `-s` to avoid these services.
|
||||
> Warning: uses 3rd-party web services for MD5, SHA1, and SHA2 hash lookups. For sensitive data, use `-s` to avoid these services.
|
||||
> More information: <https://github.com/s0md3v/Decodify>.
|
||||
|
||||
- Recursively detect and decode a string:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# devenv
|
||||
|
||||
> Fast, Declarative, Reproducible and Composable Developer Environments using Nix.
|
||||
> Fast, declarative, reproducible, and composable developer environments using Nix.
|
||||
> More information: <https://devenv.sh/getting-started/#commands>.
|
||||
|
||||
- Initialize the environment:
|
||||
|
||||
14
tldr/dhcpig
14
tldr/dhcpig
@@ -11,28 +11,28 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Exhaust all of the available DHCP addresses using the specified interface:
|
||||
|
||||
`sudo ./pig.py {{eth0}}`
|
||||
`sudo {{path/to}}/pig.py {{eth0}}`
|
||||
|
||||
- Exhaust IPv6 addresses using eth1 interface:
|
||||
|
||||
`sudo ./pig.py {{[-6|--ipv6]}} {{eth1}}`
|
||||
`sudo {{path/to}}/pig.py {{[-6|--ipv6]}} {{eth1}}`
|
||||
|
||||
- Send fuzzed/malformed data packets using the interface:
|
||||
|
||||
`sudo ./pig.py {{[-f|--fuzz]}} {{eth1}}`
|
||||
`sudo {{path/to}}/pig.py {{[-f|--fuzz]}} {{eth1}}`
|
||||
|
||||
- Enable color output:
|
||||
|
||||
`sudo ./pig.py {{[-c|--color]}} {{eth1}}`
|
||||
`sudo {{path/to}}/pig.py {{[-c|--color]}} {{eth1}}`
|
||||
|
||||
- Enable minimal verbosity and color output:
|
||||
|
||||
`sudo ./pig.py {{[-c|--color]}} {{[-v|--verbosity]}} 1 {{eth1}}`
|
||||
`sudo {{path/to}}/pig.py {{[-c|--color]}} {{[-v|--verbosity]}} 1 {{eth1}}`
|
||||
|
||||
- Use a debug verbosity of 100 and scan network of neighboring devices using ARP packets:
|
||||
|
||||
`sudo ./pig.py {{[-c|--color]}} {{[-v|--verbosity]}} 100 {{[-n|--neighbors-scan-arp]}} {{eth1}}`
|
||||
`sudo {{path/to}}/pig.py {{[-c|--color]}} {{[-v|--verbosity]}} 100 {{[-n|--neighbors-scan-arp]}} {{eth1}}`
|
||||
|
||||
- Enable printing lease information, attempt to scan and release all neighbor IP addresses:
|
||||
|
||||
`sudo ./pig.py {{[-n|--neighbors-scan-arp]}} {{[-r|--neighbors-attack-release]}} {{[-o|--show-options]}} {{eth1}}`
|
||||
`sudo {{path/to}}/pig.py {{[-n|--neighbors-scan-arp]}} {{[-r|--neighbors-attack-release]}} {{[-o|--show-options]}} {{eth1}}`
|
||||
|
||||
@@ -12,6 +12,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`diff {{path/to/file1}} {{path/to/file2}} | diffstat`
|
||||
|
||||
- Display inserted, deleted and modified changes as a table:
|
||||
- Display inserted, deleted, and modified changes as a table:
|
||||
|
||||
`diff {{path/to/file1}} {{path/to/file2}} | diffstat -t`
|
||||
|
||||
16
tldr/docker
16
tldr/docker
@@ -11,32 +11,32 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List all Docker containers (running and stopped):
|
||||
|
||||
`docker ps {{[-a|--all]}}`
|
||||
`docker {{[ps|container ls]}} {{[-a|--all]}}`
|
||||
|
||||
- Start a container from an image, with a custom name:
|
||||
|
||||
`docker run --name {{container_name}} {{image}}`
|
||||
`docker {{[run|container run]}} --name {{container_name}} {{image}}`
|
||||
|
||||
- Start or stop an existing container:
|
||||
|
||||
`docker {{start|stop}} {{container_name}}`
|
||||
`docker container {{start|stop}} {{container_name}}`
|
||||
|
||||
- Pull an image from a Docker registry:
|
||||
|
||||
`docker pull {{image}}`
|
||||
`docker {{[pull|image pull]}} {{image}}`
|
||||
|
||||
- Display the list of already downloaded images:
|
||||
|
||||
`docker images`
|
||||
`docker {{[images|image ls]}}`
|
||||
|
||||
- Open an interactive tty with Bourne shell (`sh`) inside a running container:
|
||||
|
||||
`docker exec {{[-it|--interactive --tty]}} {{container_name}} {{sh}}`
|
||||
`docker {{[exec|container exec]}} {{[-it|--interactive --tty]}} {{container_name}} {{sh}}`
|
||||
|
||||
- Remove stopped containers:
|
||||
|
||||
`docker rm {{container1 container2 ...}}`
|
||||
`docker {{[rm|container rm]}} {{container1 container2 ...}}`
|
||||
|
||||
- Fetch and follow the logs of a container:
|
||||
|
||||
`docker logs {{[-f|--follow]}} {{container_name}}`
|
||||
`docker {{[logs|container logs]}} {{[-f|--follow]}} {{container_name}}`
|
||||
|
||||
@@ -10,23 +10,23 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List currently running Docker containers:
|
||||
|
||||
`docker container ls`
|
||||
`docker {{[ps|container ls]}}`
|
||||
|
||||
- Start one or more stopped containers:
|
||||
|
||||
`docker container start {{container1_name}} {{container2_name}}`
|
||||
`docker {{[start|container start]}} {{container1_name}} {{container2_name}}`
|
||||
|
||||
- Kill one or more running containers:
|
||||
|
||||
`docker container kill {{container_name}}`
|
||||
`docker {{[kill|container kill]}} {{container_name}}`
|
||||
|
||||
- Stop one or more running containers:
|
||||
|
||||
`docker container stop {{container_name}}`
|
||||
`docker {{[stop|container stop]}} {{container_name}}`
|
||||
|
||||
- Pause all processes within one or more containers:
|
||||
|
||||
`docker container pause {{container_name}}`
|
||||
`docker {{[pause|container pause]}} {{container_name}}`
|
||||
|
||||
- Display detailed information on one or more containers:
|
||||
|
||||
@@ -34,8 +34,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Export a container's filesystem as a tar archive:
|
||||
|
||||
`docker container export {{container_name}}`
|
||||
`docker {{[export|container export]}} {{container_name}}`
|
||||
|
||||
- Create a new image from a container's changes:
|
||||
|
||||
`docker container commit {{container_name}}`
|
||||
`docker {{[commit|container commit]}} {{container_name}}`
|
||||
|
||||
37
tldr/docker-container-commit
Normal file
37
tldr/docker-container-commit
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker container commit
|
||||
|
||||
> Create a new image from a container's changes.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/commit/>.
|
||||
|
||||
- Create an image from a specific container:
|
||||
|
||||
`docker {{[commit|container commit]}} {{container}} {{image}}:{{tag}}`
|
||||
|
||||
- Apply a `CMD` Dockerfile instruction to the created image:
|
||||
|
||||
`docker {{[commit|container commit]}} {{[-c|--change]}} "CMD {{command}}" {{container}} {{image}}:{{tag}}`
|
||||
|
||||
- Apply an `ENV` Dockerfile instruction to the created image:
|
||||
|
||||
`docker {{[commit|container commit]}} {{[-c|--change]}} "ENV {{name}}={{value}}" {{container}} {{image}}:{{tag}}`
|
||||
|
||||
- Create an image with a specific author in the metadata:
|
||||
|
||||
`docker {{[commit|container commit]}} {{[-a|--author]}} "{{author}}" {{container}} {{image}}:{{tag}}`
|
||||
|
||||
- Create an image with a specific comment in the metadata:
|
||||
|
||||
`docker {{[commit|container commit]}} {{[-m|--message]}} "{{comment}}" {{container}} {{image}}:{{tag}}`
|
||||
|
||||
- Create an image without pausing the container during commit:
|
||||
|
||||
`docker {{[commit|container commit]}} {{[-p|--pause]}} {{false}} {{container}} {{image}}:{{tag}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker {{[commit|container commit]}} --help`
|
||||
21
tldr/docker-container-cp
Normal file
21
tldr/docker-container-cp
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker container cp
|
||||
|
||||
> Copy files or directories between host and container filesystems.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/cp/>.
|
||||
|
||||
- Copy a file or directory from the host to a container:
|
||||
|
||||
`docker {{[cp|container cp]}} {{path/to/file_or_directory_on_host}} {{container_name}}:{{path/to/file_or_directory_in_container}}`
|
||||
|
||||
- Copy a file or directory from a container to the host:
|
||||
|
||||
`docker {{[cp|container cp]}} {{container_name}}:{{path/to/file_or_directory_in_container}} {{path/to/file_or_directory_on_host}}`
|
||||
|
||||
- Copy a file or directory from the host to a container, following symlinks (copies the symlinked files directly, not the symlinks themselves):
|
||||
|
||||
`docker {{[cp|container cp]}} {{[-L|--follow-link]}} {{path/to/symlink_on_host}} {{container_name}}:{{path/to/file_or_directory_in_container}}`
|
||||
@@ -5,8 +5,13 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker container diff
|
||||
|
||||
> This command is an alias of `docker diff`.
|
||||
> Inspect changes to files or directories on a container's filesystem.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/diff/>.
|
||||
|
||||
- View documentation for the original command:
|
||||
- Inspect the changes to a container since it was created:
|
||||
|
||||
`tldr docker diff`
|
||||
`docker container diff {{container}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker container diff --help`
|
||||
|
||||
33
tldr/docker-container-exec
Normal file
33
tldr/docker-container-exec
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker container exec
|
||||
|
||||
> Execute a command on an already running Docker container.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/exec/>.
|
||||
|
||||
- Enter an interactive shell session on an already-running container:
|
||||
|
||||
`docker {{[exec|container exec]}} {{[-it|--interactive --tty]}} {{container_name}} {{/bin/bash}}`
|
||||
|
||||
- Run a command in the background (detached) on a running container:
|
||||
|
||||
`docker {{[exec|container exec]}} {{[-d|--detach]}} {{container_name}} {{command}}`
|
||||
|
||||
- Select the working directory for a given command to execute into:
|
||||
|
||||
`docker {{[exec|container exec]}} {{[-it|--interactive --tty]}} {{[-w|--workdir]}} {{path/to/directory}} {{container_name}} {{command}}`
|
||||
|
||||
- Run a command in background on existing container but keep `stdin` open:
|
||||
|
||||
`docker {{[exec|container exec]}} {{[-i|--interactive]}} {{[-d|--detach]}} {{container_name}} {{command}}`
|
||||
|
||||
- Set an environment variable in a running Bash session:
|
||||
|
||||
`docker {{[exec|container exec]}} {{[-it|--interactive --tty]}} {{[-e|--env]}} {{variable_name}}={{value}} {{container_name}} {{/bin/bash}}`
|
||||
|
||||
- Run a command as a specific user:
|
||||
|
||||
`docker {{[exec|container exec]}} {{[-u|--user]}} {{user}} {{container_name}} {{command}}`
|
||||
29
tldr/docker-container-logs
Normal file
29
tldr/docker-container-logs
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker container logs
|
||||
|
||||
> Print container logs.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/logs/>.
|
||||
|
||||
- Print logs from a container:
|
||||
|
||||
`docker {{[logs|container logs]}} {{container_name}}`
|
||||
|
||||
- Print logs and follow them:
|
||||
|
||||
`docker {{[logs|container logs]}} {{[-f|--follow]}} {{container_name}}`
|
||||
|
||||
- Print last 5 lines:
|
||||
|
||||
`docker {{[logs|container logs]}} {{container_name}} {{[-n|--tail]}} {{5}}`
|
||||
|
||||
- Print logs and append them with timestamps:
|
||||
|
||||
`docker {{[logs|container logs]}} {{[-t|--timestamps]}} {{container_name}}`
|
||||
|
||||
- Print logs from a certain point in time of container execution (i.e. 23m, 10s, 2013-01-02T13:23:37):
|
||||
|
||||
`docker {{[logs|container logs]}} {{container_name}} --until {{time}}`
|
||||
41
tldr/docker-container-ls
Normal file
41
tldr/docker-container-ls
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker container ls
|
||||
|
||||
> List Docker containers.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/ls/>.
|
||||
|
||||
- List currently running Docker containers:
|
||||
|
||||
`docker {{[ps|container ls]}}`
|
||||
|
||||
- List all Docker containers (running and stopped):
|
||||
|
||||
`docker {{[ps|container ls]}} {{[-a|--all]}}`
|
||||
|
||||
- Show the latest created container (includes all states):
|
||||
|
||||
`docker {{[ps|container ls]}} {{[-l|--latest]}}`
|
||||
|
||||
- Filter containers that contain a substring in their name:
|
||||
|
||||
`docker {{[ps|container ls]}} {{[-f|--filter]}} "name={{name}}"`
|
||||
|
||||
- Filter containers that share a given image as an ancestor:
|
||||
|
||||
`docker {{[ps|container ls]}} {{[-f|--filter]}} "ancestor={{image}}:{{tag}}"`
|
||||
|
||||
- Filter containers by exit status code:
|
||||
|
||||
`docker {{[ps|container ls]}} {{[-a|--all]}} {{[-f|--filter]}} "exited={{code}}"`
|
||||
|
||||
- Filter containers by status (created, running, removing, paused, exited and dead):
|
||||
|
||||
`docker {{[ps|container ls]}} {{[-f|--filter]}} "status={{status}}"`
|
||||
|
||||
- Filter containers that mount a specific volume or have a volume mounted in a specific path:
|
||||
|
||||
`docker ps {{[-f|--filter]}} "volume={{path/to/directory}}" --format "table {{.ID}} {{.Image}} {{.Names}} {{.Mounts}}"`
|
||||
@@ -5,8 +5,13 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker container rename
|
||||
|
||||
> This command is an alias of `docker rename`.
|
||||
> Rename a container.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/rename/>.
|
||||
|
||||
- View documentation for the original command:
|
||||
- Rename a container:
|
||||
|
||||
`tldr docker rename`
|
||||
`docker {{[rename|container rename]}} {{container}} {{new_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker {{[rename|container rename]}} --help`
|
||||
|
||||
@@ -5,8 +5,21 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker container rm
|
||||
|
||||
> This command is an alias of `docker rm`.
|
||||
> Remove containers.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/rm/>.
|
||||
|
||||
- View documentation for the original command:
|
||||
- Remove containers:
|
||||
|
||||
`tldr docker rm`
|
||||
`docker {{[rm|container rm]}} {{container1 container2 ...}}`
|
||||
|
||||
- Force remove a container:
|
||||
|
||||
`docker {{[rm|container rm]}} {{[-f|--force]}} {{container1 container2 ...}}`
|
||||
|
||||
- Remove a container and its volumes:
|
||||
|
||||
`docker {{[rm|container rm]}} {{[-v|--volumes]}} {{container}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker {{[rm|container rm]}} {{[-h|--help]}}`
|
||||
|
||||
41
tldr/docker-container-run
Normal file
41
tldr/docker-container-run
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker container run
|
||||
|
||||
> Run a command in a new Docker container.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/run/>.
|
||||
|
||||
- Run command in a new container from a tagged image:
|
||||
|
||||
`docker {{[run|container run]}} {{image:tag}} {{command}}`
|
||||
|
||||
- Run command in a new container in background and display its ID:
|
||||
|
||||
`docker {{[run|container run]}} {{[-d|--detach]}} {{image}} {{command}}`
|
||||
|
||||
- Run command in a one-off container in interactive mode and pseudo-TTY:
|
||||
|
||||
`docker {{[run|container run]}} --rm {{[-it|--interactive --tty]}} {{image}} {{command}}`
|
||||
|
||||
- Run command in a new container with passed environment variables:
|
||||
|
||||
`docker {{[run|container run]}} {{[-e|--env]}} '{{variable}}={{value}}' {{[-e|--env]}} {{variable}} {{image}} {{command}}`
|
||||
|
||||
- Run command in a new container with bind mounted volumes:
|
||||
|
||||
`docker {{[run|container run]}} {{[-v|--volume]}} /{{path/to/host_path}}:/{{path/to/container_path}} {{image}} {{command}}`
|
||||
|
||||
- Run command in a new container with published ports:
|
||||
|
||||
`docker {{[run|container run]}} {{[-p|--publish]}} {{host_port}}:{{container_port}} {{image}} {{command}}`
|
||||
|
||||
- Run command in a new container overwriting the entrypoint of the image:
|
||||
|
||||
`docker {{[run|container run]}} --entrypoint {{command}} {{image}}`
|
||||
|
||||
- Run command in a new container connecting it to a network:
|
||||
|
||||
`docker run --network {{network}} {{image}}`
|
||||
25
tldr/docker-container-start
Normal file
25
tldr/docker-container-start
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker container start
|
||||
|
||||
> Start stopped containers.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/start/>.
|
||||
|
||||
- Start a Docker container:
|
||||
|
||||
`docker {{[start|container start]}} {{container}}`
|
||||
|
||||
- Start a container, attaching `stdout` and `stderr`, and forwarding signals:
|
||||
|
||||
`docker {{[start|container start]}} {{[-a|--attach]}} {{container}}`
|
||||
|
||||
- Start one or more containers:
|
||||
|
||||
`docker {{[start|container start]}} {{container1 container2 ...}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker {{[start|container start]}} --help`
|
||||
29
tldr/docker-container-stats
Normal file
29
tldr/docker-container-stats
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker container stats
|
||||
|
||||
> Display a live stream of resource usage statistics for containers.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/stats/>.
|
||||
|
||||
- Display a live stream for the statistics of all running containers:
|
||||
|
||||
`docker {{[stats|container statss}}`
|
||||
|
||||
- Display a live stream of statistics for one or more containers:
|
||||
|
||||
`docker {{[stats|container statss}} {{container1 container2 ...}}`
|
||||
|
||||
- Change the columns format to display container's CPU usage percentage:
|
||||
|
||||
`docker {{[stats|container statss}} --format "{{.Name}}: {{.CPUPerc}}"`
|
||||
|
||||
- Display statistics for all containers (both running and stopped):
|
||||
|
||||
`docker {{[stats|container statss}} {{[-a|--all]}}`
|
||||
|
||||
- Disable streaming stats and only pull the current stats:
|
||||
|
||||
`docker {{[stats|container statss}} --no-stream`
|
||||
@@ -5,8 +5,13 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker container top
|
||||
|
||||
> This command is an alias of `docker top`.
|
||||
> Display the running processes of a container.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/top/>.
|
||||
|
||||
- View documentation for the original command:
|
||||
- Display the running processes of a container:
|
||||
|
||||
`tldr docker top`
|
||||
`docker {{[top|container top]}} {{container}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker {{[top|container top]}} --help`
|
||||
|
||||
34
tldr/docker-container-update
Normal file
34
tldr/docker-container-update
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker container update
|
||||
|
||||
> Update configuration of Docker containers.
|
||||
> This command is not supported for Windows containers.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/container/update/>.
|
||||
|
||||
- Update restart policy to apply when a specific container exits:
|
||||
|
||||
`docker {{[update|container update]}} --restart {{always|no|on-failure|unless-stopped}} {{container_name}}`
|
||||
|
||||
- Update the policy to restart up to three times a specific container when it exits with non-zero exit status:
|
||||
|
||||
`docker {{[update|container update]}} --restart on-failure:3 {{container_name}}`
|
||||
|
||||
- Update the number of CPUs available to a specific container:
|
||||
|
||||
`docker {{[update|container update]}} --cpus {{count}} {{container_name}}`
|
||||
|
||||
- Update the memory limit in [M]egabytes for a specific container:
|
||||
|
||||
`docker {{[update|container update]}} {{[-m|--memory]}} {{limit}}M {{container_name}}`
|
||||
|
||||
- Update the maximum number of process IDs allowed inside a specific container (use `-1` for unlimited):
|
||||
|
||||
`docker {{[update|container update]}} --pids-limit {{count}} {{container_name}}`
|
||||
|
||||
- Update the amount of memory in [M]egabytes a specific container can swap to disk (use `-1` for unlimited):
|
||||
|
||||
`docker {{[update|container update]}} --memory-swap {{limit}}M {{container_name}}`
|
||||
@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List local Docker images:
|
||||
|
||||
`docker image ls`
|
||||
`docker {{[images|image ls]}}`
|
||||
|
||||
- Delete unused local Docker images:
|
||||
|
||||
@@ -23,4 +23,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show the history of a local Docker image:
|
||||
|
||||
`docker image history {{image}}`
|
||||
`docker {{[history|image history]}} {{image}}`
|
||||
|
||||
21
tldr/docker-image-load
Normal file
21
tldr/docker-image-load
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker image load
|
||||
|
||||
> Load Docker images from files or `stdin`.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/image/load/>.
|
||||
|
||||
- Load a Docker image from `stdin`:
|
||||
|
||||
`docker < {{path/to/image_file.tar}} {{[load|image load]}}`
|
||||
|
||||
- Load a Docker image from a specific file:
|
||||
|
||||
`docker {{[load|image load]}} {{[-i|--input]}} {{path/to/image_file.tar}}`
|
||||
|
||||
- Load a Docker image from a specific file in quiet mode:
|
||||
|
||||
`docker {{[load|image load]}} {{[-q|--quiet]}} {{[-i|--input]}} {{path/to/image_file.tar}}`
|
||||
29
tldr/docker-image-pull
Normal file
29
tldr/docker-image-pull
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker image pull
|
||||
|
||||
> Download Docker images from a registry.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/image/pull/>.
|
||||
|
||||
- Download a specific Docker image:
|
||||
|
||||
`docker {{[pull|image pull]}} {{image}}:{{tag}}`
|
||||
|
||||
- Download a specific Docker image in quiet mode:
|
||||
|
||||
`docker {{[pull|image pull]}} {{[-q|--quiet]}} {{image}}:{{tag}}`
|
||||
|
||||
- Download all tags of a specific Docker image:
|
||||
|
||||
`docker {{[pull|image pull]}} {{[-a|--all-tags]}} {{image}}`
|
||||
|
||||
- Download a Docker images for a specific platform, e.g. linux/amd64:
|
||||
|
||||
`docker {{[pull|image pull]}} --platform {{linux/amd64}} {{image}}:{{tag}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker {{[pull|image pull]}} {{[-h|--help]}}`
|
||||
@@ -10,16 +10,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Remove one or more images given their names:
|
||||
|
||||
`docker image rm {{image1 image2 ...}}`
|
||||
`docker {{[rmi|image rm]}} {{image1 image2 ...}}`
|
||||
|
||||
- Force remove an image:
|
||||
|
||||
`docker image rm {{[-f|--force]}} {{image}}`
|
||||
`docker {{[rmi|image rm]}} {{[-f|--force]}} {{image}}`
|
||||
|
||||
- Remove an image without deleting untagged parents:
|
||||
|
||||
`docker image rm --no-prune {{image}}`
|
||||
`docker {{[rmi|image rm]}} --no-prune {{image}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker image rm`
|
||||
`docker {{[rmi|image rm]}}`
|
||||
|
||||
25
tldr/docker-image-save
Normal file
25
tldr/docker-image-save
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker image save
|
||||
|
||||
> Export Docker images to archive.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/image/save/>.
|
||||
|
||||
- Save an image by redirecting `stdout` to a tar archive:
|
||||
|
||||
`docker {{[save|image save]}} {{image}}:{{tag}} > {{path/to/file.tar}}`
|
||||
|
||||
- Save an image to a tar archive:
|
||||
|
||||
`docker {{[save|image save]}} {{[-o|--output]}} {{path/to/file.tar}} {{image}}:{{tag}}`
|
||||
|
||||
- Save all tags of the image:
|
||||
|
||||
`docker {{[save|image save]}} {{[-o|--output]}} {{path/to/file.tar}} {{image_name}}`
|
||||
|
||||
- Cherry-pick particular tags of an image to save:
|
||||
|
||||
`docker {{[save|image save]}} {{[-o|--output]}} {{path/to/file.tar}} {{image_name:tag1 image_name:tag2 ...}}`
|
||||
21
tldr/docker-image-tag
Normal file
21
tldr/docker-image-tag
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker image tag
|
||||
|
||||
> Assign tags to existing Docker images.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/image/tag/>.
|
||||
|
||||
- Assign a name and tag to a specific image ID:
|
||||
|
||||
`docker {{[tag|image tag]}} {{id}} {{name}}:{{tag}}`
|
||||
|
||||
- Assign a tag to a specific image:
|
||||
|
||||
`docker {{[tag|image tag]}} {{image}}:{{current_tag}} {{image}}:{{new_tag}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker {{[tag|image tag]}}`
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# dwebp
|
||||
|
||||
> `dwebp` decompresses WebP files into PNG, PAM, PPM or PGM images.
|
||||
> `dwebp` decompresses WebP files into PNG, PAM, PPM, or PGM images.
|
||||
> Animated WebP files are not supported.
|
||||
> More information: <https://developers.google.com/speed/webp/docs/dwebp/>.
|
||||
|
||||
|
||||
2
tldr/ect
2
tldr/ect
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# ect
|
||||
|
||||
> Efficient Compression Tool.
|
||||
> File optimizer written in C++. It supports PNG, JPEG, gzip and Zip files.
|
||||
> File optimizer written in C++. It supports PNG, JPEG, gzip, and Zip files.
|
||||
> More information: <https://github.com/fhanau/Efficient-Compression-Tool>.
|
||||
|
||||
- Compress a file:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# electron-packager
|
||||
|
||||
> Build Electron app executables for Windows, Linux and macOS.
|
||||
> Build Electron app executables for Windows, Linux, and macOS.
|
||||
> Requires a valid package.json in the application directory.
|
||||
> More information: <https://github.com/electron/electron-packager>.
|
||||
|
||||
|
||||
2
tldr/exa
2
tldr/exa
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`exa {{[-a|--all]}}`
|
||||
|
||||
- Long format list (permissions, ownership, size and modification date) of all files:
|
||||
- Long format list (permissions, ownership, size, and modification date) of all files:
|
||||
|
||||
`exa {{[-l|--long]}} {{[-a|--all]}}`
|
||||
|
||||
|
||||
@@ -8,6 +8,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Convert a Berkeley YUV file to PPM.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/eyuvtoppm.html>.
|
||||
|
||||
- Read a Berkeley YUV file from the specified input file, convert it to a PPM image and store it in the specified output file:
|
||||
- Read a Berkeley YUV file from the specified input file, convert it to a PPM image, and store it in the specified output file:
|
||||
|
||||
`eyuvtoppm --width {{width}} --height {{height}} {{path/to/input_file.eyuv}} > {{path/to/output_file.ppm}}`
|
||||
|
||||
2
tldr/eza
2
tldr/eza
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`eza {{[-a|--all]}}`
|
||||
|
||||
- Long format list (permissions, ownership, size and modification date) of all files:
|
||||
- Long format list (permissions, ownership, size, and modification date) of all files:
|
||||
|
||||
`eza {{[-al|--all --long]}}`
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# fastfetch
|
||||
|
||||
> Display information about your operating system, software and hardware.
|
||||
> Display information about your operating system, software, and hardware.
|
||||
> More information: <https://manned.org/fastfetch>.
|
||||
|
||||
- Display system information:
|
||||
|
||||
4
tldr/fd
4
tldr/fd
@@ -36,3 +36,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Execute a command on each search result returned:
|
||||
|
||||
`fd "{{string|regex}}" {{[-x|--exec]}} {{command}}`
|
||||
|
||||
- Find files only in the current directory:
|
||||
|
||||
`fd {{[-d|--max-depth]}} 1 "{{string|regex}}"`
|
||||
|
||||
2
tldr/feh
2
tldr/feh
@@ -32,7 +32,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`feh {{[-D|--slideshow-delay]}} {{seconds}} {{path/to/images}}`
|
||||
|
||||
- Use a specific wallpaper mode (centered, filled, maximized, scaled or tiled):
|
||||
- Use a specific wallpaper mode (centered, filled, maximized, scaled, or tiled):
|
||||
|
||||
`feh --bg-{{center|fill|max|scale|tile}} {{path/to/image}}`
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# flask-unsign
|
||||
|
||||
> A tool to brute-force, decode and craft `Flask` session cookies.
|
||||
> A tool to brute-force, decode, and craft `Flask` session cookies.
|
||||
> More information: <https://github.com/Paradoxis/Flask-Unsign>.
|
||||
|
||||
- Decode a Flask session cookie:
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`ghdl -a {{filename.vhdl}}`
|
||||
|
||||
- Elaborate a design (where `design` is the name of a configuration unit, entity unit or architecture unit):
|
||||
- Elaborate a design (where `design` is the name of a configuration unit, entity unit, or architecture unit):
|
||||
|
||||
`ghdl -e {{design}}`
|
||||
|
||||
|
||||
@@ -9,6 +9,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Part of `git-extras`.
|
||||
> More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-brv>.
|
||||
|
||||
- List each branch showing date, latest commit hash and message:
|
||||
- List each branch showing date, latest commit hash, and message:
|
||||
|
||||
`git brv`
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- View existing submodules, and the checked-out commit for each one:
|
||||
|
||||
`git submodule status`
|
||||
`git submodule`
|
||||
|
||||
- Install a repository's submodules (listed in `.gitmodules`):
|
||||
|
||||
@@ -24,9 +24,9 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`git submodule add {{repository_url}} {{path/to/directory}}`
|
||||
|
||||
- Update every submodule to its latest commit:
|
||||
- Update submodules to their latest commits:
|
||||
|
||||
`git submodule update --init --recursive --remote`
|
||||
`git submodule update --remote`
|
||||
|
||||
- Change the URL of a submodule:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gleam
|
||||
|
||||
> The compiler, build tool, package manager and code formatter for Gleam, "a friendly language for building type-safe systems that scale!".
|
||||
> The compiler, build tool, package manager, and code formatter for Gleam, "a friendly language for building type-safe systems that scale!".
|
||||
> More information: <https://gleam.run/writing-gleam/command-line-reference/>.
|
||||
|
||||
- Create a new gleam project:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# goenv
|
||||
|
||||
> Install, uninstall or switch between Golang versions.
|
||||
> Install, uninstall, or switch between Golang versions.
|
||||
> Supports version numbers like "1.16.15" or "1.22.8" etc.
|
||||
> More information: <https://github.com/go-nv/goenv>.
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# holehe
|
||||
|
||||
> Check if an email is attached to an account on sites like Twitter, Instagram, Imgur and over 120 others.
|
||||
> Check if an email is attached to an account on sites like Twitter, Instagram, Imgur, and over 120 others.
|
||||
> More information: <https://github.com/megadose/holehe#-cli-example>.
|
||||
|
||||
- Show status across all supported websites for the specified email address:
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Manage the `/etc/hosts` file.
|
||||
> More information: <https://github.com/cbednarski/hostess>.
|
||||
|
||||
- List domains, target IP addresses and on/off status:
|
||||
- List domains, target IP addresses, and on/off status:
|
||||
|
||||
`hostess list`
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# huggingface-cli
|
||||
|
||||
> Interact with Hugging Face Hub.
|
||||
> Login, manage local cache, download or upload files.
|
||||
> Login, manage local cache, download, or upload files.
|
||||
> More information: <https://huggingface.co/docs/huggingface_hub/guides/cli>.
|
||||
|
||||
- Login to Hugging Face Hub:
|
||||
|
||||
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`ibmcloud login -a {{api_endpoint}}`
|
||||
|
||||
- Log in by providing username, password and the targeted region as parameters:
|
||||
- Log in by providing username, password, and the targeted region as parameters:
|
||||
|
||||
`ibmcloud login -u {{username}} -p {{password}} -r {{us-south}}`
|
||||
|
||||
|
||||
22
tldr/ident
Normal file
22
tldr/ident
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ident
|
||||
|
||||
> Identify RCS keyword strings in files.
|
||||
> See also: `ci`, `co`, `rcs`, `rcsdiff`, `rlog`.
|
||||
> More information: <https://manned.org/ident>.
|
||||
|
||||
- Display RCS identification strings in a file:
|
||||
|
||||
`ident {{path/to/file}}`
|
||||
|
||||
- Display RCS identification strings, suppressing warnings if no patterns are found:
|
||||
|
||||
`ident -q {{path/to/file1 path/to/file2 ...}}`
|
||||
|
||||
- Display RCS identification strings from `stdin`:
|
||||
|
||||
`cat {{path/to/file}} | ident`
|
||||
@@ -16,6 +16,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`idevicediagnostics mobilegestalt {{key1}} {{key2}}`
|
||||
|
||||
- Shutdown, restart or sleep the device:
|
||||
- Shutdown, restart, or sleep the device:
|
||||
|
||||
`idevicediagnostics {{shutdown|restart|sleep}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# img2pdf
|
||||
|
||||
> Losslessly convert raster images to a PDF file.
|
||||
> Some supported image formats are: GIF, JPEG, JPEG2000, PNG, GIF and TIFF.
|
||||
> Some supported image formats are: GIF, JPEG, JPEG2000, PNG, GIF, and TIFF.
|
||||
> More information: <https://gitlab.mister-muffin.de/josch/img2pdf>.
|
||||
|
||||
- Convert one or more images to a single PDF, each image being on its own page:
|
||||
@@ -25,6 +25,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`img2pdf {{path/to/image.ext}} --pagesize {{30cm}}x{{20cm}} --imgsize {{10cm}}x{{15cm}} --fit {{shrink}} --output {{path/to/file.pdf}}`
|
||||
|
||||
- Convert an image to PDF, and specify metadata for the resulting file:
|
||||
- Convert an image to PDF and specify metadata for the resulting file:
|
||||
|
||||
`img2pdf {{path/to/image.ext}} --title {{title}} --author {{author}} --creationdate {{1970-01-31}} --keywords {{keyword1 keyword2}} --subject {{subject}} --output {{path/to/file.pdf}}`
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# incus
|
||||
|
||||
> Modern, secure and powerful system container and virtual machine manager.
|
||||
> Modern, secure, and powerful system container and virtual machine manager.
|
||||
> More information: <https://linuxcontainers.org/incus/docs/main>.
|
||||
|
||||
- List all containers and virtual machines (both running and stopped):
|
||||
|
||||
@@ -10,32 +10,32 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start the server with a specific map:
|
||||
|
||||
`{{path/to/ArkAscendedServer}} {{TheIsland_WP}}`
|
||||
`{{path/to}}/ArkAscendedServer {{TheIsland_WP}}`
|
||||
|
||||
- Start the server with a specific session name, server password, and admin password:
|
||||
|
||||
`{{path/to/ArkAscendedServer}} {{TheIsland_WP}}?SessionName={{session_name}}?ServerPassword={{server_password}}?ServerAdminPassword={{admin_password}}`
|
||||
`{{path/to}}/ArkAscendedServer {{TheIsland_WP}}?SessionName={{session_name}}?ServerPassword={{server_password}}?ServerAdminPassword={{admin_password}}`
|
||||
|
||||
- Start the server with a specific port and set a maximum player count:
|
||||
|
||||
`{{path/to/ArkAscendedServer}} {{TheIsland_WP}} -port={{7777}} -WinLiveMaxPlayers={{1..70}}`
|
||||
`{{path/to}}/ArkAscendedServer {{TheIsland_WP}} -port={{7777}} -WinLiveMaxPlayers={{1..70}}`
|
||||
|
||||
- Enable PvE and disabling PvP:
|
||||
|
||||
`{{path/to/ArkAscendedServer}} {{TheIsland_WP}}?ServerPVE=true`
|
||||
`{{path/to}}/ArkAscendedServer {{TheIsland_WP}}?ServerPVE=true`
|
||||
|
||||
- Set a multiplier to scale the server difficulty, affecting the maximum level of wild creatures:
|
||||
|
||||
`{{path/to/ArkAscendedServer}} {{TheIsland_WP}}?DifficultyOffset={{1.0}}`
|
||||
`{{path/to}}/ArkAscendedServer {{TheIsland_WP}}?DifficultyOffset={{1.0}}`
|
||||
|
||||
- Disable creature animation optimization to prevent collision issues:
|
||||
|
||||
`{{path/to/ArkAscendedServer}} {{TheIsland_WP}} -AlwaysTickDedicatedSkeletalMeshes`
|
||||
`{{path/to}}/ArkAscendedServer {{TheIsland_WP}} -AlwaysTickDedicatedSkeletalMeshes`
|
||||
|
||||
- Enable specific mods by their ID (comma-separated):
|
||||
|
||||
`{{path/to/ArkAscendedServer}} {{TheIsland_WP}} -mods={{mod_id1,mod_id2,...}}`
|
||||
`{{path/to}}/ArkAscendedServer {{TheIsland_WP}} -mods={{mod_id1,mod_id2,...}}`
|
||||
|
||||
- Allow connections from specific platforms:
|
||||
|
||||
`{{path/to/ArkAscendedServer}} {{TheIsland_WP}} -ServerPlatform={{PC+XSX+PS5}}`
|
||||
`{{path/to}}/ArkAscendedServer {{TheIsland_WP}} -ServerPlatform={{PC+XSX+PS5}}`
|
||||
|
||||
@@ -10,32 +10,32 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start the server with a specific map:
|
||||
|
||||
`{{path/to/ShooterGameServer}} {{TheIsland}}`
|
||||
`{{path/to}}/ShooterGameServer {{TheIsland}}`
|
||||
|
||||
- Start the server with a specific session name, server password, and admin password:
|
||||
|
||||
`{{path/to/ShooterGameServer}} {{TheIsland}}?SessionName={{session_name}}?ServerPassword={{server_password}}?ServerAdminPassword={{admin_password}}`
|
||||
`{{path/to}}/ShooterGameServer {{TheIsland}}?SessionName={{session_name}}?ServerPassword={{server_password}}?ServerAdminPassword={{admin_password}}`
|
||||
|
||||
- Start the server with a specific port and set a maximum player count:
|
||||
|
||||
`{{path/to/ShooterGameServer}} {{TheIsland}}?Port={{7777}}?MaxPlayers={{1..70}}`
|
||||
`{{path/to}}/ShooterGameServer {{TheIsland}}?Port={{7777}}?MaxPlayers={{1..70}}`
|
||||
|
||||
- Enable PvE and disabling PvP:
|
||||
|
||||
`{{path/to/ShooterGameServer}} {{TheIsland}}?ServerPVE=true`
|
||||
`{{path/to}}/ShooterGameServer {{TheIsland}}?ServerPVE=true`
|
||||
|
||||
- Set a multiplier to scale the server difficulty, affecting the maximum level of wild creatures:
|
||||
|
||||
`{{path/to/ShooterGameServer}} {{TheIsland}}?DifficultyOffset={{1.0}}`
|
||||
`{{path/to}}/ShooterGameServer {{TheIsland}}?DifficultyOffset={{1.0}}`
|
||||
|
||||
- Enable a specific event:
|
||||
|
||||
`{{path/to/ShooterGameServer}} {{TheIsland}} -ActiveEvent={{Summer}}`
|
||||
`{{path/to}}/ShooterGameServer {{TheIsland}} -ActiveEvent={{Summer}}`
|
||||
|
||||
- Enable automatic mod downloading, installation, and updating (Steam only):
|
||||
|
||||
`{{path/to/ShooterGameServer}} {{TheIsland}} -automanagedmods`
|
||||
`{{path/to}}/ShooterGameServer {{TheIsland}} -automanagedmods`
|
||||
|
||||
- Enable crossplay between Steam and Epic Games Store:
|
||||
|
||||
`{{path/to/ShooterGameServer}} {{TheIsland}} -crossplay -PublicIPForEpic={{ip_address}}`
|
||||
`{{path/to}}/ShooterGameServer {{TheIsland}} -crossplay -PublicIPForEpic={{ip_address}}`
|
||||
|
||||
@@ -11,4 +11,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start the server:
|
||||
|
||||
`{{path/to/DedicatedServer}}`
|
||||
`{{path/to}}/DedicatedServer`
|
||||
|
||||
@@ -10,15 +10,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run a game with one map:
|
||||
|
||||
`{{path/to/cs2}} -dedicated +map {{de_dust2}}`
|
||||
`{{path/to}}/cs2 -dedicated +map {{de_dust2}}`
|
||||
|
||||
- Run a game with specified maximum number of players:
|
||||
|
||||
`{{path/to/cs2}} -dedicated +map {{de_dust2}} -maxplayers {{64}}`
|
||||
`{{path/to}}/cs2 -dedicated +map {{de_dust2}} -maxplayers {{64}}`
|
||||
|
||||
- Run a game with specified server IP and port:
|
||||
|
||||
`{{path/to/cs2}} -dedicated +map {{de_dust2}} -ip {{1.2.3.4}} -port {{27015}}`
|
||||
`{{path/to}}/cs2 -dedicated +map {{de_dust2}} -ip {{1.2.3.4}} -port {{27015}}`
|
||||
|
||||
- Shut the server down:
|
||||
|
||||
|
||||
@@ -10,15 +10,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a new save file:
|
||||
|
||||
`{{path/to/factorio}} --create {{path/to/save_file.zip}}`
|
||||
`{{path/to}}/factorio --create {{path/to/save_file.zip}}`
|
||||
|
||||
- Start a Factorio server:
|
||||
|
||||
`{{path/to/factorio}} --start-server {{path/to/save_file.zip}}`
|
||||
`{{path/to}}/factorio --start-server {{path/to/save_file.zip}}`
|
||||
|
||||
- Create a new save file with specific settings:
|
||||
|
||||
`{{path/to/factorio}} --create {{path/to/save.zip}} --map-gen-settings {{path/to/map-gen-settings.json}} --map-settings {{path/to/map-settings.json}}`
|
||||
`{{path/to}}/factorio --create {{path/to/save.zip}} --map-gen-settings {{path/to/map-gen-settings.json}} --map-settings {{path/to/map-settings.json}}`
|
||||
|
||||
- Shut the server gracefully:
|
||||
|
||||
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`{{path/to/factorio}} {{[-h|--help]}}`
|
||||
`{{path/to}}/factorio {{[-h|--help]}}`
|
||||
|
||||
@@ -17,6 +17,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo fatrace {{[-C|--command]}} {{program_name}}`
|
||||
|
||||
- Print file access events on the mount of the current directory, with timestamps, to `stdout`:
|
||||
- Print file access events on the mount of the current directory to `stdout`:
|
||||
|
||||
`sudo fatrace {{[-ct|--current-mount --timestamp]}}`
|
||||
`sudo fatrace {{[-c|--current-mount]}}`
|
||||
|
||||
- Add timestamps to the printout:
|
||||
|
||||
`sudo fatrace {{[-t|--timestamp]}}`
|
||||
|
||||
@@ -10,28 +10,28 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start a server with the default settings:
|
||||
|
||||
`{{path/to/server_linux}}`
|
||||
`{{path/to}}/server_linux`
|
||||
|
||||
- Give a server a custom name that shows in the server browser:
|
||||
|
||||
`{{path/to/server_linux}} -name '{{server_name}}'`
|
||||
`{{path/to}}/server_linux -name '{{server_name}}'`
|
||||
|
||||
- Specify a connection port for the server:
|
||||
|
||||
`{{path/to/server_linux}} -port {{27015}}`
|
||||
`{{path/to}}/server_linux -port {{27015}}`
|
||||
|
||||
- Specify maximum player count:
|
||||
|
||||
`{{path/to/server_linux}} -limit {{2..24}}`
|
||||
`{{path/to}}/server_linux -limit {{2..24}}`
|
||||
|
||||
- Specify the initial map the server starts on:
|
||||
|
||||
`{{path/to/server_linux}} -map {{ns2_summit}}`
|
||||
`{{path/to}}/server_linux -map {{ns2_summit}}`
|
||||
|
||||
- Limit access to the server with a password:
|
||||
|
||||
`{{path/to/server_linux}} -password {{password}}`
|
||||
`{{path/to}}/server_linux -password {{password}}`
|
||||
|
||||
- Start a server with webui admin interface:
|
||||
|
||||
`{{path/to/server_linux}} -webadmin -webport {{8080}}`
|
||||
`{{path/to}}/server_linux -webadmin -webport {{8080}}`
|
||||
|
||||
@@ -10,20 +10,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start the server with default settings:
|
||||
|
||||
`{{path/to/PalServer.sh}}`
|
||||
`{{path/to}}/PalServer.sh`
|
||||
|
||||
- Start the server with a specific port and set a maximum player count:
|
||||
|
||||
`{{path/to/PalServer.sh}} -port={{8211}} -players={{1..32}}`
|
||||
`{{path/to}}/PalServer.sh -port={{8211}} -players={{1..32}}`
|
||||
|
||||
- Start a public lobby server:
|
||||
|
||||
`{{path/to/PalServer.sh}} -publiclobby`
|
||||
`{{path/to}}/PalServer.sh -publiclobby`
|
||||
|
||||
- Start the server with performance optimizations for multi-threaded CPUs:
|
||||
|
||||
`{{path/to/PalServer.sh}} -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS`
|
||||
`{{path/to}}/PalServer.sh -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS`
|
||||
|
||||
- Start the server with a specific public IP and port for community servers:
|
||||
|
||||
`{{path/to/PalServer.sh}} -publicip={{ip_address}} -publicport={{port}}`
|
||||
`{{path/to}}/PalServer.sh -publicip={{ip_address}} -publicport={{port}}`
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pkgctl release
|
||||
|
||||
> Release step to commit, tag and upload build artifacts.
|
||||
> Release step to commit, tag, and upload build artifacts.
|
||||
> More information: <https://manned.org/pkgctl-release>.
|
||||
|
||||
- Release a build artifact:
|
||||
|
||||
@@ -10,8 +10,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start the server:
|
||||
|
||||
`{{path/to/start-server.sh}}`
|
||||
`{{path/to}}/start-server.sh`
|
||||
|
||||
- Start a server with a specific name:
|
||||
|
||||
`{{path/to/start-server.sh}} -servername {{server_name}}`
|
||||
`{{path/to}}/start-server.sh -servername {{server_name}}`
|
||||
|
||||
@@ -9,15 +9,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> See also: `awk`, `ed`.
|
||||
> More information: <https://www.gnu.org/software/sed/manual/sed.html>.
|
||||
|
||||
- Replace `apple` with `mango` on all lines using basic `regex`, print to `stdout`:
|
||||
- Replace "apple" with "mango" on all lines using basic `regex`, print to `stdout`:
|
||||
|
||||
`{{command}} | sed 's/apple/mango/g'`
|
||||
|
||||
- Replace `apple` with `APPLE` on all lines using extended `regex`, print to `stdout`:
|
||||
- Replace "apple" with "APPLE" on all lines using extended `regex`, print to `stdout`:
|
||||
|
||||
`{{command}} | sed {{[-E|--regexp-extended]}} 's/(apple)/\U\1/g'`
|
||||
|
||||
- Use basic `regex` to replace `apple` with `mango` and `orange` with `lime` in-place in a file (overwriting original file):
|
||||
- Use basic `regex` to replace "apple" with "mango" and "orange" with "lime" in-place in a file (overwriting original file):
|
||||
|
||||
`sed {{[-i|--in-place]}} -e 's/apple/mango/g' -e 's/orange/lime/g' {{path/to/file}}`
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`systemd-analyze blame`
|
||||
|
||||
- Print a tree of the time-critical chain of units:
|
||||
- Print a tree of the time-critical chain of bootup units:
|
||||
|
||||
`systemd-analyze critical-chain`
|
||||
|
||||
@@ -33,6 +33,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`systemd-analyze security`
|
||||
|
||||
- View all udev rules together:
|
||||
- View all udev rules together without showing comments:
|
||||
|
||||
`systemd-analyze cat-config udev/rules.d`
|
||||
`systemd-analyze cat-config udev/rules.d --tldr`
|
||||
|
||||
@@ -10,8 +10,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start an interactive server setup:
|
||||
|
||||
`{{path/to/TerrariaServer}}`
|
||||
`{{path/to}}/TerrariaServer`
|
||||
|
||||
- Start a Terraria server:
|
||||
|
||||
`{{path/to/TerrariaServer}} -world {{path/to/world.wld}}`
|
||||
`{{path/to}}/TerrariaServer -world {{path/to/world.wld}}`
|
||||
|
||||
@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start the server:
|
||||
|
||||
`{{path/to/start_server.sh}}`
|
||||
`{{path/to}}/start_server.sh`
|
||||
|
||||
- Stop the server gracefully:
|
||||
|
||||
|
||||
33
tldr/ng-analytics
Normal file
33
tldr/ng-analytics
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ng analytics
|
||||
|
||||
> Manage Angular CLI analytics settings.
|
||||
> More information: <https://angular.dev/cli/analytics>.
|
||||
|
||||
- Enable analytics for the current project:
|
||||
|
||||
`ng analytics {{[on|enable]}}`
|
||||
|
||||
- Enable analytics globally:
|
||||
|
||||
`ng analytics {{[on|enable]}} {{[-g|--global]}}`
|
||||
|
||||
- Disable analytics for the current project:
|
||||
|
||||
`ng analytics {{[off|disable]}}`
|
||||
|
||||
- Disable analytics globally:
|
||||
|
||||
`ng analytics {{[off|disable]}} {{[-g|--global]}}`
|
||||
|
||||
- Display the current analytics configuration and status:
|
||||
|
||||
`ng analytics info`
|
||||
|
||||
- Prompt interactively to configure analytics settings:
|
||||
|
||||
`ng analytics prompt`
|
||||
33
tldr/nix-eval
Normal file
33
tldr/nix-eval
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# nix eval
|
||||
|
||||
> Evaluate a Nix expression and print the result to `stdout`.
|
||||
> More information: <https://nix.dev/manual/nix/stable/command-ref/new-cli/nix3-eval.html>.
|
||||
|
||||
- Evaluate Nix flake attributes in the current directory:
|
||||
|
||||
`nix eval .#{{attributes}}`
|
||||
|
||||
- Evaluate a given Nix expression:
|
||||
|
||||
`nix eval --expr '{{your_expression}}'`
|
||||
|
||||
- Evaluate a Nix expression from a specified file:
|
||||
|
||||
`nix eval --file {{path/to/file}}`
|
||||
|
||||
- Print the store path of the specified package from nixpkgs:
|
||||
|
||||
`nix eval {{nixpkgs#pkg}} --raw`
|
||||
|
||||
- Evaluate attributes from a flake directly from GitHub:
|
||||
|
||||
`nix eval {{github:owner/repo#attributes}}`
|
||||
|
||||
- Evaluate a given lambda function passing the specified package as argument:
|
||||
|
||||
`nix eval {{nixpkgs#pkg}} --apply '{{lambda_function}}'`
|
||||
@@ -6,12 +6,9 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# nix flake
|
||||
|
||||
> Manage Nix flakes.
|
||||
> Some subcommands such as `init`, `show`, `info` have their own usage documentation.
|
||||
> More information: <https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake.html>.
|
||||
|
||||
- Create a new flake (just the `flake.nix` file) from the default template, in the current directory:
|
||||
|
||||
`nix flake init`
|
||||
|
||||
- Update all inputs (dependencies) of the flake in the current directory:
|
||||
|
||||
`nix flake update`
|
||||
@@ -20,9 +17,13 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`nix flake update {{input}}`
|
||||
|
||||
- Show all the outputs of a flake on github:
|
||||
- Clone a GitHub repository containing a flake:
|
||||
|
||||
`nix flake show {{github:owner/repo}}`
|
||||
`nix flake clone {{github:owner/repo#attributes}}`
|
||||
|
||||
- Create missing lock file entries for a flake in a specified directory:
|
||||
|
||||
`nix flake lock {{path/to/flake}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
21
tldr/nix-flake-info
Normal file
21
tldr/nix-flake-info
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# nix flake info
|
||||
|
||||
> Show flake metadata.
|
||||
> More information: <https://nix.dev/manual/nix/stable/command-ref/new-cli/nix3-flake-info>.
|
||||
|
||||
- Show flake metadata of the flake in the current directory:
|
||||
|
||||
`nix flake info`
|
||||
|
||||
- Show flake metadata from GitHub as a json on a single line:
|
||||
|
||||
`nix flake info {{github:owner/repo}} --json --no-pretty`
|
||||
|
||||
- Show flake metadata from Github as a multi-line indented json:
|
||||
|
||||
`nix flake info {{github:owner/repo}} --json --pretty`
|
||||
17
tldr/nix-flake-init
Normal file
17
tldr/nix-flake-init
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# nix flake init
|
||||
|
||||
> Create a flake in the current directory from a template.
|
||||
> More information: <https://nix.dev/manual/nix/stable/command-ref/new-cli/nix3-flake-init.html>.
|
||||
|
||||
- Create a new flake from the default template, in the current directory:
|
||||
|
||||
`nix flake init`
|
||||
|
||||
- Create a new flake with a specified template (see `nix flake show` for information about templates):
|
||||
|
||||
`nix flake init {{[-t|--template]}} templates#{{your_template}}`
|
||||
25
tldr/nix-flake-show
Normal file
25
tldr/nix-flake-show
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# nix flake show
|
||||
|
||||
> Show outputs provided by a flake.
|
||||
> More information: <https://nix.dev/manual/nix/stable/command-ref/new-cli/nix3-flake-show.html>.
|
||||
|
||||
- Show all the outputs of the flake in the current directory:
|
||||
|
||||
`nix flake show`
|
||||
|
||||
- Show all the outputs of a flake on GitHub and print the output as a json on a single line:
|
||||
|
||||
`nix flake show {{github:owner/repo}} --json --no-pretty`
|
||||
|
||||
- Show all the `legacyPackages` outputs of a flake on GitHub and print the output as a multi-line indented json:
|
||||
|
||||
`nix flake show {{github:owner/repo}} --json --pretty --legacy`
|
||||
|
||||
- List all available flake templates for `nix flake init`:
|
||||
|
||||
`nix flake show templates`
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# mysides
|
||||
|
||||
> Add, list and remove finder favorites.
|
||||
> Add, list, and remove finder favorites.
|
||||
> More information: <https://github.com/mosen/mysides#usage>.
|
||||
|
||||
- List sidebar favorites:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# open
|
||||
|
||||
> Open files, directories and applications.
|
||||
> Open files, directories, and applications.
|
||||
> More information: <https://keith.github.io/xcode-man-pages/open.1.html>.
|
||||
|
||||
- Open a file with the associated application:
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`systemsetup -setremotelogin on`
|
||||
|
||||
- Specify timezone, NTP Server and enable network time:
|
||||
- Specify timezone, NTP Server, and enable network time:
|
||||
|
||||
`systemsetup -settimezone "{{US/Pacific}}" -setnetworktimeserver {{us.pool.ntp.org}} -setusingnetworktime on`
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# tart
|
||||
|
||||
> Build, run and manage macOS and Linux virtual machines (VMs) on Apple Silicon.
|
||||
> Build, run, and manage macOS and Linux virtual machines (VMs) on Apple Silicon.
|
||||
> More information: <https://github.com/cirruslabs/tart>.
|
||||
|
||||
- Pull a remote VM image:
|
||||
|
||||
@@ -8,6 +8,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Tell how long the system has been running and other information.
|
||||
> More information: <https://keith.github.io/xcode-man-pages/uptime.1.html>.
|
||||
|
||||
- Print current time, uptime, number of logged-in users and other information:
|
||||
- Print current time, uptime, number of logged-in users, and other information:
|
||||
|
||||
`uptime`
|
||||
|
||||
@@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`wc -m {{path/to/file}}`
|
||||
|
||||
- Use `stdin` to count lines, words and characters (bytes) in that order:
|
||||
- Use `stdin` to count lines, words, and characters (bytes) in that order:
|
||||
|
||||
`{{find .}} | wc`
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# xcodes
|
||||
|
||||
> Download, install and manage multiple Xcode versions.
|
||||
> Download, install, and manage multiple Xcode versions.
|
||||
> See also: `xcodes runtimes`.
|
||||
> More information: <https://github.com/xcodesorg/xcodes#commands>.
|
||||
|
||||
|
||||
30
tldr/rcs
Normal file
30
tldr/rcs
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# rcs
|
||||
|
||||
> Revision Control System - manage RCS file attributes.
|
||||
> See also: `ci`, `co`, `rcsdiff`, `rlog`.
|
||||
> More information: <https://manned.org/rcs>.
|
||||
|
||||
- Unlock a revision locked by another user (requires access):
|
||||
|
||||
`rcs -u {{path/to/file}}`
|
||||
|
||||
- Lock a specific revision of a file:
|
||||
|
||||
`rcs -l{{revision}} {{path/to/file}}`
|
||||
|
||||
- Set the strict locking mode (require lock for check-in):
|
||||
|
||||
`rcs -L {{path/to/file}}`
|
||||
|
||||
- Add or replace a log message for a specific revision:
|
||||
|
||||
`rcs -m{{revision}}:"{{new_message}}" {{path/to/file}}`
|
||||
|
||||
- Delete a specific revision from the RCS file:
|
||||
|
||||
`rcs -o{{revision}} {{path/to/file}}`
|
||||
30
tldr/rcsdiff
Normal file
30
tldr/rcsdiff
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# rcsdiff
|
||||
|
||||
> Compare RCS revisions (show differences between revisions in RCS files).
|
||||
> See also: `ci`, `co`, `rcs`, `rlog`.
|
||||
> More information: <https://manned.org/rcsdiff>.
|
||||
|
||||
- Compare the working file with the latest revision:
|
||||
|
||||
`rcsdiff {{path/to/file}}`
|
||||
|
||||
- Compare the working file with a specific revision:
|
||||
|
||||
`rcsdiff -r{{revision}} {{path/to/file}}`
|
||||
|
||||
- Compare two specific revisions of a file:
|
||||
|
||||
`rcsdiff -r{{revision1}} -r{{revision2}} {{path/to/file}}`
|
||||
|
||||
- Show differences in unified format:
|
||||
|
||||
`rcsdiff -u {{path/to/file}}`
|
||||
|
||||
- Show differences with context lines:
|
||||
|
||||
`rcsdiff -c {{path/to/file}}`
|
||||
26
tldr/rcsmerge
Normal file
26
tldr/rcsmerge
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# rcsmerge
|
||||
|
||||
> Merge RCS revisions into the working file.
|
||||
> See also: `ci`, `co`, `rcs`, `rcsdiff`, `rlog`.
|
||||
> More information: <https://manned.org/rcsmerge>.
|
||||
|
||||
- Merge differences between two revisions into the working file:
|
||||
|
||||
`rcsmerge -r{{revision1}} -r{{revision2}} {{path/to/file}}`
|
||||
|
||||
- Merge changes from a branch revision into the working file:
|
||||
|
||||
`rcsmerge -r{{branch_revision}} {{path/to/file}}`
|
||||
|
||||
- Perform a quiet merge (suppress diagnostics):
|
||||
|
||||
`rcsmerge -q -r{{revision1}} -r{{revision2}} {{path/to/file}}`
|
||||
|
||||
- Print the result to `stdout` instead of overwriting the working file:
|
||||
|
||||
`rcsmerge -p -r{{revision1}} -r{{revision2}} {{path/to/file}}`
|
||||
30
tldr/rlog
Normal file
30
tldr/rlog
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# rlog
|
||||
|
||||
> Print the revision log of RCS files.
|
||||
> See also: `ci`, `co`, `rcs`, `rcsdiff`.
|
||||
> More information: <https://manned.org/rlog>.
|
||||
|
||||
- Display the complete revision history of a file:
|
||||
|
||||
`rlog {{path/to/file}}`
|
||||
|
||||
- Display only the header information (no revision details):
|
||||
|
||||
`rlog -h {{path/to/file}}`
|
||||
|
||||
- Display information for a specific revision:
|
||||
|
||||
`rlog -r{{revision}} {{path/to/file}}`
|
||||
|
||||
- Display revisions within a date range:
|
||||
|
||||
`rlog -d"{{start_date}}<{{end_date}}" {{path/to/file}}`
|
||||
|
||||
- Display revisions by a specific author:
|
||||
|
||||
`rlog -w{{author}} {{path/to/file}}`
|
||||
37
tldr/sunos/zoneadm
Normal file
37
tldr/sunos/zoneadm
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, sunos]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# zoneadm
|
||||
|
||||
> Administer Oracle Solaris zones.
|
||||
> More information: <https://docs.oracle.com/cd/E88353_01/html/E72487/zoneadm-8.html>.
|
||||
|
||||
- List all zones and their current status:
|
||||
|
||||
`zoneadm list -cv`
|
||||
|
||||
- Verify the configuration of a specific zone:
|
||||
|
||||
`sudo zoneadm -z {{zone_name}} verify`
|
||||
|
||||
- Install a zone:
|
||||
|
||||
`sudo zoneadm -z {{zone_name}} install`
|
||||
|
||||
- Boot (start) a zone:
|
||||
|
||||
`sudo zoneadm -z {{zone_name}} boot`
|
||||
|
||||
- Reboot a zone:
|
||||
|
||||
`sudo zoneadm -z {{zone_name}} reboot`
|
||||
|
||||
- Halt (stop) a zone, bypassing any shutdown scripts inside the zone:
|
||||
|
||||
`sudo zoneadm -z {{zone_name}} halt`
|
||||
|
||||
- Uninstall a zone:
|
||||
|
||||
`sudo zoneadm -z {{zone_name}} uninstall`
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# whisper
|
||||
|
||||
> Convert audio files to `txt`, `vtt`, `srt`, `tsv` and `json`.
|
||||
> Convert audio files to `txt`, `vtt`, `srt`, `tsv`, and `json`.
|
||||
> More information: <https://github.com/openai/whisper>.
|
||||
|
||||
- Convert a specific audio file to all of the given file formats:
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user