mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-10 15:46:58 +00:00
Update cheatsheets
This commit is contained in:
26
tldr/dbx
Normal file
26
tldr/dbx
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# dbx
|
||||
|
||||
> Interact with the Databricks platform.
|
||||
> Note: this tool has been retired and it is recommended to use Databricks Asset Bundles instead.
|
||||
> More information: <https://dbx.readthedocs.io/en/latest/reference/cli/#dbx>.
|
||||
|
||||
- Create a new `dbx` project in the current working directory:
|
||||
|
||||
`dbx configure --profile {{DEFAULT}}`
|
||||
|
||||
- Sync local files from the specified path to DBFS and watch for changes:
|
||||
|
||||
`dbx sync dbfs --source {{path/to/directory}} --dest {{path/to/remote_directory}}`
|
||||
|
||||
- Deploy the specified workflow to artifact storage:
|
||||
|
||||
`dbx deploy {{workflow_name}}`
|
||||
|
||||
- Launch the specified workflow after deploying it:
|
||||
|
||||
`dbx launch {{workflow_name}}`
|
||||
17
tldr/function
Normal file
17
tldr/function
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# function
|
||||
|
||||
> Define a function.
|
||||
> More information: <https://www.gnu.org/software/bash/manual/bash.html#Shell-Functions>.
|
||||
|
||||
- Define a function with the specified name:
|
||||
|
||||
`function {{func_name}} { {{echo "Function contents here"}}; }`
|
||||
|
||||
- Run a function named `func_name`:
|
||||
|
||||
`func_name`
|
||||
21
tldr/linux/fadvise
Normal file
21
tldr/linux/fadvise
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# fadvise
|
||||
|
||||
> Control Linux file caching behavior.
|
||||
> More information: <https://manned.org/fadvise>.
|
||||
|
||||
- Preload a file into cache:
|
||||
|
||||
`fadvise {{-a|--advice}} willneed {{path/to/file}}`
|
||||
|
||||
- Suggest dropping a file from cache:
|
||||
|
||||
`fadvise {{path/to/file}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`fadvise --help`
|
||||
17
tldr/linux/fincore
Normal file
17
tldr/linux/fincore
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# fincore
|
||||
|
||||
> Display how much cache memory a file is taking.
|
||||
> More information: <https://manned.org/fincore>.
|
||||
|
||||
- Display cache details for a file:
|
||||
|
||||
`fincore {{path/to/file}}`
|
||||
|
||||
- Display all possible data columns:
|
||||
|
||||
`fincore --output-all {{path/to/file}}`
|
||||
37
tldr/linux/fwconsole
Normal file
37
tldr/linux/fwconsole
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# fwconsole
|
||||
|
||||
> Manage and configure your FreePBX system (PBX server).
|
||||
> More information: <https://sangomakb.atlassian.net/wiki/spaces/PG/pages/41779247/fwconsole+commands+13>.
|
||||
|
||||
- Reload FreePBX configurations:
|
||||
|
||||
`fwconsole reload`
|
||||
|
||||
- Start Asterisk and other commands needed by FreePBX:
|
||||
|
||||
`fwconsole start`
|
||||
|
||||
- Stop Asterisk and other commands needed by FreePBX:
|
||||
|
||||
`fwconsole stop`
|
||||
|
||||
- View and update settings:
|
||||
|
||||
`fwconsole setting {{keyword}} {{new_value}}`
|
||||
|
||||
- List available backups:
|
||||
|
||||
`fwconsole backup --list`
|
||||
|
||||
- List available FreePBX commands:
|
||||
|
||||
`fwconsole list`
|
||||
|
||||
- Change ownership of all files and directories that FreePBX needs to be owned by the apache user:
|
||||
|
||||
`fwconsole chown`
|
||||
12
tldr/linux/i386
Normal file
12
tldr/linux/i386
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# i386
|
||||
|
||||
> This command is an alias of `setarch i386`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr setarch`
|
||||
12
tldr/linux/linux32
Normal file
12
tldr/linux/linux32
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# linux32
|
||||
|
||||
> This command is an alias of `setarch linux32`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr setarch`
|
||||
12
tldr/linux/linux64
Normal file
12
tldr/linux/linux64
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# linux64
|
||||
|
||||
> This command is an alias of `setarch linux64`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr setarch`
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
|
||||
> More information: <https://manned.org/pacman.8>.
|
||||
|
||||
- Synchronize and update all packages:
|
||||
- [S]ynchronize and update all packages:
|
||||
|
||||
`sudo pacman -Syu`
|
||||
|
||||
@@ -18,23 +18,23 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo pacman -S {{package}}`
|
||||
|
||||
- Remove a package and its dependencies:
|
||||
- [R]emove a package and its dependencies:
|
||||
|
||||
`sudo pacman -Rs {{package}}`
|
||||
|
||||
- Search the database for packages containing a specific file:
|
||||
- Search ([s]) the package database for a regular expression or keyword:
|
||||
|
||||
`pacman -Ss "{{search_pattern}}"`
|
||||
|
||||
- Search the database for packages containing a specific [F]ile:
|
||||
|
||||
`pacman -F "{{file_name}}"`
|
||||
|
||||
- List installed packages and versions:
|
||||
|
||||
`pacman -Q`
|
||||
|
||||
- List only the explicitly installed packages and versions:
|
||||
- List only the [e]xplicitly installed packages and versions:
|
||||
|
||||
`pacman -Qe`
|
||||
|
||||
- List orphan packages (installed as dependencies but not actually required by any package):
|
||||
- List orphan packages (installed as [d]ependencies but not actually required by any package):
|
||||
|
||||
`pacman -Qtdq`
|
||||
|
||||
|
||||
12
tldr/linux/pacman-t
Normal file
12
tldr/linux/pacman-t
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pacman -T
|
||||
|
||||
> This command is an alias of `pacman --deptest`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr pacman deptest`
|
||||
12
tldr/linux/uname26
Normal file
12
tldr/linux/uname26
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# uname26
|
||||
|
||||
> This command is an alias of `setarch uname26`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr setarch`
|
||||
12
tldr/linux/x86_64
Normal file
12
tldr/linux/x86_64
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# x86_64
|
||||
|
||||
> This command is an alias of `setarch x86_64`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr setarch`
|
||||
@@ -32,9 +32,9 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`npm cache verify`
|
||||
|
||||
- Show information about the npm cache location and configuration:
|
||||
- Show the cache path:
|
||||
|
||||
`npm cache dir`
|
||||
`npm config get cache`
|
||||
|
||||
- Change the cache path:
|
||||
|
||||
|
||||
14
tldr/pamtosrf
Normal file
14
tldr/pamtosrf
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pamtosrf
|
||||
|
||||
> Convert Netpbm images to SRF format.
|
||||
> See also: `srftopam`.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pamtosrf.html>.
|
||||
|
||||
- Convert a Netpbm image or a stream of Netpbm images to SRF format:
|
||||
|
||||
`pamtosrf {{path/to/file.pam}} > {{path/to/output.srf}}`
|
||||
13
tldr/ppmtoapplevol
Normal file
13
tldr/ppmtoapplevol
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ppmtoapplevol
|
||||
|
||||
> Convert a PPM image into an Apple volume label image.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/ppmtoapplevol.html>.
|
||||
|
||||
- Convert a PPM image into an Apple volume label image:
|
||||
|
||||
`ppmtoapplevol {{path/to/image.ppm}} > {{path/to/output}}`
|
||||
25
tldr/ppmtopjxl
Normal file
25
tldr/ppmtopjxl
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ppmtopjxl
|
||||
|
||||
> Convert a PPM image into an HP PaintJet XL PCL file.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/ppmtopjxl.html>.
|
||||
|
||||
- Convert a PPM image into an PJXL file:
|
||||
|
||||
`ppmtopjxl {{path/to/image.ppm}} > {{path/to/output.pjxl}}`
|
||||
|
||||
- Resize the input image:
|
||||
|
||||
`ppmtopjxl -xsize {{10cm}} -ysize {{5cm}} {{path/to/image.ppm}} > {{path/to/output.pjxl}}`
|
||||
|
||||
- Shift the input image:
|
||||
|
||||
`ppmtopjxl -xshift {{10pt}} -yshift {{5pt}} {{path/to/image.ppm}} > {{path/to/output.pjxl}}`
|
||||
|
||||
- Do not use the normal TIFF 4.0 compression method:
|
||||
|
||||
`ppmtopjxl -nopack {{path/to/image.ppm}} > {{path/to/output.pjxl}}`
|
||||
14
tldr/ppmtorgb3
Normal file
14
tldr/ppmtorgb3
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ppmtorgb3
|
||||
|
||||
> Separate the color components of a PPM file into three separate PGM files.
|
||||
> See also: `rgb3toppm`.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/ppmtorgb3.html>.
|
||||
|
||||
- Separate the color components of a PPM file, saving the outputs to `file.red`, `file.grn` and `file.blu`:
|
||||
|
||||
`ppmtorgb3 {{path/to/file.ppm}}`
|
||||
21
tldr/ppmwheel
Normal file
21
tldr/ppmwheel
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ppmwheel
|
||||
|
||||
> Generate a PPM image of a color wheel.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/ppmwheel.html>.
|
||||
|
||||
- Generate a color wheel of type `Ppmcirc`:
|
||||
|
||||
`ppmwheel {{diameter}} > {{path/to/output.ppm}}`
|
||||
|
||||
- Generate a color wheel of type `Hue-value`:
|
||||
|
||||
`ppmwheel -huevalue {{diameter}} > {{path/to/output.ppm}}`
|
||||
|
||||
- Generate a color wheel of type `Hue-saturation`:
|
||||
|
||||
`ppmwheel -huesaturation {{diameter}} > {{path/to/output.ppm}}`
|
||||
25
tldr/readarray
Normal file
25
tldr/readarray
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# readarray
|
||||
|
||||
> Read lines from `stdin` into an array.
|
||||
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-readarray>.
|
||||
|
||||
- Interactively input lines into an array:
|
||||
|
||||
`readarray {{array_name}}`
|
||||
|
||||
- Read lines from a file and insert them in an array:
|
||||
|
||||
`readarray {{array_name}} < {{path/to/file.txt}}`
|
||||
|
||||
- Remove trailing deliminators (newline by default):
|
||||
|
||||
`readarray -t {{array_name}} < {{path/to/file.txt}}`
|
||||
|
||||
- Copy at most the specified number of lines:
|
||||
|
||||
`readarray -n {{N}} {{array_name}} < {{path/to/file.txt}}`
|
||||
14
tldr/rgb3toppm
Normal file
14
tldr/rgb3toppm
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# rgb3toppm
|
||||
|
||||
> Combine three PGM images into one PPM image.
|
||||
> See also: `ppmtorgb3`.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/rgb3toppm.html>.
|
||||
|
||||
- Combine three PGM images (representing red, green and blue color components) into one PPM image:
|
||||
|
||||
`rgb3toppm {{path/to/red_file.ppm}} {{path/to/green_file.ppm}} {{path/to/blue_file.ppm}} > {{path/to/output.ppm}}`
|
||||
13
tldr/rlatopam
Normal file
13
tldr/rlatopam
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# rlatopam
|
||||
|
||||
> Convert Alias/Wavefront RLA and RPF image files to Netpbm format.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/rlatopam.html>.
|
||||
|
||||
- Convert the specified SPOT image to PGM format:
|
||||
|
||||
`rlatopam {{path/to/file}} > {{path/to/output.pam}}`
|
||||
21
tldr/spottopgm
Normal file
21
tldr/spottopgm
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# spottopgm
|
||||
|
||||
> Convert a SPOT satellite image to PGM format.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/spottopgm.html>.
|
||||
|
||||
- Convert the specified SPOT image to PGM format:
|
||||
|
||||
`spottopgm {{path/to/file.spot}} > {{path/to/output.pgm}}`
|
||||
|
||||
- Extract the specified color channel:
|
||||
|
||||
`spottopgm -{{1|2|3}} {{path/to/file.spot}} > {{path/to/output.pgm}}`
|
||||
|
||||
- Extract the specified rectangle from the input image:
|
||||
|
||||
`spottopgm {{first_col first_row last_col last_row}} {{path/to/file.spot}} > {{path/to/output.pgm}}`
|
||||
14
tldr/srftopam
Normal file
14
tldr/srftopam
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# srftopam
|
||||
|
||||
> Convert an SRF file to Netpbm format.
|
||||
> See also: `pamtosrf`.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/srftopam.html>.
|
||||
|
||||
- Convert an SRF file to Netpbm format:
|
||||
|
||||
`srftopam {{path/to/file.srf}} > {{path/to/output.pam}}`
|
||||
17
tldr/svgtopam
Normal file
17
tldr/svgtopam
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# svgtopam
|
||||
|
||||
> Convert an SVG file to Netpbm format.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/svgtopam.html>.
|
||||
|
||||
- Convert an SVG file to Netpbm format:
|
||||
|
||||
`svgtopam {{path/to/file.svg}} > {{path/to/output.pam}}`
|
||||
|
||||
- Emit textual output describing the input image:
|
||||
|
||||
`svgtopam -trace {{path/to/file.svg}}`
|
||||
Reference in New Issue
Block a user