Update cheatsheets

This commit is contained in:
ivuorinen
2025-05-03 00:19:05 +00:00
parent 22a84b91e2
commit 921cbd312c
14 changed files with 55 additions and 14 deletions

View File

@@ -12,6 +12,10 @@ source: https://github.com/tldr-pages/tldr.git
`fc-cache`
- Generate font cache files verbosely:
`fc-cache {{[-v|--verbose]}}`
- Force a rebuild of all font cache files, without checking if cache is up-to-date:
`fc-cache {{[-f|--force]}}`
@@ -19,3 +23,15 @@ source: https://github.com/tldr-pages/tldr.git
- Erase font cache files, then generate new font cache files:
`fc-cache {{[-r|--really-force]}}`
- Scan a specific directory:
`fc-cache {{path/to/directory}}`
- Scan system-wide directories, skipping the user's home directory:
`fc-cache {{[-s|--system-only]}}`
- Display version:
`fc-cache {{[-V|--version]}}`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# figlist
> Lists the figlet fonts and control files.
> List the figlet fonts and control files.
> See also: `figlet`, `showfigfonts`, `chkfont`.
> More information: <https://manned.org/figlist>.

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# git status
> Show the changes to files in a Git repository.
> Lists changed, added and deleted files compared to the currently checked-out commit.
> List changed, added and deleted files compared to the currently checked-out commit.
> More information: <https://git-scm.com/docs/git-status>.
- Show changed files which are not yet added for commit:

View File

@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
- Subscribe to a target with sample interval and updates only on change:
`gnmic {{[-a|--address]}} {{ip:port}} subscribe --path {{path}} --stream-mode on-change --heartbeat-interval 1m`
`gnmic {{[-a|--address]}} {{ip:port}} subscribe --path {{path}} --stream-mode on-change --heartbeat-interval {{1m}}`
- Subscribe to a target for only one update:

View File

@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
- Export an SVG file into a bitmap of 600x400 pixels (aspect ratio distortion may occur):
`inkscape {{path/to/file.svg}} {{[-o|--export-filename]}} {{path/to/filename.png}} {{[-w|--export-width]}} {{600}} {{[-h|--export-height]}} {{400}}`
`inkscape {{path/to/file.svg}} {{[-o|--export-filename]}} {{path/to/filename.png}} {{[-w|--export-width]}} 600 {{[-h|--export-height]}} 400`
- Export the drawing (bounding box of all objects) of an SVG file into a bitmap:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# blkid
> Lists all recognized partitions and their Universally Unique Identifier (UUID).
> List all recognized partitions and their Universally Unique Identifier (UUID).
> More information: <https://manned.org/blkid>.
- List all partitions:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# eu-readelf
> Displays information about ELF files.
> Display information about ELF files.
> More information: <https://manned.org/eu-readelf>.
- Display all extractable information contained in the ELF file:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# getcap
> Command to display the name and capabilities of each specified file.
> Display the name and capabilities of each specified file.
> More information: <https://manned.org/getcap>.
- Get capabilities for the given files:
@@ -16,6 +16,6 @@ source: https://github.com/tldr-pages/tldr.git
`getcap -r {{path/to/directory1 path/to/directory2 ...}}`
- Displays all searched entries even if no capabilities are set:
- Display all searched entries even if no capabilities are set:
`getcap -v {{path/to/file1 path/to/file2 ...}}`

25
tldr/linux/importctl Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# importctl
> Download, Import, or Export disk images.
> More information: <https://manned.org/importctl>.
- Download image in tarball format from a url via pull:
`sudo importctl pull-tar {{URL}} {{path/to/directory}}`
- Pull or download from a remote source that is either raw or qcow2 file, and stores it as a raw file:
`sudo importctl pull-raw {{https://example.com/source.ext}} {{name}} --class={{machine|portable|sysext|confext}}`
- Import a raw disk image into the image directory that is possibly compressed with xz, gzip, or bzip2:
`importctl import-raw {{path/to/file.ext}} {{name}} --class={{machine|portable|sysext|confext}}`
- Export a container image as tarball into current working directory:
`importctl export-tar --class={{machine|portable|sysext|confext}} {{name}} {{path/to/file.ext}}`

View File

@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
- Initialize `kde-builder`:
`kde-builder --generate-config && kde-builder --install-distro-packages`
`kde-builder --initial-setup`
- Compile a KDE component and its dependencies from the source:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# lsblk
> Lists information about devices.
> List information about devices.
> More information: <https://manned.org/lsblk>.
- List all storage devices in a tree-like format:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# mkinitcpio
> Generates initial ramdisk environments for booting the Linux kernel based on the specified preset(s).
> Generate initial ramdisk environments for booting the Linux kernel based on the specified preset(s).
> More information: <https://manned.org/mkinitcpio.8>.
- Perform a dry run (print what would be done without actually doing it):

View File

@@ -5,8 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
---
# lsof
> Lists open files and the corresponding processes.
> Note: Root privileges (or sudo) is required to list files opened by others.
> List open files and the corresponding processes.
> Note: Root privileges are required to list files opened by others.
> More information: <https://manned.org/lsof>.
- Find the processes that have a given file open:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# Get-DedupProperties
> Gets Data Deduplication information.
> Get Data Deduplication information.
> Note: This command can only be used through PowerShell.
> More information: <https://learn.microsoft.com/powershell/module/storage/get-dedupproperties>.