mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-06 04:44:43 +00:00
Update cheatsheets
This commit is contained in:
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# aireplay-ng
|
||||
|
||||
> Inject packets into a wireless network.
|
||||
> Part of `aircrack-ng`.
|
||||
> 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:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# airmon-ng
|
||||
|
||||
> Activate monitor mode on wireless network devices.
|
||||
> Part of `aircrack-ng`.
|
||||
> Part of Aircrack-ng network software suite.
|
||||
> More information: <https://www.aircrack-ng.org/doku.php?id=airmon-ng>.
|
||||
|
||||
- List wireless devices and their statuses:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# airodump-ng
|
||||
|
||||
> Capture packets and display information about wireless networks.
|
||||
> Part of `aircrack-ng`.
|
||||
> Part of Aircrack-ng network software suite.
|
||||
> More information: <https://www.aircrack-ng.org/doku.php?id=airodump-ng>.
|
||||
|
||||
- Capture packets and display information about wireless network(s) on the 2.4GHz band:
|
||||
|
||||
37
tldr/conda-config
Normal file
37
tldr/conda-config
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# conda config
|
||||
|
||||
> Modify configuration values in `.condarc`.
|
||||
> More information: <https://docs.conda.io/projects/conda/en/latest/commands/config.html>.
|
||||
|
||||
- Show all configuration values:
|
||||
|
||||
`conda config --show`
|
||||
|
||||
- Show current value of a configuration option:
|
||||
|
||||
`conda config --show {{config_option}}`
|
||||
|
||||
- Set a configuration value:
|
||||
|
||||
`conda config --set {{key}} {{value}}`
|
||||
|
||||
- Remove a configuration value:
|
||||
|
||||
`conda config --remove {{key}} {{value}}`
|
||||
|
||||
- Append a value to an existing configuration key list:
|
||||
|
||||
`conda config --append {{key}} {{value}}`
|
||||
|
||||
- Prepend a value to an existing configuration key list:
|
||||
|
||||
`conda config --prepend {{key}} {{value}}`
|
||||
|
||||
- Describe given configuration option:
|
||||
|
||||
`conda config --describe {{config_option}}`
|
||||
13
tldr/dos/cls
Normal file
13
tldr/dos/cls
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, dos]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# CLS
|
||||
|
||||
> Clear the screen and reset colors.
|
||||
> More information: <https://help.fdos.org/en/hhstndrd/batch/cls.htm>.
|
||||
|
||||
- Clear the screen resetting colors to white on black:
|
||||
|
||||
`CLS`
|
||||
34
tldr/dos/path
Normal file
34
tldr/dos/path
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, dos]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# PATH
|
||||
|
||||
> Display or set the search path for executable files.
|
||||
> This command is available in `FreeDOS` only.
|
||||
> More information: <https://help.fdos.org/en/hhstndrd/batch/path.htm>.
|
||||
|
||||
- Display the current search path:
|
||||
|
||||
`PATH`
|
||||
|
||||
- Set the semicolon-separated list of directories to search in:
|
||||
|
||||
`PATH {{path/to/directory1;path/to/directory2;...}}`
|
||||
|
||||
- Append a directory to the search path:
|
||||
|
||||
`PATH %PATH%;{{path/to/directory}}`
|
||||
|
||||
- Add a directory to the beginning of the search path:
|
||||
|
||||
`PATH {{path/to/directory}};%PATH%`
|
||||
|
||||
- Clear the search path:
|
||||
|
||||
`PATH;`
|
||||
|
||||
- Display help:
|
||||
|
||||
`PATH /?`
|
||||
30
tldr/linux/cliphist
Normal file
30
tldr/linux/cliphist
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# cliphist
|
||||
|
||||
> Manage clipboard history for Wayland compositors.
|
||||
> Works with `wl-copy` and `wl-paste`.
|
||||
> More information: <https://github.com/sentriz/cliphist>.
|
||||
|
||||
- List clipboard history entries:
|
||||
|
||||
`cliphist list`
|
||||
|
||||
- Select and copy a previous clipboard entry (using `fzf`):
|
||||
|
||||
`cliphist list | fzf | cliphist decode | wl-copy`
|
||||
|
||||
- Delete all stored clipboard entries:
|
||||
|
||||
`cliphist wipe`
|
||||
|
||||
- Delete a specific clipboard entry by ID:
|
||||
|
||||
`cliphist delete {{id}}`
|
||||
|
||||
- Save the current clipboard content manually:
|
||||
|
||||
`wl-paste | cliphist store`
|
||||
35
tldr/linux/dnf-reposync
Normal file
35
tldr/linux/dnf-reposync
Normal file
@@ -0,0 +1,35 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# dnf reposync
|
||||
|
||||
> Synchronize packages and metadata of a remote DNF repository to a local directory.
|
||||
> Not default to `dnf` but supported via `dnf-plugins-core`.
|
||||
> See also: `dnf`.
|
||||
> More information: <https://dnf-plugins-core.readthedocs.io/en/latest/reposync.html>.
|
||||
|
||||
- Synchronize all packages from the repository with id `repo_name` to a subdirectory `repo_name` of the current working directory:
|
||||
|
||||
`dnf reposync --repoid {{repo_name}}`
|
||||
|
||||
- Synchronize all packages and define a custom save location:
|
||||
|
||||
`dnf reposync --repoid {{repo_name}} {{[-p|--download-path]}} {{path/to/directory}}`
|
||||
|
||||
- Synchronize all packages and metadata:
|
||||
|
||||
`dnf reposync --repoid {{repo_name}} --download-metadata`
|
||||
|
||||
- Download only newest packages per-repo:
|
||||
|
||||
`dnf reposync --repoid {{repo_name}} {{[-n|--newest-only]}}`
|
||||
|
||||
- Just print URLs of what would be downloaded, don’t download:
|
||||
|
||||
`dnf reposync --repoid {{repo_name}} {{[-u|--urls]}}`
|
||||
|
||||
- Try to set the timestamps of the downloaded files to those on the remote side:
|
||||
|
||||
`dnf reposync --repoid {{repo_name}} --remote-time`
|
||||
34
tldr/linux/limine
Normal file
34
tldr/linux/limine
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# limine
|
||||
|
||||
> An advanced, portable, multiprotocol bootloader.
|
||||
> See also: `limine-enroll-config`, `limine-entry-tool`, `limine-snapper-sync`.
|
||||
> More information: <https://codeberg.org/Limine/Limine>.
|
||||
|
||||
- Install Limine to an MBR-partitioned disk:
|
||||
|
||||
`limine bios-install {{/dev/sdX}}`
|
||||
|
||||
- Install Limine to a GPT-partitioned disk with a specific BIOS boot partition:
|
||||
|
||||
`limine bios-install {{/dev/sdX}} {{partition_number}}`
|
||||
|
||||
- Install Limine to a disk image file:
|
||||
|
||||
`limine bios-install {{path/to/image.iso}}`
|
||||
|
||||
- Install Limine for modern UEFI systems (requires the `limine-entry-tool` package):
|
||||
|
||||
`limine-install`
|
||||
|
||||
- Update boot entries after a kernel upgrade (requires the `limine-entry-tool` package):
|
||||
|
||||
`limine-update`
|
||||
|
||||
- Scan for other operating systems to add to the boot menu (requires the `limine-entry-tool` package):
|
||||
|
||||
`limine-scan`
|
||||
22
tldr/linux/limine-enroll-config
Normal file
22
tldr/linux/limine-enroll-config
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# limine-enroll-config
|
||||
|
||||
> Embed or reset the BLAKE2B hash of `limine.conf` in the Limine EFI executable.
|
||||
> Used to ensure the configuration file has not been tampered with when Secure Boot is enabled.
|
||||
> More information: <https://codeberg.org/Limine/Limine/src/branch/trunk/USAGE.md#secure-boot>.
|
||||
|
||||
- Embed a config file's BLAKE2B hash into the Limine EFI executable:
|
||||
|
||||
`limine-enroll-config {{path/to/BOOTX64.EFI}} {{blake2b_hash}}`
|
||||
|
||||
- Remove the enrolled hash from the executable, disabling the config integrity check:
|
||||
|
||||
`limine-enroll-config --reset {{path/to/BOOTX64.EFI}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`limine-enroll-config --help`
|
||||
33
tldr/linux/limine-entry-tool
Normal file
33
tldr/linux/limine-entry-tool
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# limine-entry-tool
|
||||
|
||||
> A helper script to manage Limine bootloader entries on UEFI systems.
|
||||
> More information: <https://gitlab.com/Zesko/limine-entry-tool>.
|
||||
|
||||
- Scan for other active UEFI boot entries and add them to the Limine menu:
|
||||
|
||||
`limine-entry-tool --scan`
|
||||
|
||||
- Add a new kernel boot entry with an initramfs and a kernel file:
|
||||
|
||||
`limine-entry-tool --add "{{kernel_name}}" "{{path/to/initramfs}}" "{{path/to/vmlinuz}}"`
|
||||
|
||||
- Add a new Unified Kernel Image (UKI) boot entry:
|
||||
|
||||
`limine-entry-tool --add-uki "{{kernel_name}}" "{{path/to/uki.efi}}"`
|
||||
|
||||
- Remove a kernel boot entry and its associated files from the ESP:
|
||||
|
||||
`limine-entry-tool --remove "{{kernel_name}}"`
|
||||
|
||||
- Remove an entire OS entry by its name or machine ID:
|
||||
|
||||
`limine-entry-tool --remove-os "{{OS_name|machine_id}}"`
|
||||
|
||||
- Add an EFI boot entry for an alternative bootloader (e.g., Windows):
|
||||
|
||||
`limine-entry-tool --add-efi "{{EFI_entry_name}}" "{{path/to/loader.efi}}"`
|
||||
12
tldr/linux/limine-scan
Normal file
12
tldr/linux/limine-scan
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# limine-scan
|
||||
|
||||
> This command is an alias of `limine-entry-tool --scan`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr limine-entry-tool`
|
||||
29
tldr/linux/limine-snapper-sync
Normal file
29
tldr/linux/limine-snapper-sync
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# limine-snapper-sync
|
||||
|
||||
> Synchronize Limine boot menu entries with Btrfs snapshots managed by Snapper.
|
||||
> More information: <https://gitlab.com/Zesko/limine-snapper-sync>.
|
||||
|
||||
- Manually synchronize Snapper snapshots to create boot entries in Limine:
|
||||
|
||||
`limine-snapper-sync`
|
||||
|
||||
- List the current snapshot entries managed by Limine:
|
||||
|
||||
`limine-snapper-list`
|
||||
|
||||
- Display detailed information about bootable snapshots and their files:
|
||||
|
||||
`limine-snapper-info`
|
||||
|
||||
- Restore the system from a selected bootable snapshot:
|
||||
|
||||
`limine-snapper-restore`
|
||||
|
||||
- Start the watcher process to monitor for Snapper snapshot changes:
|
||||
|
||||
`limine-snapper-watcher`
|
||||
29
tldr/linux/mhwd-kernel
Normal file
29
tldr/linux/mhwd-kernel
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# mhwd-kernel
|
||||
|
||||
> Manage and install Linux kernels in Manjaro.
|
||||
> More information: <https://wiki.manjaro.org/index.php/Manjaro_Kernels>.
|
||||
|
||||
- List all available kernels:
|
||||
|
||||
`mhwd-kernel {{[-l|--list]}}`
|
||||
|
||||
- List all installed kernels:
|
||||
|
||||
`mhwd-kernel {{[-li|--listinstalled]}}`
|
||||
|
||||
- Install a kernel:
|
||||
|
||||
`sudo mhwd-kernel {{[-i|--install]}} {{kernel}}`
|
||||
|
||||
- Remove a kernel:
|
||||
|
||||
`sudo mhwd-kernel {{[-r|--remove]}} {{kernel}}`
|
||||
|
||||
- Install a kernel, replacing the currently running kernel:
|
||||
|
||||
`sudo mhwd-kernel {{[-i|--install]}} {{kernel}} rmc`
|
||||
29
tldr/linux/pw-container
Normal file
29
tldr/linux/pw-container
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pw-container
|
||||
|
||||
> Run a program in a new security context.
|
||||
> More information: <https://docs.pipewire.org/page_man_pw-container_1.html>.
|
||||
|
||||
- Create a new security context and print its socket address to `stdout`:
|
||||
|
||||
`pw-container`
|
||||
|
||||
- Run a specific program within a new security context:
|
||||
|
||||
`pw-container {{command}} {{argument1 argument2 ...}}`
|
||||
|
||||
- Run a program, connecting to a specific remote PipeWire instance:
|
||||
|
||||
`pw-container {{[-r|--remote]}} {{remote_instance_name}} {{command}}`
|
||||
|
||||
- Run a program in a new context with specific properties using a JSON object:
|
||||
|
||||
`pw-container {{[-P|--properties]}} '{{{"key": "value"}}}' {{command}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pw-container {{[-h|--help]}}`
|
||||
21
tldr/linux/systemctl-set-default
Normal file
21
tldr/linux/systemctl-set-default
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl set-default
|
||||
|
||||
> Symlink the `default.target` alias to the given target unit.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#set-default%20TARGET>.
|
||||
|
||||
- Set `systemd`'s default boot mode:
|
||||
|
||||
`systemctl set-default {{target_name.target}}`
|
||||
|
||||
- Set `systemd` to boot to GUI mode by default:
|
||||
|
||||
`systemctl set-default graphical.target`
|
||||
|
||||
- Set `systemd` to boot to CLI mode by default:
|
||||
|
||||
`systemctl set-default multi-user.target`
|
||||
41
tldr/pg_receivewal
Normal file
41
tldr/pg_receivewal
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pg_receivewal
|
||||
|
||||
> Stream the write-ahead log from a running PostgreSQL cluster.
|
||||
> More information: <https://www.postgresql.org/docs/current/app-pgreceivewal.html>.
|
||||
|
||||
- Stream WAL to a local directory (minimum required):
|
||||
|
||||
`pg_receivewal {{[-D|--directory]}} {{directory}}`
|
||||
|
||||
- Same as above, specify host, port, username including verbose output:
|
||||
|
||||
`pg_receivewal {{[-v|--verbose]}} {{[-h|--host]}} {{host}} {{[-p|--port]}} {{port}} {{[-U|--username]}} {{username}} {{[-D|--directory]}} {{directory}}`
|
||||
|
||||
- Use replication slot (create-if-needed):
|
||||
|
||||
`pg_receivewal {{[-S|--slot]}} {{slot_name}} --create-slot {{[-h|--host]}} {{host}} {{[-p|--port]}} {{port}} {{[-U|--username]}} {{username}} {{[-D|--directory]}} {{directory}}`
|
||||
|
||||
- Stop at a given WAL position (LSN):
|
||||
|
||||
`pg_receivewal {{[-E|--endpos]}} {{lsn}} {{[-D|--directory]}} {{directory}} {{[-h|--host]}} {{host}} {{[-p|--port]}} {{port}} {{[-U|--username]}} {{username}}`
|
||||
|
||||
- Control looping on failure:
|
||||
|
||||
`pg_receivewal {{[-n|--no-loop]}} {{[-D|--directory]}} {{directory}} {{[-h|--host]}} {{host}} {{[-p|--port]}} {{port}} {{[-U|--username]}} {{username}}`
|
||||
|
||||
- Flush data synchronously (force WAL writes immediately):
|
||||
|
||||
`pg_receivewal --synchronous {{[-D|--directory]}} {{directory}} {{[-h|--host]}} {{host}} {{[-p|--port]}} {{port}} {{[-U|--username]}} {{username}}`
|
||||
|
||||
- Compress WAL output (gzip, level 0–9):
|
||||
|
||||
`pg_receivewal {{[-Z|--compress]}} {{level|method}} {{[-D|--directory]}} {{directory}} {{[-h|--host]}} {{host}} {{[-p|--port]}} {{port}} {{[-U|--username]}} {{username}}`
|
||||
|
||||
- Set status reporting interval:
|
||||
|
||||
`pg_receivewal {{[-s|--status-interval]}} {{seconds}} {{[-D|--directory]}} {{directory}} {{[-h|--host]}} {{host}} {{[-p|--port]}} {{port}} {{[-U|--username]}} {{username}}`
|
||||
29
tldr/pg_rewind
Normal file
29
tldr/pg_rewind
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pg_rewind
|
||||
|
||||
> Synchronize a PostgreSQL data directory with another data directory that was forked from it.
|
||||
> More information: <https://www.postgresql.org/docs/current/app-pgrewind.html>.
|
||||
|
||||
- Synchronize target directory with source directory:
|
||||
|
||||
`pg_rewind {{[-D|--target-pgdata]}} {{path/to/target_data}} --source-pgdata {{path/to/source_data}}`
|
||||
|
||||
- Synchronize target with source server using connection string:
|
||||
|
||||
`pg_rewind {{[-D|--target-pgdata]}} {{path/to/target_data}} --source-server {{connstr}}`
|
||||
|
||||
- Perform a dry run:
|
||||
|
||||
`pg_rewind {{[-D|--target-pgdata]}} {{path/to/target_data}} --source-pgdata {{path/to/source_data}} {{[-n|--dry-run]}}`
|
||||
|
||||
- Show progress during synchronization:
|
||||
|
||||
`pg_rewind {{[-D|--target-pgdata]}} {{path/to/target_data}} --source-pgdata {{path/to/source_data}} {{[-P|--progress]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pg_rewind {{[-?|--help]}}`
|
||||
41
tldr/pg_waldump
Normal file
41
tldr/pg_waldump
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pg_waldump
|
||||
|
||||
> Display a human-readable rendering of the write-ahead log (WAL).
|
||||
> More information: <https://www.postgresql.org/docs/current/pgwaldump.html>.
|
||||
|
||||
- Basic invocation reading a WAL segment (or range):
|
||||
|
||||
`pg_waldump {{start_segment}} {{end_segment}}`
|
||||
|
||||
- Specify the WAL file directory:
|
||||
|
||||
`pg_waldump {{start_segment}} {{end_segment}} {{[-p|--path]}} {{path}}`
|
||||
|
||||
- Start from a particular WAL location (LSN):
|
||||
|
||||
`pg_waldump {{start_segment}} {{end_segment}} {{[-s|--start]}} {{lsn}}`
|
||||
|
||||
- Stop at a particular WAL location (LSN):
|
||||
|
||||
`pg_waldump {{start_segment}} {{end_segment}} {{[-e|--end]}} {{lsn}}`
|
||||
|
||||
- Follow new WAL entries as they arrive:
|
||||
|
||||
`pg_waldump {{start_segment}} {{end_segment}} {{[-f|--follow]}}`
|
||||
|
||||
- Limit number of records shown:
|
||||
|
||||
`pg_waldump {{start_segment}} {{end_segment}} {{[-n|--limit]}} {{count}}`
|
||||
|
||||
- Quiet mode (suppress output except errors):
|
||||
|
||||
`pg_waldump {{start_segment}} {{end_segment}} {{[-q|--quiet]}}`
|
||||
|
||||
- Filter by resource manager:
|
||||
|
||||
`pg_waldump {{start_segment}} {{end_segment}} {{[-r|--rmgr]}} {{rmgr_name}}`
|
||||
17
tldr/poetry-help
Normal file
17
tldr/poetry-help
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# poetry help
|
||||
|
||||
> Display global help, or help for a specific `poetry` command.
|
||||
> More information: <https://python-poetry.org/docs/cli/#help>.
|
||||
|
||||
- Display global help:
|
||||
|
||||
`poetry help`
|
||||
|
||||
- Display help for a specific command:
|
||||
|
||||
`poetry help {{config|show|...}}`
|
||||
18
tldr/tgcloud
Normal file
18
tldr/tgcloud
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# tgcloud
|
||||
|
||||
> Manage a Telegram account.
|
||||
> See also: `tgsend`, `tginfo`, `tgutil`.
|
||||
> More information: <https://pypi.org/project/telegram-cloud/>.
|
||||
|
||||
- Upload a file to a chat with a caption:
|
||||
|
||||
`tgcloud {{[-m|--mode]}} upload {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} {{[-p|--path]}} {{path_of_the_file}} {{[-c|--caption]}} {{caption}}`
|
||||
|
||||
- Download a file from a chat and store it in `path/to/store` with a caption:
|
||||
|
||||
`tgcloud {{[-m|--mode]}} download {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} {{[-p|--path]}} {{path/to/store}} {{[-c|--caption]}} {{caption}}`
|
||||
18
tldr/tginfo
Normal file
18
tldr/tginfo
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# tginfo
|
||||
|
||||
> Manage a Telegram account.
|
||||
> See also: `tgcloud`, `tgsend`, `tgutil`.
|
||||
> More information: <https://pypi.org/project/telegram-cloud/>.
|
||||
|
||||
- Search for all files inside a Telegram conversation based on their filename or caption:
|
||||
|
||||
`tginfo {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} {{[-s|--search]}} "{{query}}"`
|
||||
|
||||
- Get info for all media inside a Telegram chat:
|
||||
|
||||
`tginfo {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}}`
|
||||
18
tldr/tgsend
Normal file
18
tldr/tgsend
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# tgsend
|
||||
|
||||
> Manage a Telegram account.
|
||||
> See also: `tgcloud`, `tginfo`, `tgutil`.
|
||||
> More information: <https://pypi.org/project/telegram-cloud/>.
|
||||
|
||||
- Send a message to a chat:
|
||||
|
||||
`tgsend {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} "{{message}}"`
|
||||
|
||||
- Send a message to chat with silent notification:
|
||||
|
||||
`tgsend {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} --silent "{{message}}"`
|
||||
26
tldr/tgutil
Normal file
26
tldr/tgutil
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# tgutil
|
||||
|
||||
> Manage a Telegram account.
|
||||
> See also: `tgcloud`, `tgsend`, `tginfo`.
|
||||
> More information: <https://pypi.org/project/telegram-cloud/>.
|
||||
|
||||
- Edit the last text message on a chat with new text:
|
||||
|
||||
`tgutil {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} {{[-m|--mode]}} edit --text "{{current_text}}" --newtext "{{new_text}}"`
|
||||
|
||||
- Edit all text messages that contain `current_text` with `new_text`:
|
||||
|
||||
`tgutil {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} {{[-m|--mode]}} editall --text "{{current_text}}" --newtext "{{new_text}}"`
|
||||
|
||||
- Delete the last text message on a chat with search value:
|
||||
|
||||
`tgutil {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} {{[-m|--mode]}} delete --text "{{current_text}}"`
|
||||
|
||||
- Delete all messages containing the `query` value:
|
||||
|
||||
`tgutil {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} {{[-m|--mode]}} deleteall --text "{{query}}"`
|
||||
38
tldr/zrok
Normal file
38
tldr/zrok
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# zrok
|
||||
|
||||
> Expose local services and files to the internet.
|
||||
> Part of the OpenZiti project, offering secure, zero-trust sharing.
|
||||
> More information: <https://docs.zrok.io>.
|
||||
|
||||
- Request an invitation to use the public zrok service (run this first):
|
||||
|
||||
`zrok invite`
|
||||
|
||||
- Enable the zrok environment with the token from an invitation email:
|
||||
|
||||
`zrok enable {{your_token}}`
|
||||
|
||||
- Create a publicly accessible URL for a local web server:
|
||||
|
||||
`zrok share public {{http://localhost:8080}}`
|
||||
|
||||
- Create a secure share accessible only with a unique token:
|
||||
|
||||
`zrok share private {{http://localhost:3000}}`
|
||||
|
||||
- Access a private share created by another user:
|
||||
|
||||
`zrok access private {{share_token}}`
|
||||
|
||||
- Serve the contents of a local directory as a simple website:
|
||||
|
||||
`zrok share public --backend-mode web {{path/to/directory}}`
|
||||
|
||||
- Display the status of the zrok environment and active shares:
|
||||
|
||||
`zrok status`
|
||||
Reference in New Issue
Block a user