mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
13
tldr/adb-kill-server
Normal file
13
tldr/adb-kill-server
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# adb kill-server
|
||||
|
||||
> Stop the Android Debug Bridge (adb) server, disconnecting devices and emulators.
|
||||
> More information: <https://manned.org/adb#head14>.
|
||||
|
||||
- Kill the adb server if it is running:
|
||||
|
||||
`adb kill-server`
|
||||
13
tldr/adb-start-server
Normal file
13
tldr/adb-start-server
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# adb start-server
|
||||
|
||||
> Start the Android Debug Bridge (adb) server to allow adb connections from devices or emulators.
|
||||
> More information: <https://manned.org/adb#head14>.
|
||||
|
||||
- Start the adb server if it is not running:
|
||||
|
||||
`adb start-server`
|
||||
10
tldr/anki
10
tldr/anki
@@ -12,14 +12,14 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`anki`
|
||||
|
||||
- Use a specific [p]rofile:
|
||||
- Use a specific profile:
|
||||
|
||||
`anki -p {{profile_name}}`
|
||||
`anki {{[-p|--profile]}} {{profile_name}}`
|
||||
|
||||
- Use a specific [l]anguage:
|
||||
- Use a specific language:
|
||||
|
||||
`anki -l {{language}}`
|
||||
`anki {{[-l|--lang]}} {{language}}`
|
||||
|
||||
- Use a non-default directory (`~/Anki` for default):
|
||||
|
||||
`anki -b {{path/to/directory}}`
|
||||
`anki {{[-b|--base]}} {{path/to/directory}}`
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Display the current weather conditions in your terminal.
|
||||
> More information: <https://github.com/fcambus/ansiweather>.
|
||||
|
||||
- Display a [f]orecast using metric [u]nits for the next seven days for a specific [l]ocation:
|
||||
- Display a [f]orecast for the next seven days using metric [u]nits for a specific [l]ocation:
|
||||
|
||||
`ansiweather -u metric -f 7 -l {{Rzeszow,PL}}`
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`apropos {{regex}}`
|
||||
|
||||
- Search without restricting the output to the terminal width ([l]ong output):
|
||||
- Search without restricting the output to the terminal width (long output):
|
||||
|
||||
`apropos {{[-l|--long]}} {{regex}}`
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`echo "{{password}}" | argon2 "{{salt_text}}" -{{d|i|id}}`
|
||||
|
||||
- Display the output hash without additional information:
|
||||
- Display the output [e]ncoded hash without additional information:
|
||||
|
||||
`echo "{{password}}" | argon2 "{{salt_text}}" -e`
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`arping {{host_ip}}`
|
||||
|
||||
- Ping a host on a specific interface:
|
||||
- Ping a host on a specific [I]nterface:
|
||||
|
||||
`arping -I {{interface}} {{host_ip}}`
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`beanstalkd`
|
||||
|
||||
- Listen on a specific [p]ort and address:
|
||||
- [l]isten on a specific [p]ort and address:
|
||||
|
||||
`beanstalkd -l {{ip_address}} -p {{port_number}}`
|
||||
|
||||
|
||||
25
tldr/brew-leaves
Normal file
25
tldr/brew-leaves
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# brew leaves
|
||||
|
||||
> List installed formulas that are not dependencies of another installed formula or cask.
|
||||
> More information: <https://docs.brew.sh/Manpage#leaves---installed-on-request---installed-as-dependency>.
|
||||
|
||||
- List installed formulas that are not dependent on other installed formulas or casks:
|
||||
|
||||
`brew leaves`
|
||||
|
||||
- Only list leaves that were manually installed:
|
||||
|
||||
`brew leaves {{[-r|--installed-on-request]}}`
|
||||
|
||||
- Only list leaves that were installed as dependencies:
|
||||
|
||||
`brew leaves {{[-p|--installed-as-dependency]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`brew leaves {{[-h|--help]}}`
|
||||
@@ -33,6 +33,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`cancel -a {{printer}}`
|
||||
|
||||
- Cancel the current job of a specific server and then delete ([x]) job data files:
|
||||
- Cancel the current job of a specific [h]ost server and then delete ([x]) job data files:
|
||||
|
||||
`cancel -h {{server}} -x`
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`certutil -N -d .`
|
||||
|
||||
- List all certificates in a database:
|
||||
- [L]ist all certificates in a database:
|
||||
|
||||
`certutil -L -d .`
|
||||
|
||||
|
||||
@@ -36,6 +36,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`chmod {{[-R|--recursive]}} g+w,o+w {{path/to/directory}}`
|
||||
|
||||
- Recursively give [a]ll users [r]ead permissions to files and e[X]ecute permissions to sub-directories within a directory:
|
||||
- Recursively give [a]ll users [r]ead permissions to files. Also give e[X]ecute permissions to files that have at least one execution permission and to all sub-directories:
|
||||
|
||||
`chmod {{[-R|--recursive]}} a+rX {{path/to/directory}}`
|
||||
|
||||
2
tldr/csh
2
tldr/csh
@@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`csh`
|
||||
|
||||
- Start an interactive shell session without loading startup configs:
|
||||
- Start an interactive shell session [f]aster without loading startup configs:
|
||||
|
||||
`csh -f`
|
||||
|
||||
|
||||
10
tldr/cupsd
10
tldr/cupsd
@@ -20,22 +20,22 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`cupsd -l`
|
||||
|
||||
- Start `cupsd` using the specified [`c`]`upsd.conf` configuration file:
|
||||
- Start `cupsd` using the specified `cupsd.conf` [c]onfiguration file:
|
||||
|
||||
`cupsd -c {{path/to/cupsd.conf}}`
|
||||
|
||||
- Start `cupsd` using the specified `cups-file`[`s`]`.conf` configuration file:
|
||||
- Start `cupsd` using the specified `cups-files.conf` configuration file:
|
||||
|
||||
`cupsd -s {{path/to/cups-files.conf}}`
|
||||
|
||||
- [t]est the [`c`]`upsd.conf` configuration file for errors:
|
||||
- [t]est the `cupsd.conf` [c]onfiguration file for errors:
|
||||
|
||||
`cupsd -t -c {{path/to/cupsd.conf}}`
|
||||
|
||||
- [t]est the `cups-file`[`s`]`.conf` configuration file for errors:
|
||||
- [t]est the `cups-files.conf` configuration file for errors:
|
||||
|
||||
`cupsd -t -s {{path/to/cups-files.conf}}`
|
||||
|
||||
- Display help:
|
||||
- Display [h]elp:
|
||||
|
||||
`cupsd -h`
|
||||
|
||||
43
tldr/freeze
Normal file
43
tldr/freeze
Normal file
@@ -0,0 +1,43 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# freeze
|
||||
|
||||
> Generate images of code and terminal output.
|
||||
> Supported formats are PNG, SVG, and WebP.
|
||||
> See also: `silicon`.
|
||||
> More information: <https://github.com/charmbracelet/freeze#flags>.
|
||||
|
||||
- Generate an image of code based on a file:
|
||||
|
||||
`freeze {{path/to/file}}`
|
||||
|
||||
- Specify the output path:
|
||||
|
||||
`freeze {{path/to/file}} {{[-o|--output]}} {{path/to/output_image.png}}`
|
||||
|
||||
- Generate an image of terminal output:
|
||||
|
||||
`freeze {{[-x|--execute]}} {{command}}`
|
||||
|
||||
- Interactively customize the output image:
|
||||
|
||||
`freeze {{path/to/file}} {{[-i|--interactive]}}`
|
||||
|
||||
- Select a theme for syntax highlighting:
|
||||
|
||||
`freeze {{path/to/file}} {{[-t|--theme]}} {{dracula}}`
|
||||
|
||||
- Use a base configuration template:
|
||||
|
||||
`freeze {{path/to/file}} {{[-c|--config]}} {{base|full|user}}`
|
||||
|
||||
- Capture a specific range of line numbers:
|
||||
|
||||
`freeze {{path/to/file}} --lines {{start}},{{end}}`
|
||||
|
||||
- Show line numbers:
|
||||
|
||||
`freeze {{path/to/file}} --show-line-numbers`
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# gammastep
|
||||
|
||||
> Adjust the screen's color temperature according to the time of day.
|
||||
> More information: <https://gitlab.com/chinstrap/gammastep>.
|
||||
> More information: <https://manned.org/gammastep>.
|
||||
|
||||
- Turn on Gammastep with a specific [t]emperature during the day (e.g. 5700k) and at night (e.g. 3600k):
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# gettext
|
||||
|
||||
> Translates a string using stored translations in a compiled `.mo` file.
|
||||
> Translations are stored in `/usr/share/locale/<locale_name>/LC_MESSAGES/` with `domain` being the filename without its extension.
|
||||
> Translations are stored in `/usr/share/locale/locale_name/LC_MESSAGES/` with `domain` being the filename without its extension.
|
||||
> See also: `msgfmt`, `msgunfmt`.
|
||||
> More information: <https://www.gnu.org/software/gettext/manual/gettext.html#gettext-Invocation>.
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# git browse-ci
|
||||
|
||||
> Open the current `git` repository's CI website in the default web browser.
|
||||
> Open the current Git repository's CI website in the default web browser.
|
||||
> Part of `git-extras`.
|
||||
> More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-browse-ci>.
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# git delete-submodule
|
||||
|
||||
> Delete a submodule from a `git` repository.
|
||||
> Delete a submodule from a Git repository.
|
||||
> Part of `git-extras`.
|
||||
> More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-delete-submodule>.
|
||||
|
||||
|
||||
13
tldr/git-get-tar-commit-id
Normal file
13
tldr/git-get-tar-commit-id
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# git get-tar-commit-id
|
||||
|
||||
> Extract commit ID from an archive created using `git archive`.
|
||||
> More information: <https://git-scm.com/docs/git-get-tar-commit-id>.
|
||||
|
||||
- Extract commit hash ID or quietly exit with a return code of 1:
|
||||
|
||||
`git < {{path/to/archive.tar}} get-tar-commit-id`
|
||||
@@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`gladtex {{path/to/input.htex}}`
|
||||
|
||||
- Save the converted file to a specific location:
|
||||
- Save the converted file to a specific [o]utput file:
|
||||
|
||||
`gladtex {{path/to/input.htex}} -o {{path/to/output.html}}`
|
||||
|
||||
@@ -35,4 +35,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Convert Markdown to HTML using `pandoc` and `gladtex`:
|
||||
|
||||
`pandoc -s -t html --gladtex {{path/to/input.md}} | gladtex -o {{path/to/output.html}}`
|
||||
`pandoc {{[-s|--standalone]}} {{[-t|--to]}} html --gladtex {{path/to/input.md}} | gladtex -o {{path/to/output.html}}`
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`gnatmake {{source_file1.adb source_file2.adb ...}}`
|
||||
|
||||
- Set a custom executable name:
|
||||
- Set a custom [o]utput executable name:
|
||||
|
||||
`gnatmake -o {{executable_name}} {{source_file.adb}}`
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# goimports
|
||||
|
||||
> Updates Go import lines, adding missing ones and removing unreferenced ones.
|
||||
> Update Go import lines, adding missing ones and removing unreferenced ones.
|
||||
> More information: <https://pkg.go.dev/golang.org/x/tools/cmd/goimports>.
|
||||
|
||||
- Display the completed import source file:
|
||||
|
||||
@@ -35,3 +35,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Add a command to history without running it:
|
||||
|
||||
`history -s {{command}}`
|
||||
|
||||
- Run a command without adding it to history by adding a leading space:
|
||||
|
||||
`<Space>{{command}}`
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# hub init
|
||||
|
||||
> Initializes a new local Git repository.
|
||||
> Initialize a new local Git repository.
|
||||
> More information: <https://hub.github.com/hub-init.1.html>.
|
||||
|
||||
- Initialize a new local repository:
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Display information about a network interface.
|
||||
> More information: <https://manned.org/ifdata>.
|
||||
|
||||
- Display the whole configuration of the specified interface:
|
||||
- [p]rint the whole configuration of the specified interface:
|
||||
|
||||
`ifdata -p {{eth0}}`
|
||||
|
||||
@@ -16,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`ifdata -e {{eth0}}`
|
||||
|
||||
- Display the IPv4 [a]dress and the [n]etmask of the specified interface:
|
||||
- [p]rint the IPv4 [a]dress and the [n]etmask of the specified interface:
|
||||
|
||||
`ifdata -pa -pn {{eth0}}`
|
||||
|
||||
- Display the [N]etwork adress, the [b]roadcast adress, and the MTU of the specified interface:
|
||||
- [p]rint the [N]etwork adress, the [b]roadcast adress, and the [m]TU of the specified interface:
|
||||
|
||||
`ifdata -pN -pb -pm {{eth0}}`
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start the record (creates a preliminary link file):
|
||||
|
||||
`in-toto-record start {{[-n|--step-name]}} {{path/to/edit_file1 path/to/edit_file2 ...}} -k {{path/to/key_file}} {{[-m|--materials]}} {{.}}`
|
||||
`in-toto-record start {{[-n|--step-name]}} {{path/to/edit_file1 path/to/edit_file2 ...}} --signing-key {{path/to/key_file}} {{[-m|--materials]}} {{.}}`
|
||||
|
||||
- Stop the record (expects a preliminary link file):
|
||||
|
||||
`in-toto-record stop {{[-n|--step-name]}} {{path/to/edit_file1 path/to/edit_file2 ...}} -k {{path/to/key_file}} {{[-p|--products]}} {{.}}`
|
||||
`in-toto-record stop {{[-n|--step-name]}} {{path/to/edit_file1 path/to/edit_file2 ...}} --signing-key {{path/to/key_file}} {{[-p|--products]}} {{.}}`
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Tag a Git repo and signing the resulting link file:
|
||||
|
||||
`in-toto-run {{[-n|--step-name]}} {{tag}} {{[-p|--products]}} {{.}} -k {{key_file}} -- {{git tag v1.0}}`
|
||||
`in-toto-run {{[-n|--step-name]}} {{tag}} {{[-p|--products]}} {{.}} --signing-key {{key_file}} -- {{git tag v1.0}}`
|
||||
|
||||
- Create a tarball, storing files as materials and the tarball as product:
|
||||
|
||||
@@ -18,8 +18,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Generate signed attestations for review work:
|
||||
|
||||
`in-toto-run {{[-n|--step-name]}} {{review}} -k {{key_file}} {{[-m|--materials]}} {{document.pdf}} {{[-x|--no-command]}}`
|
||||
`in-toto-run {{[-n|--step-name]}} {{review}} --signing-key {{key_file}} {{[-m|--materials]}} {{document.pdf}} {{[-x|--no-command]}}`
|
||||
|
||||
- Scan the image using Trivy and generate link file:
|
||||
|
||||
`in-toto-run {{[-n|--step-name]}} {{scan}} -k {{key_file}} {{[-p|--products]}} {{report.json}} -- {{/bin/sh -c "trivy --output report.json --format json <IMAGE>"}}`
|
||||
`in-toto-run {{[-n|--step-name]}} {{scan}} --signing-key {{key_file}} {{[-p|--products]}} {{report.json}} -- /bin/sh -c "trivy --output report.json --format json {{path/to/image}}"`
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Show information about the usage of XSI IPC facilities: shared memory segments, message queues, and semaphore arrays.
|
||||
> More information: <https://manned.org/ipcs.1p>.
|
||||
|
||||
- Show information about all the IPC:
|
||||
- Show information about [a]ll the IPC:
|
||||
|
||||
`ipcs -a`
|
||||
|
||||
|
||||
@@ -20,6 +20,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`iproxy --udid {{device_udid}} {{local_port}}:{{device_port}}`
|
||||
|
||||
- Bind a local port and forward it to a network-connected device with WiFi sync enabled:
|
||||
- Bind a local port and forward it to a network-connected device with Wi-Fi sync enabled:
|
||||
|
||||
`iproxy --network {{local_port}}:{{device_port}}`
|
||||
|
||||
@@ -14,8 +14,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List issues from the current sprint, assigned to me:
|
||||
|
||||
`jira sprint list --current -a$(jira me)`
|
||||
`jira sprint list --current {{[-a|--assignee]}} $(jira me)`
|
||||
|
||||
- Create a new issue, optionally set a parent issue:
|
||||
|
||||
`jira issue create --parent {{parent}}`
|
||||
`jira issue create {{[-P|--parent]}} {{parent}}`
|
||||
|
||||
@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Delete unused secrets in a specific namespace:
|
||||
|
||||
`k8s-unused-secret-detector {{[-n|--namespace]}} {{namespace}} | kubectl delete secret {{[-n|--namespace]}} {{namespace}}`
|
||||
`k8s-unused-secret-detector {{[-n|--namespace]}} {{namespace}} | kubectl delete secrets {{[-n|--namespace]}} {{namespace}}`
|
||||
|
||||
2
tldr/ksh
2
tldr/ksh
@@ -25,6 +25,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`ksh -n {{path/to/script.ksh}}`
|
||||
|
||||
- Execute a specific script, printing each command in the script before executing it:
|
||||
- E[x]ecute a specific script, printing each command in the script before executing it:
|
||||
|
||||
`ksh -x {{path/to/script.ksh}}`
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Client-side utility for encrypting Kubernetes secrets using the Bitnami Sealed Secrets controller.
|
||||
> Creates SealedSecret resources that can be safely stored in version control.
|
||||
> Requires a controller running in the cluster (e.g., installed via `kubectl apply -f controller.yaml`).
|
||||
> Requires a controller running in the cluster (e.g., installed via `kubectl apply --filename controller.yaml`).
|
||||
> More information: <https://github.com/bitnami-labs/sealed-secrets>.
|
||||
|
||||
- Encrypt a Kubernetes secret from a YAML file into a SealedSecret (default JSON output):
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# kustomize
|
||||
|
||||
> Easily deploy resources for Kubernetes.
|
||||
> More information: <https://github.com/kubernetes-sigs/kustomize>.
|
||||
> More information: <https://github.com/kubernetes-sigs/kustomize/blob/master/site/content/en/docs/Reference/CLI/_index.md>.
|
||||
|
||||
- Create a kustomization file with resources and namespace:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# createrepo
|
||||
|
||||
> Initializes an RPM repository in a directory, including all XML and SQLite files.
|
||||
> Initialize an RPM repository in a directory, including all XML and SQLite files.
|
||||
> More information: <https://manned.org/createrepo>.
|
||||
|
||||
- Initialize a basic repository in a directory:
|
||||
|
||||
31
tldr/linux/dnf-versionlock
Normal file
31
tldr/linux/dnf-versionlock
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# dnf versionlock
|
||||
|
||||
> Protect packages from updates to newer versions.
|
||||
> Not default to `dnf` but supported via `dnf-plugins-core`.
|
||||
> See also: `dnf`.
|
||||
> More information: <https://dnf-plugins-core.readthedocs.io/en/latest/versionlock.html>.
|
||||
|
||||
- List the current versionlock entries:
|
||||
|
||||
`dnf versionlock`
|
||||
|
||||
- Add a versionlock for all available packages matching the spec:
|
||||
|
||||
`dnf versionlock add {{package}}`
|
||||
|
||||
- Add an exclude (within versionlock) for the available packages matching the spec:
|
||||
|
||||
`dnf versionlock exclude {{package}}`
|
||||
|
||||
- Remove any matching versionlock entries:
|
||||
|
||||
`dnf versionlock delete {{package}}`
|
||||
|
||||
- Remove all versionlock entries:
|
||||
|
||||
`dnf versionlock clear`
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# impala
|
||||
|
||||
> Manage WiFi networks through a TUI.
|
||||
> Manage Wi-Fi networks through a TUI.
|
||||
> More information: <https://github.com/pythops/impala>.
|
||||
|
||||
- Launch `impala` in station mode:
|
||||
|
||||
@@ -17,11 +17,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo iw dev {{wlp}} set type managed`
|
||||
|
||||
- Set device WiFi channel (device must first be in monitor mode with the interface up):
|
||||
- Set device Wi-Fi channel (device must first be in monitor mode with the interface up):
|
||||
|
||||
`sudo iw dev {{wlp}} set channel {{channel_number}}`
|
||||
|
||||
- Set device WiFi frequency in Mhz (device must first be in monitor mode with the interface up):
|
||||
- Set device Wi-Fi frequency in Mhz (device must first be in monitor mode with the interface up):
|
||||
|
||||
`sudo iw dev {{wlp}} set freq {{freq_in_mhz}}`
|
||||
|
||||
|
||||
25
tldr/linux/pw-mididump
Normal file
25
tldr/linux/pw-mididump
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pw-mididump
|
||||
|
||||
> Dump MIDI messages to `stdout`.
|
||||
> More information: <https://docs.pipewire.org/page_man_pw-mididump_1.html>.
|
||||
|
||||
- Listen for and dump all incoming MIDI events:
|
||||
|
||||
`pw-mididump`
|
||||
|
||||
- Dump MIDI events from a specific file:
|
||||
|
||||
`pw-mididump {{path/to/file.mid}}`
|
||||
|
||||
- Connect to a specific remote PipeWire instance:
|
||||
|
||||
`pw-mididump {{[-r|--remote]}} {{remote_instance_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pw-mididump {{[-h|--help]}}`
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# rnm
|
||||
|
||||
> Bulk Rename Utility.
|
||||
> More information: <https://github.com/neurobin/rnm>.
|
||||
> More information: <https://github.com/neurobin/rnm#basic-options>.
|
||||
|
||||
- Replace a search string with a replacement string in filenames:
|
||||
|
||||
|
||||
@@ -8,26 +8,26 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Interface to Slurm via REST API. It can be used in two modes: *Inetd Mode* & *Listen Mode*.
|
||||
> More information: <https://slurm.schedmd.com/slurmrestd.html>.
|
||||
|
||||
- Change the group ID (and drop supplemental groups) before processing client requests:
|
||||
- Change the [g]roup ID (and drop supplemental groups) before processing client requests:
|
||||
|
||||
`slurmrestd -g {{group_id}} {{[host]:port | unix:/path/to/socket}}`
|
||||
`slurmrestd -g {{group_id}} {{[host]:port|unix:/path/to/socket}}`
|
||||
|
||||
- Comma-delimited list of authentication plugins to load:
|
||||
- Comma-delimited list of [a]uthentication plugins to load:
|
||||
|
||||
`slurmrestd -a {{authentication_plugins}} {{[host]:port | unix:/path/to/socket}}`
|
||||
`slurmrestd -a {{authentication_plugins}} {{[host]:port|unix:/path/to/socket}}`
|
||||
|
||||
- Read Slurm configuration from the specified file:
|
||||
- Read Slurm configuration from the specified [f]ile:
|
||||
|
||||
`slurmrestd -f {{path/to/file}}`
|
||||
|
||||
- Change user ID before processing client request:
|
||||
- Change [u]ser ID before processing client request:
|
||||
|
||||
`slurmrestd -u {{user_id}}`
|
||||
|
||||
- Display help:
|
||||
- Display [h]elp:
|
||||
|
||||
`slurmrestd -h`
|
||||
|
||||
- Display version:
|
||||
- Display [V]ersion:
|
||||
|
||||
`slurmrestd -V`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# slurp
|
||||
|
||||
> Select a region in a Wayland compositor.
|
||||
> More information: <https://github.com/emersion/slurp>.
|
||||
> More information: <https://github.com/emersion/slurp/blob/master/slurp.1.scd>.
|
||||
|
||||
- Select a region and print it to `stdout`:
|
||||
|
||||
@@ -30,4 +30,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Select a specific region and take a borderless video of it, using `wf-recorder`:
|
||||
|
||||
`wf-recorder --geometry "$(slurp -w 0)"`
|
||||
`wf-recorder {{[-g|--geometry]}} "$(slurp -w 0)"`
|
||||
|
||||
25
tldr/linux/systemctl-list-timers
Normal file
25
tldr/linux/systemctl-list-timers
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl list-timers
|
||||
|
||||
> List all active systemd timers.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#list-timers%20PATTERN…>.
|
||||
|
||||
- List all active timers:
|
||||
|
||||
`systemctl list-timers`
|
||||
|
||||
- List all timers, including inactive ones:
|
||||
|
||||
`systemctl list-timers {{[-a|--all]}}`
|
||||
|
||||
- List timers matching a pattern:
|
||||
|
||||
`systemctl list-timers {{pattern}}`
|
||||
|
||||
- List timers matching a specific state:
|
||||
|
||||
`systemctl list-timers --state {{active|inactive|failed|...}}`
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# vncviewer
|
||||
|
||||
> Launches a VNC (Virtual Network Computing) client.
|
||||
> Launch a VNC (Virtual Network Computing) client.
|
||||
> More information: <https://manned.org/vncviewer>.
|
||||
|
||||
- Launch a VNC client which connects to a host on a given display:
|
||||
|
||||
@@ -6,11 +6,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# mdk4
|
||||
|
||||
> A proof-of-concept tool to exploit common IEEE 802.11 protocol weaknesses.
|
||||
> Note: Exercise extreme caution as this tool can disrupt WiFi networks and disconnect nearby users.
|
||||
> Note: Exercise extreme caution as this tool can disrupt Wi-Fi networks and disconnect nearby users.
|
||||
> See also: `airodump-ng`, `airmon-ng`.
|
||||
> More information: <https://github.com/aircrack-ng/mdk4>.
|
||||
|
||||
- Flood access points with beacon frames to create fake networks (set interface to monitor mode with `sudo airmon-ng start <wifi_interface>` if needed):
|
||||
- Flood access points with beacon frames to create fake networks (set interface to monitor mode with `sudo airmon-ng start wifi_interface` if needed):
|
||||
|
||||
`sudo mdk4 {{wifi_interface}} b -f {{path/to/beacons.txt}}`
|
||||
|
||||
@@ -18,6 +18,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo mdk4 {{wifi_interface}} d`
|
||||
|
||||
- Perform deauthentication attack on a specific BSSID (list BSSIDs using `sudo airodump-ng <wifi_interface>`):
|
||||
- Perform deauthentication attack on a specific BSSID (list BSSIDs using `sudo airodump-ng wifi_interface`):
|
||||
|
||||
`sudo mdk4 {{wifi_interface}} d -B {{BSSID}}`
|
||||
|
||||
21
tldr/mvn-package
Normal file
21
tldr/mvn-package
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# mvn package
|
||||
|
||||
> Package the compiled code of a Maven project into its distributable format (such as a JAR or WAR).
|
||||
> More information: <https://manned.org/mvn>.
|
||||
|
||||
- Package a project:
|
||||
|
||||
`mvn package`
|
||||
|
||||
- Package a project while skipping test execution:
|
||||
|
||||
`mvn package {{[-D|--define]}} skipTests`
|
||||
|
||||
- Package a project and force Maven to update all dependencies:
|
||||
|
||||
`mvn package {{[-U|--update-snapshots]}}`
|
||||
@@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`nmap -v{{1|2|3}} {{ip_or_hostname}}`
|
||||
|
||||
- Run a ping sweep over an entire subnet or individual hosts very aggressively:
|
||||
- Run a ping sweep over an entire [s]ub[n]et or individual hosts very aggressively:
|
||||
|
||||
`nmap -T5 -sn {{192.168.0.0/24|ip_or_hostname1,ip_or_hostname2,...}}`
|
||||
|
||||
@@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo nmap -A -iL {{path/to/file.txt}}`
|
||||
|
||||
- Scan a specific list of ports (use `-p-` for all ports from 1 to 65535):
|
||||
- Scan a specific list of [p]orts (use `-p-` for all ports from 1 to 65535):
|
||||
|
||||
`nmap -p {{port1,port2,...}} {{ip_or_host1,ip_or_host2,...}}`
|
||||
|
||||
@@ -33,10 +33,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`nmap --script "default and safe" {{ip_or_host1,ip_or_host2,...}}`
|
||||
|
||||
- Scan for web servers running on standard ports 80 and 443 using all available `http-*` NSE scripts:
|
||||
- Scan for web servers running on standard [p]orts 80 and 443 using all available `http-*` NSE scripts:
|
||||
|
||||
`nmap --script "http-*" {{ip_or_host1,ip_or_host2,...}} -p 80,443`
|
||||
|
||||
- Attempt evading IDS/IPS detection by using an extremely slow scan (`-T0`), decoy source addresses (`-D`), [f]ragmented packets, random data and other methods:
|
||||
- Attempt evading IDS/IPS detection by using an extremely slow scan (`-T0`), [D]ecoy source addresses, [f]ragmented packets, random data and other methods:
|
||||
|
||||
`sudo nmap -T0 -D {{decoy_ip1,decoy_ip2,...}} --source-port {{53}} -f --data-length {{16}} -Pn {{ip_or_host}}`
|
||||
|
||||
6
tldr/nnn
6
tldr/nnn
@@ -12,15 +12,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`nnn`
|
||||
|
||||
- Start in detailed mode:
|
||||
- Start in [d]etailed mode:
|
||||
|
||||
`nnn -d`
|
||||
|
||||
- Show hidden files:
|
||||
- Show [H]idden files:
|
||||
|
||||
`nnn -H`
|
||||
|
||||
- Open an existing bookmark (defined in the `NNN_BMS` environment variable):
|
||||
- Open an existing [b]ookmark (defined in the `NNN_BMS` environment variable):
|
||||
|
||||
`nnn -b {{bookmark_name}}`
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# open
|
||||
|
||||
> Opens files, directories, and URIs with default applications.
|
||||
> Open files, directories, and URIs with default applications.
|
||||
> This command is available through fish on operating systems without the built-in `open` command (e.g. Haiku and macOS).
|
||||
> More information: <https://fishshell.com/docs/current/cmds/open.html>.
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# xed
|
||||
|
||||
> Opens files for editing in Xcode.
|
||||
> Open files for editing in Xcode.
|
||||
> More information: <https://keith.github.io/xcode-man-pages/xed.1.html>.
|
||||
|
||||
- Open file in Xcode:
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`perldoc -{{f|v|a}} {{name}}`
|
||||
|
||||
- Search in the question headings of Perl FAQ:
|
||||
- Search in the [q]uestion headings of Perl FAQ:
|
||||
|
||||
`perldoc -q {{regex}}`
|
||||
|
||||
|
||||
6
tldr/php
6
tldr/php
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# php
|
||||
|
||||
> PHP command-line interface.
|
||||
> More information: <https://php.net>.
|
||||
> More information: <https://www.php.net/manual/en/features.commandline.options.php>.
|
||||
|
||||
- Parse and execute a PHP script:
|
||||
|
||||
@@ -20,11 +20,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`php {{[-a|--interactive]}}`
|
||||
|
||||
- Run PHP code (Notes: Don't use <? ?> tags; escape double quotes with backslash):
|
||||
- Run PHP code (Notes: Don't use `<? ?>` tags; escape double quotes with backslash):
|
||||
|
||||
`php {{[-r|--run]}} "{{code}}"`
|
||||
|
||||
- Start a PHP built-in web [S]erver in the current directory:
|
||||
- Start a PHP built-in web server in the current directory:
|
||||
|
||||
`php {{[-S|--server]}} {{host}}:{{port}}`
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# pkg-config
|
||||
|
||||
> Provide the details of installed libraries for compiling applications.
|
||||
> More information: <https://www.freedesktop.org/wiki/Software/pkg-config/>.
|
||||
> More information: <https://manned.org/pkg-config>.
|
||||
|
||||
- Get the list of libraries and their dependencies:
|
||||
|
||||
|
||||
41
tldr/poetry-sync
Normal file
41
tldr/poetry-sync
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# poetry sync
|
||||
|
||||
> Syncs your project's environment with the `poetry.lock` file.
|
||||
> More information: <https://python-poetry.org/docs/cli/#sync>.
|
||||
|
||||
- Sync your project’s environment with the `poetry.lock` file:
|
||||
|
||||
`poetry sync`
|
||||
|
||||
- Exclude one or more dependency groups for the installation:
|
||||
|
||||
`poetry sync --without {{test|docs|...}}`
|
||||
|
||||
- Select optional dependency groups:
|
||||
|
||||
`poetry sync --with {{test|docs|...}}`
|
||||
|
||||
- Install all dependency groups including optional groups:
|
||||
|
||||
`poetry sync --all-groups`
|
||||
|
||||
- Install specific dependency groups:
|
||||
|
||||
`poetry sync --only {{test|docs|...}}`
|
||||
|
||||
- Install project without dependencies:
|
||||
|
||||
`poetry sync --only-root`
|
||||
|
||||
- Specify extras to install:
|
||||
|
||||
`poetry sync {{[-E|--extras]}}`
|
||||
|
||||
- Skip the defaulted package installation for your project:
|
||||
|
||||
`poetry sync --no-root`
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pueue completions
|
||||
|
||||
> Generate shell completion files for Bash, Elvish, Fish, PowerShell, and Zsh.
|
||||
> Generate shell completion files for Bash, Elvish, fish, PowerShell, and Zsh.
|
||||
> More information: <https://github.com/Nukesor/pueue>.
|
||||
|
||||
- Generate completions for Bash:
|
||||
|
||||
33
tldr/qmake
Normal file
33
tldr/qmake
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# qmake
|
||||
|
||||
> Generate Makefiles from Qt project files.
|
||||
> More information: <https://doc.qt.io/qt-6/qmake-running.html>.
|
||||
|
||||
- Generate a `Makefile` from a project file in the current directory:
|
||||
|
||||
`qmake`
|
||||
|
||||
- Specify `Makefile` and project file locations:
|
||||
|
||||
`qmake -o {{path/to/Makefile}} {{path/to/project_file.pro}}`
|
||||
|
||||
- Generate a default project file:
|
||||
|
||||
`qmake -project`
|
||||
|
||||
- Compile a project:
|
||||
|
||||
`qmake && make`
|
||||
|
||||
- Enable debug mode:
|
||||
|
||||
`qmake -d`
|
||||
|
||||
- Display help:
|
||||
|
||||
`qmake -help`
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# redis-cli
|
||||
|
||||
> Opens a connection to a Redis server.
|
||||
> Open a connection to a Redis server.
|
||||
> More information: <https://redis.io/topics/rediscli>.
|
||||
|
||||
- Connect to the local server:
|
||||
|
||||
2
tldr/rga
2
tldr/rga
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`rga --rga-list-adapters`
|
||||
|
||||
- Change which adapters to use (e.g. ffmpeg, pandoc, poppler etc.):
|
||||
- Change which adapters to use (e.g. `ffmpeg`, `pandoc`, `poppler` etc.):
|
||||
|
||||
`rga --rga-adapters={{adapter1,adapter2}} {{regex}}`
|
||||
|
||||
|
||||
@@ -10,11 +10,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Download and run `rustup-init` to install `rustup` and the default Rust toolchain:
|
||||
|
||||
`curl https://sh.rustup.rs -sSf | sh -s`
|
||||
`curl https://sh.rustup.rs {{[-sSf|--silent --show-error --fail]}} | sh -s`
|
||||
|
||||
- Download and run `rustup-init` and pass arguments to it:
|
||||
|
||||
`curl https://sh.rustup.rs -sSf | sh -s -- {{arguments}}`
|
||||
`curl https://sh.rustup.rs {{[-sSf|--silent --show-error --fail]}} | sh -s -- {{arguments}}`
|
||||
|
||||
- Run `rustup-init` and specify additional components or targets to install:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sfdk apply
|
||||
|
||||
> Applies patches from RPM SPEC file.
|
||||
> Apply patches from RPM SPEC file.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/20-building-mb2/doc/command.apply.adoc>.
|
||||
|
||||
- Apply all patches:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sfdk build-init
|
||||
|
||||
> Initializes build directory.
|
||||
> Initialize build directory.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/20-building-mb2/doc/command.build-init.adoc>.
|
||||
|
||||
- Initialize the current directory as the build directory:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sfdk build-requires
|
||||
|
||||
> Updates build time dependencies.
|
||||
> Update build time dependencies.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/20-building-mb2/doc/command.build-requires.adoc>.
|
||||
|
||||
- Run a subcommand refreshing the cache:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sfdk build-shell
|
||||
|
||||
> Executes custom steps in build engine.
|
||||
> Execute custom steps in build engine.
|
||||
> See also: `sfdk config` for configuring the build target and `sfdk build-init` for initializing build tree.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/20-building-mb2/doc/command.build-shell.adoc>.
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sfdk check
|
||||
|
||||
> Performs quality checks.
|
||||
> Perform quality checks.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/20-building-mb2/doc/command.cmake.adoc>.
|
||||
|
||||
- Display test suites:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sfdk cmake
|
||||
|
||||
> Executes cmake build step.
|
||||
> Execute cmake build step.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/20-building-mb2/doc/command.cmake.adoc>.
|
||||
|
||||
- Run cmake:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sfdk config
|
||||
|
||||
> Configures sfdk.
|
||||
> Configure sfdk.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/10-general/doc/command.config.adoc>.
|
||||
|
||||
- Show configuration in all scopes:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sfdk deploy
|
||||
|
||||
> Deploys build results to a device.
|
||||
> Deploy build results to a device.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/50-testing-mb2/doc/command.deploy.adoc>.
|
||||
|
||||
- Deploy using a specified method (`pkcon`, `rsync`, `sdk`, `zypper`, `zypper-dup` or `manual`):
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sfdk device
|
||||
|
||||
> Maintains and controls registered devices.
|
||||
> Maintain and control registered devices.
|
||||
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/#running-the-sample-application-in-the-emulator>.
|
||||
|
||||
- Display the registered devices:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sfdk emulator
|
||||
|
||||
> Maintains and controls emulators.
|
||||
> Maintain and control emulators.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/40-testing-maintain/doc/command.emulator.adoc>.
|
||||
|
||||
- Display the installed emulators:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sfdk emulator install
|
||||
|
||||
> Installs emulators.
|
||||
> Install emulators.
|
||||
> More information: <https://docs.sailfishos.org/Tools/Sailfish_SDK/Early_Access/#early-access-build-targets-and-emulator>.
|
||||
|
||||
- Install an emulator:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sfdk engine
|
||||
|
||||
> Maintains and controls the build engine.
|
||||
> Maintain and control the build engine.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/30-building-maintain/doc/command.engine.adoc>.
|
||||
|
||||
- Start the build engine:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sfdk init
|
||||
|
||||
> Initializes a new project.
|
||||
> Initialize a new project.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/15-building-init/doc/command.init.adoc>.
|
||||
|
||||
- Initialize a new project of the given type:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sfdk maintain
|
||||
|
||||
> Launches the interactive SDK Maintenance tool.
|
||||
> Launch the interactive SDK Maintenance tool.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/10-general/doc/command.maintain.adoc>.
|
||||
|
||||
- Launch SDK Maintenance tool:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sfdk make
|
||||
|
||||
> Executes make build step.
|
||||
> Execute make build step.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/20-building-mb2/doc/command.make.adoc>.
|
||||
|
||||
- Run make build:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sfdk make-install
|
||||
|
||||
> Executes make-install build step.
|
||||
> Execute make-install build step.
|
||||
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/#building-the-sample-application>.
|
||||
|
||||
- Run make-install section of RPM SPEC file:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sfdk package
|
||||
|
||||
> Executes package creation build step.
|
||||
> Execute package creation build step.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/20-building-mb2/doc/command.package.adoc>.
|
||||
|
||||
- Create a package:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sfdk prepare
|
||||
|
||||
> Executes preparation build step.
|
||||
> Execute preparation build step.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/20-building-mb2/doc/command.prepare.adoc>.
|
||||
|
||||
- Prepare sources using the recipe from RPM SPEC file:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sfdk qmake
|
||||
|
||||
> Executes qmake build step.
|
||||
> Execute qmake build step.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/20-building-mb2/doc/command.qmake.adoc>.
|
||||
|
||||
- Run qmake build:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sfdk scrape
|
||||
|
||||
> Converts source code modifications to patches.
|
||||
> Convert source code modifications to patches.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/65-maintaining-mb2/doc/command.scrape.adoc>.
|
||||
|
||||
- Save source modifications as patches:
|
||||
@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sfdk scrape --stable`
|
||||
|
||||
- Scrape while saving patches to a specified [o]utput directory:
|
||||
- Scrape while saving patches to a specified output directory:
|
||||
|
||||
`sfdk scrape {{[-o|--output-dir]}} {{directory}}`
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sfdk undeploy
|
||||
|
||||
> Undeploys build results from a device.
|
||||
> Undeploy build results from a device.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/50-testing-mb2/doc/command.undeploy.adoc>.
|
||||
|
||||
- Undeploy using a specified method (`pkcon`, `rpm`, `rsync`, `sdk` or `zypper`):
|
||||
|
||||
@@ -6,16 +6,17 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# silicon
|
||||
|
||||
> Create an image of source code.
|
||||
> More information: <https://github.com/Aloxaf/silicon>.
|
||||
> See also: `freeze`.
|
||||
> More information: <https://github.com/Aloxaf/silicon#examples>.
|
||||
|
||||
- Generate an image from a specific source file:
|
||||
|
||||
`silicon {{path/to/source_file}} --output {{path/to/output_image}}`
|
||||
`silicon {{path/to/source_file}} {{[-o|--output]}} {{path/to/output_image}}`
|
||||
|
||||
- Generate an image from a source file with a specific programming language syntax highlighting (e.g. `rust`, `py`, `js`, etc.):
|
||||
|
||||
`silicon {{path/to/source_file}} --output {{path/to/output_image}} --language {{language|extension}}`
|
||||
`silicon {{path/to/source_file}} {{[-o|--output]}} {{path/to/output_image}} {{[-l|--language]}} {{language|extension}}`
|
||||
|
||||
- Generate an image from `stdin`:
|
||||
|
||||
`{{command}} | silicon --output {{path/to/output_image}}`
|
||||
`{{command}} | silicon {{[-o|--output]}} {{path/to/output_image}}`
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`smbmap --host-file {{path/to/file}}`
|
||||
|
||||
- Display SMB shares and permissions on a host, prompting for user's password or NTLM hash:
|
||||
- Display SMB shares and permissions on a [H]ost, prompting for user's password or NTLM hash:
|
||||
|
||||
`smbmap {{[-u|--username]}} {{username}} --prompt -H {{ip}}`
|
||||
|
||||
|
||||
2
tldr/ssh
2
tldr/ssh
@@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`ssh {{username}}@{{remote_host}}`
|
||||
|
||||
- Connect to a remote server with a specific identity (private key):
|
||||
- Connect to a remote server with a specific [i]dentity (private key):
|
||||
|
||||
`ssh -i {{path/to/key_file}} {{username}}@{{remote_host}}`
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Discover valid subdomains for websites.
|
||||
> Designed as a passive framework to be useful for bug bounties and safe for penetration testing.
|
||||
> More information: <https://docs.projectdiscovery.io/tools/subfinder/running>.
|
||||
> More information: <https://docs.projectdiscovery.io/opensource/subfinder/usage>.
|
||||
|
||||
- Find subdomains for a specific domain:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# Resolve-Path
|
||||
|
||||
> Resolves the wildcard characters in a path, and displays the path contents.
|
||||
> Resolve the wildcard characters in a path, and display the path contents.
|
||||
> Note: This command can only be used through PowerShell.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.management/resolve-path>.
|
||||
|
||||
|
||||
42
tldr/ytmdl
Normal file
42
tldr/ytmdl
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ytmdl
|
||||
|
||||
> Download songs from YouTube and automatically add metadata.
|
||||
> Fetch song information (artist, album, cover art) from iTunes, Spotify, and other sources.
|
||||
> More information: <https://github.com/deepjyoti30/ytmdl#usage>.
|
||||
|
||||
- Download a song by name (with interactive selection):
|
||||
|
||||
`ytmdl {{song_name}}`
|
||||
|
||||
- Download the first result without prompting:
|
||||
|
||||
`ytmdl {{[-q|--quiet]}} {{song_name}}`
|
||||
|
||||
- Download a song to a specific directory:
|
||||
|
||||
`ytmdl {{[-o|--output-dir]}} {{path/to/directory}} {{song_name}}`
|
||||
|
||||
- Download a song from a YouTube URL:
|
||||
|
||||
`ytmdl --url https://www.youtube.com/watch?v={{oHg5SJYRHA0}}`
|
||||
|
||||
- Download a song in a specific format (mp3, m4a, or opus):
|
||||
|
||||
`ytmdl --format {{mp3|m4a|opus}} {{song_name}}`
|
||||
|
||||
- Download a song with artist and album information:
|
||||
|
||||
`ytmdl --artist {{artist_name}} --album {{album_name}} {{song_name}}`
|
||||
|
||||
- Download a list of songs from a text file:
|
||||
|
||||
`ytmdl --list {{path/to/list.txt}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`ytmdl {{[-h|--help]}}`
|
||||
4
tldr/zek
4
tldr/zek
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# zek
|
||||
|
||||
> Generate a Go struct from XML.
|
||||
> More information: <https://github.com/miku/zek>.
|
||||
> More information: <https://github.com/miku/zek#usage>.
|
||||
|
||||
- Generate a Go struct from a given XML from `stdin` and display output on `stdout`:
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Generate a Go struct from a given XML from `stdin` and send output to a file:
|
||||
|
||||
`curl -s {{https://url/to/xml}} | zek -o {{path/to/output.go}}`
|
||||
`curl {{[-s|--silent]}} {{https://url/to/xml}} | zek -o {{path/to/output.go}}`
|
||||
|
||||
- Generate an example Go program from a given XML from `stdin` and send output to a file:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user