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:
29
tldr/bun-audit
Normal file
29
tldr/bun-audit
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bun-audit
|
||||
|
||||
> Check installed packages for known security vulnerabilities.
|
||||
> More information: <https://bun.com/docs/pm/cli/audit>.
|
||||
|
||||
- Audit all dependencies in a project with a `bun.lock` file:
|
||||
|
||||
`bun audit`
|
||||
|
||||
- Show only vulnerabilities at or above a specific severity level:
|
||||
|
||||
`bun audit --audit-level {{low|moderate|high|critical}}`
|
||||
|
||||
- Audit only production dependencies:
|
||||
|
||||
`bun audit --prod`
|
||||
|
||||
- Ignore a specific CVE ID:
|
||||
|
||||
`bun audit --ignore {{CVE-XXXX-YYYY}}`
|
||||
|
||||
- Output the raw JSON report:
|
||||
|
||||
`bun audit --json`
|
||||
30
tldr/bun-exec
Normal file
30
tldr/bun-exec
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bun exec
|
||||
|
||||
> Execute shell commands or script files using Bun's runtime.
|
||||
> Note: When running from a shell, remember to escape quotes.
|
||||
> More information: <https://bun.sh/docs/runtime/shell>.
|
||||
|
||||
- Run a simple command:
|
||||
|
||||
`bun exec "echo hello"`
|
||||
|
||||
- Run a command with flags:
|
||||
|
||||
`bun exec "ls -la"`
|
||||
|
||||
- Run a command containing quotes:
|
||||
|
||||
`bun exec "echo \"hello friends\""`
|
||||
|
||||
- Run a combined shell command:
|
||||
|
||||
`bun exec "mkdir test && cd test"`
|
||||
|
||||
- Run a script file:
|
||||
|
||||
`bun exec {{path/to/script}}`
|
||||
25
tldr/bun-info
Normal file
25
tldr/bun-info
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bun-info
|
||||
|
||||
> Display package metadata from the npm registry.
|
||||
> More information: <https://bun.com/docs/pm/cli/info>.
|
||||
|
||||
- Display the package metadata:
|
||||
|
||||
`bun info {{package_name}}`
|
||||
|
||||
- Display the specific version metadata:
|
||||
|
||||
`bun info {{package_name}}@{{version}}`
|
||||
|
||||
- Show a specific property of a package:
|
||||
|
||||
`bun info {{package_name}} {{property}}`
|
||||
|
||||
- Output results in JSON format:
|
||||
|
||||
`bun info {{package_name}} --json`
|
||||
33
tldr/conda-package
Normal file
33
tldr/conda-package
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# conda package
|
||||
|
||||
> Create low-level conda packages.
|
||||
> More information: <https://docs.conda.io/projects/conda/en/stable/commands/package.html>.
|
||||
|
||||
- Get conda package from file:
|
||||
|
||||
`conda package {{[-w|--which]}} {{path/to/file}}`
|
||||
|
||||
- Remove all untracked files:
|
||||
|
||||
`conda package {{[-r|--reset}}`
|
||||
|
||||
- Display all untracked files:
|
||||
|
||||
`conda package {{[-u|--untracked]}}`
|
||||
|
||||
- Designate package name of the package being created:
|
||||
|
||||
`conda package --pkg-name {{name}}`
|
||||
|
||||
- Designate package version of the package being created:
|
||||
|
||||
`conda package --pkg-version {{version}}`
|
||||
|
||||
- Designate package build number of the package being created:
|
||||
|
||||
`conda package --pkg-build {{build_number}}`
|
||||
25
tldr/czkawka_cli
Normal file
25
tldr/czkawka_cli
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# czkawka_cli
|
||||
|
||||
> Find duplicates, empty folders, similar images and much more.
|
||||
> More information: <https://github.com/qarmin/czkawka/blob/master/czkawka_cli/README.md>.
|
||||
|
||||
- List duplicate in specific directories and write the results into a file:
|
||||
|
||||
`czkawka_cli dup {{[-d|--directories]}} {{path/to/directory1}} {{[-d|--directories]}} {{path/to/directory2}} {{[-f|--file-to-save]}} {{path/to/results.txt}}`
|
||||
|
||||
- Find duplicate files in specific directories and delete them (default: `NONE`):
|
||||
|
||||
`czkawka-cli dup {{[-d|--directories]}} {{path/to/directory}} {{[-D|--delete-method]}} {{AEN|AEO|ON|OO|HARD|NONE}}`
|
||||
|
||||
- Find similar looking image with a specific similarity level (default: `High`):
|
||||
|
||||
`czkawka-cli image {{[-d|--directories]}} {{path/to/directory}} {{[-s|--similarity-preset]}} {{Minimal|VerySmall|Small|Medium|High|VeryHigh|Original}} {{[-f|--file-to-save]}} {{path/to/results.txt}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`czkawka_cli {{[-h|--help]}}`
|
||||
33
tldr/deepseek
Normal file
33
tldr/deepseek
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# deepseek
|
||||
|
||||
> An AI coding assistant using DeepSeek Coder models.
|
||||
> More information: <https://github.com/holasoymalva/deepseek-cli#cli-commands>.
|
||||
|
||||
- Start interactive mode:
|
||||
|
||||
`deepseek`
|
||||
|
||||
- Run a single prompt:
|
||||
|
||||
`deepseek chat "{{write a Python function for binary search}}"`
|
||||
|
||||
- Start interactive mode with a specific model:
|
||||
|
||||
`deepseek --model {{deepseek-coder:6.7b}}`
|
||||
|
||||
- Set up the local environment (Ollama):
|
||||
|
||||
`deepseek setup`
|
||||
|
||||
- Force the CLI to use local mode:
|
||||
|
||||
`deepseek --local`
|
||||
|
||||
- Show help information:
|
||||
|
||||
`deepseek --help`
|
||||
37
tldr/expo
Normal file
37
tldr/expo
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# expo
|
||||
|
||||
> Build, develop, and deploy React Native apps.
|
||||
> More information: <https://docs.expo.dev/eas/>.
|
||||
|
||||
- Build an Android APK or AAB:
|
||||
|
||||
`expo build:android`
|
||||
|
||||
- Build an iOS IPA:
|
||||
|
||||
`expo build:ios`
|
||||
|
||||
- Run the app in Expo Go:
|
||||
|
||||
`expo start`
|
||||
|
||||
- Install a dependency:
|
||||
|
||||
`expo install <package_name>`
|
||||
|
||||
- Prebuild native Android/iOS projects:
|
||||
|
||||
`expo prebuild`
|
||||
|
||||
- Run the app on Android:
|
||||
|
||||
`expo run:android`
|
||||
|
||||
- Run the app on iOS:
|
||||
|
||||
`expo run:ios`
|
||||
@@ -32,7 +32,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Clean the local repository - removing package files (`.deb`) from interrupted downloads that can no longer be downloaded:
|
||||
|
||||
`apt-get autoclean`
|
||||
`sudo apt-get autoclean`
|
||||
|
||||
- Remove all packages that are no longer needed:
|
||||
|
||||
|
||||
34
tldr/linux/cephadm
Normal file
34
tldr/linux/cephadm
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# cephadm
|
||||
|
||||
> Deploy and manage a Ceph cluster using containers.
|
||||
> Part of the Ceph orchestrator framework.
|
||||
> More information: <https://docs.ceph.com/en/latest/man/8/cephadm/>.
|
||||
|
||||
- Bootstrap a new Ceph cluster on the current host:
|
||||
|
||||
`sudo cephadm bootstrap --mon-ip {{monitor_ip}}`
|
||||
|
||||
- Add a new host to the cluster:
|
||||
|
||||
`sudo cephadm add-host {{hostname}} {{ip_address}}`
|
||||
|
||||
- Deploy a specific service (e.g., mgr, mon, osd):
|
||||
|
||||
`sudo cephadm deploy {{service_type}} --name {{service_name}}`
|
||||
|
||||
- Check the status of cluster services:
|
||||
|
||||
`sudo cephadm shell -- ceph {{[-s|--status]}}`
|
||||
|
||||
- Enter a shell environment inside the Ceph container:
|
||||
|
||||
`sudo cephadm shell`
|
||||
|
||||
- Remove a service from the cluster:
|
||||
|
||||
`sudo cephadm rm-service {{service_type}} --name {{service_name}}`
|
||||
@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# koji
|
||||
|
||||
> Interact with kojihub.
|
||||
> Some subcommands such as `build`, `tag-build`, `download-build`, `buildinfo`, `call`, etc. have their own usage documentation.
|
||||
> More information: <https://docs.pagure.org/koji>.
|
||||
|
||||
- Execute a koji subcommand:
|
||||
@@ -18,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help about global options:
|
||||
|
||||
`koji --help`
|
||||
`koji {{[-h|--help]}}`
|
||||
|
||||
- Display help to get all available commands:
|
||||
|
||||
@@ -26,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help for a specific subcommand (like `build`, `tag-build`, `download-build`, `buildinfo`,`call`, etc.):
|
||||
|
||||
`koji {{subcommand}} --help`
|
||||
`koji {{subcommand}} {{[-h|--help]}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
|
||||
@@ -30,4 +30,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`koji build --help`
|
||||
`koji build {{[-h|--help]}}`
|
||||
|
||||
@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`koji buildinfo --help`
|
||||
`koji buildinfo {{-h|--help}}`
|
||||
|
||||
@@ -23,4 +23,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`koji call --help`
|
||||
`koji call {{[-h|--help]}}`
|
||||
|
||||
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`koji download-build --help`
|
||||
`koji download-build {{[-h|--help]}}`
|
||||
|
||||
@@ -12,10 +12,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`koji help`
|
||||
|
||||
- Display help for specific subcommand (such as `build`, `call`, `cancel`, `tag-build`, etc.):
|
||||
- Display help for specific category (Available categories are: admin, all, bind, build, download, info, misc, monitor, search):
|
||||
|
||||
`koji help {{subcommand}}`
|
||||
`koji help {{category}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`koji {{[-h|--help]}}`
|
||||
`koji help {{[-h|--help]}}`
|
||||
|
||||
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`koji tag-build --help`
|
||||
`koji tag-build {{[-h|--help]}}`
|
||||
|
||||
@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`koji taginfo --help`
|
||||
`koji taginfo {{[-h|--help]}}`
|
||||
|
||||
@@ -30,4 +30,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`koji untag-build --help`
|
||||
`koji untag-build {{[-h|--help]}}`
|
||||
|
||||
17
tldr/linux/systemctl-log-level
Normal file
17
tldr/linux/systemctl-log-level
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl log-level
|
||||
|
||||
> Get or set the log level of the systemd manager.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#log-level%20[LEVEL]>.
|
||||
|
||||
- Show the current log level of the systemd manager:
|
||||
|
||||
`systemctl log-level`
|
||||
|
||||
- Set the manager's log level:
|
||||
|
||||
`systemctl log-level {{emerg|alert|crit|err|warning|notice|info|debug}}`
|
||||
17
tldr/linux/systemctl-log-target
Normal file
17
tldr/linux/systemctl-log-target
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl log-target
|
||||
|
||||
> Get or set the log target for the systemd manager.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#log-target%20[TARGET]>.
|
||||
|
||||
- Show the current log target of the systemd manager:
|
||||
|
||||
`systemctl log-target`
|
||||
|
||||
- Set the manager's log target:
|
||||
|
||||
`systemctl log-target {{journal-or-kmsg|journal|kmsg|console|syslog|null|auto}}`
|
||||
21
tldr/linux/systemctl-service-watchdogs
Normal file
21
tldr/linux/systemctl-service-watchdogs
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl service-watchdogs
|
||||
|
||||
> Get or set the global state of service runtime watchdogs.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#service-watchdogs%20[yes|no]>.
|
||||
|
||||
- Show whether service watchdogs are currently enabled:
|
||||
|
||||
`systemctl service-watchdogs`
|
||||
|
||||
- Enable service runtime watchdogs:
|
||||
|
||||
`systemctl service-watchdogs yes`
|
||||
|
||||
- Disable service runtime watchdogs:
|
||||
|
||||
`systemctl service-watchdogs no`
|
||||
38
tldr/linux/udiskie
Normal file
38
tldr/linux/udiskie
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# udiskie
|
||||
|
||||
> A user-level automounter for removable media using udisks2.
|
||||
> See also: `udiskie-mount`, `udiskie-umount`.
|
||||
> More information: <https://github.com/coldfix/udiskie/wiki/Usage>.
|
||||
|
||||
- Start udiskie with tray icon and notifications:
|
||||
|
||||
`udiskie --tray --notify`
|
||||
|
||||
- Run udiskie without using a config file:
|
||||
|
||||
`udiskie --no-config`
|
||||
|
||||
- Specify a custom config file:
|
||||
|
||||
`udiskie --config {{path/to/config.yml}}`
|
||||
|
||||
- Use a custom password prompt command:
|
||||
|
||||
`udiskie --password-prompt '{{command}}'`
|
||||
|
||||
- Enable verbose output:
|
||||
|
||||
`udiskie --verbose`
|
||||
|
||||
- Display help:
|
||||
|
||||
`udiskie --help`
|
||||
|
||||
- Display version:
|
||||
|
||||
`udiskie --version`
|
||||
22
tldr/linux/udiskie-dmenu
Normal file
22
tldr/linux/udiskie-dmenu
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# udiskie-dmenu
|
||||
|
||||
> A dmenu/rofi-based frontend for udiskie to mount and unmount devices interactively.
|
||||
> Requires udiskie and either dmenu or rofi.
|
||||
> More information: <https://github.com/fogine/udiskie-dmenu>.
|
||||
|
||||
- Launch the menu to mount or unmount devices:
|
||||
|
||||
`udiskie-dmenu`
|
||||
|
||||
- Use rofi instead of dmenu:
|
||||
|
||||
`udiskie-dmenu --rofi`
|
||||
|
||||
- Display help:
|
||||
|
||||
`udiskie-dmenu --help`
|
||||
26
tldr/linux/udiskie-mount
Normal file
26
tldr/linux/udiskie-mount
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# udiskie-mount
|
||||
|
||||
> Manually mount devices using udiskie.
|
||||
> See also: `udiskie`, `udiskie-umount`.
|
||||
> More information: <https://github.com/coldfix/udiskie/wiki/Usage>.
|
||||
|
||||
- Mount all handleable devices:
|
||||
|
||||
`udiskie-mount {{[-a|--all]}}`
|
||||
|
||||
- Mount a specific device:
|
||||
|
||||
`udiskie-mount {{/dev/sdX1}}`
|
||||
|
||||
- Mount a device with verbose output:
|
||||
|
||||
`udiskie-mount --verbose {{/dev/sdX1}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`udiskie-mount --help`
|
||||
26
tldr/linux/udiskie-umount
Normal file
26
tldr/linux/udiskie-umount
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# udiskie-umount
|
||||
|
||||
> Manually unmount devices using udiskie.
|
||||
> See also: `udiskie`, `udiskie-mount`.
|
||||
> More information: <https://github.com/coldfix/udiskie/wiki/Usage>.
|
||||
|
||||
- Unmount a mounted device:
|
||||
|
||||
`udiskie-umount {{path/to/mount}}`
|
||||
|
||||
- Unmount and power down a USB device:
|
||||
|
||||
`udiskie-umount --detach {{path/to/mount}}`
|
||||
|
||||
- Eject an optical drive:
|
||||
|
||||
`udiskie-umount --eject {{path/to/mount}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`udiskie-umount --help`
|
||||
37
tldr/valkey-cli
Normal file
37
tldr/valkey-cli
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# valkey-cli
|
||||
|
||||
> Open a connection to a Valkey server.
|
||||
> More information: <https://valkey.io/topics/cli/>.
|
||||
|
||||
- Connect to the local server:
|
||||
|
||||
`valkey-cli`
|
||||
|
||||
- Connect to a remote server on the default port (6379):
|
||||
|
||||
`valkey-cli -h {{host}}`
|
||||
|
||||
- Connect to a remote server specifying a port number:
|
||||
|
||||
`valkey-cli -h {{host}} -p {{port}}`
|
||||
|
||||
- Connect to a remote server specifying a URI:
|
||||
|
||||
`valkey-cli -u {{uri}}`
|
||||
|
||||
- Specify a password:
|
||||
|
||||
`valkey-cli -a {{password}}`
|
||||
|
||||
- Execute valkey command:
|
||||
|
||||
`valkey-cli {{valkey_command}}`
|
||||
|
||||
- Connect to the local cluster:
|
||||
|
||||
`valkey-cli -c`
|
||||
Reference in New Issue
Block a user