Update cheatsheets

This commit is contained in:
ivuorinen
2024-09-25 00:17:11 +00:00
parent 40122edd15
commit 52b9debcc5
49 changed files with 94 additions and 59 deletions

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# aapt
> Android Asset Packaging Tool: compile and package an Android app's resources.
> More information: <https://elinux.org/Android_aapt>.
> More information: <https://manned.org/aapt>.
- List files contained in an APK archive:

View File

@@ -31,7 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
- Make a new recording, limiting any [i]dle time to at most 2.5 seconds:
`asciinema rec -i 2.5`
`asciinema rec {{-i|--idle-time-limit}} 2.5`
- Print the full output of a locally saved recording:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# base32
> Encode or decode file or `stdin` to/from Base32, to `stdout`.
> More information: <https://www.gnu.org/software/coreutils/base32>.
> More information: <https://manned.org/base32>.
- Encode a file:
@@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git
- Wrap encoded output at a specific width (`0` disables wrapping):
`base32 --wrap {{0|76|...}} {{path/to/file}}`
`base32 {{-w|--wrap}} {{0|76|...}} {{path/to/file}}`
- Decode a file:
`base32 --decode {{path/to/file}}`
`base32 {{-d|--decode}} {{path/to/file}}`
- Encode from `stdin`:
`{{somecommand}} | base32`
`{{command}} | base32`
- Decode from `stdin`:
`{{somecommand}} | base32 --decode`
`{{command}} | base32 {{-d|--decode}}`

View File

@@ -5,25 +5,25 @@ source: https://github.com/tldr-pages/tldr.git
---
# base64
> Encode or decode file or `stdin` to/from Base64, to `stdout`.
> More information: <https://www.gnu.org/software/coreutils/base64>.
> Encode or decode file or `stdin` to/from base64, to `stdout`.
> More information: <https://manned.org/base64>.
- Encode the contents of a file as base64 and write the result to `stdout`:
- Encode a file:
`base64 {{path/to/file}}`
- Wrap encoded output at a specific width (`0` disables wrapping):
`base64 --wrap {{0|76|...}} {{path/to/file}}`
`base64 {{-w|--wrap}} {{0|76|...}} {{path/to/file}}`
- Decode the base64 contents of a file and write the result to `stdout`:
- Decode a file:
`base64 --decode {{path/to/file}}`
`base64 {{-d|--decode}} {{path/to/file}}`
- Encode from `stdin`:
`{{somecommand}} | base64`
`{{command}} | base64`
- Decode from `stdin`:
`{{somecommand}} | base64 --decode`
`{{command}} | base64 {{-d|--decode}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# calendar
> Display upcoming events from a calendar file.
> More information: <https://www.commandlinux.com/man-page/man1/calendar.1.html>.
> More information: <https://manned.org/calendar>.
- Show events for today and tomorrow (or the weekend on Friday) from the default calendar:

View File

@@ -7,6 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> A server application to distribute e-books over a network.
> Note: e-books must already be imported into the library using the GUI or the `calibredb` CLI.
> Part of the Calibre e-book library.
> More information: <https://manual.calibre-ebook.com/generated/en/calibre-server.html>.
- Start a server to distribute e-books. Access at <http://localhost:8080>:

View File

@@ -23,12 +23,12 @@ source: https://github.com/tldr-pages/tldr.git
- Add one or more e-books to the library:
`calibredb add {{file1 file2 }}`
`calibredb add {{path/to/file1 path/to/file2 ...}}`
- [r]ecursively add all e-books under a directory to the library:
`calibredb add -r {{path/to/directory}}`
`calibredb add {{-r|--recurse}} {{path/to/directory}}`
- Remove one or more e-books from the library. You need the e-book IDs (see above):
`calibredb remove {{id1 id2 }}`
`calibredb remove {{id1 id2 ...}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# docker images
> Manage Docker images.
> More information: <https://docs.docker.com/engine/reference/commandline/images/>.
> More information: <https://docs.docker.com/reference/cli/docker/image/ls/>.
- List all Docker images:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# docker inspect
> Return low-level information on Docker objects.
> More information: <https://docs.docker.com/engine/reference/commandline/inspect/>.
> More information: <https://docs.docker.com/reference/cli/docker/inspect/>.
- Display help:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# docker load
> Load Docker images from files or `stdin`.
> More information: <https://docs.docker.com/engine/reference/commandline/load/>.
> More information: <https://docs.docker.com/reference/cli/docker/image/load/>.
- Load a Docker image from `stdin`:

17
tldr/gitstats Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# gitstats
> Git repository statistics generator.
> More information: <https://gitstats.sourceforge.net>.
- Generate statistics for a local repository:
`gitstats {{path/to/gitrepo/.git}} {{path/to/output_folder}}`
- View generated statistics in a web browser:
`xdg-open {{path/to/output_folder/index.html}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# apk
> Alpine Linux package management tool.
> More information: <https://wiki.alpinelinux.org/wiki/Alpine_Linux_package_management>.
> More information: <https://manned.org/apk>.
- Update repository indexes from all remote repositories:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# arch-chroot
> Enhanced `chroot` command to help in the Arch Linux installation process.
> More information: <https://man.archlinux.org/man/arch-chroot.8>.
> More information: <https://manned.org/arch-chroot.8>.
- Start an interactive shell (Bash, by default) in a new root directory:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# at
> Executes commands at a specified time.
> More information: <https://man.archlinux.org/man/at.1>.
> More information: <https://manned.org/at.1>.
- Open an `at` prompt to create a new set of scheduled commands, press `Ctrl + D` to save and exit:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# checkupdates
> Check pending updates in Arch Linux.
> More information: <https://man.archlinux.org/man/checkupdates.8>.
> More information: <https://manned.org/checkupdates.8>.
- List pending updates:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# genfstab
> Arch Linux install script to generate output suitable for addition to an fstab file.
> More information: <https://man.archlinux.org/man/extra/arch-install-scripts/genfstab.8>.
> More information: <https://manned.org/genfstab.8>.
- Display an fstab compatible output based on a volume label:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Find broken library links on the system.
> This tool is only available on Arch Linux.
> More information: <https://man.archlinux.org/man/extra/devtools/lddd.1>.
> More information: <https://manned.org/extra/devtools/lddd.1>.
- Scan directories to find and list packages with broken library links that need to be rebuilt:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Create a package which can be used with `pacman`.
> Uses the `PKGBUILD` file in the current working directory by default.
> More information: <https://man.archlinux.org/man/makepkg.8>.
> More information: <https://manned.org/makepkg.8>.
- Make a package:

17
tldr/linux/mkfs.bcachefs Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# mkfs.bcachefs
> Create a `bcachefs` filesystem inside a partition.
> More information: <https://bcachefs-docs.readthedocs.io/en/latest/mgmt-formatting.html>.
- Create a `bcachefs` filesystem inside partition 1 on a device (`X`):
`sudo mkfs.bcachefs {{/dev/sdX1}}`
- Create a `bcachefs` filesystem with a volume label:
`sudo mkfs.bcachefs {{-L|--fs_label}} {{volume_label}} {{/dev/sdX1}}`

View File

@@ -6,7 +6,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).
> More information: <https://man.archlinux.org/man/mkinitcpio.8>.
> More information: <https://manned.org/mkinitcpio.8>.
- Perform a dry run (print what would be done without actually doing it):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# namcap
> Check binary packages and source `PKGBUILD`s for common packaging mistakes.
> More information: <https://man.archlinux.org/man/namcap.1>.
> More information: <https://manned.org/namcap.1>.
- Check a specific `PKGBUILD` file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pacdiff
> Maintenance utility for `.pacorig`, `.pacnew` and `.pacsave` files created by `pacman`.
> More information: <https://man.archlinux.org/man/pacdiff>.
> More information: <https://manned.org/pacdiff>.
- Review files that need maintenance in interactive mode:

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Arch Linux package manager utility.
> See also: `pacman-database`, `pacman-deptest`, `pacman-files`, `pacman-key`, `pacman-mirrors`, `pacman-query`, `pacman-remove`, `pacman-sync`, `pacman-upgrade`.
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
> More information: <https://man.archlinux.org/man/pacman.8>.
> More information: <https://manned.org/pacman.8>.
- Synchronize and update all packages:

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Operate on the Arch Linux package database.
> Modify certain attributes of the installed packages.
> See also: `pacman`.
> More information: <https://man.archlinux.org/man/pacman.8>.
> More information: <https://manned.org/pacman.8>.
- Mark a package as implicitly installed:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Check each dependency specified and return a list of dependencies that are not currently satisfied on the system.
> See also: `pacman`.
> More information: <https://man.archlinux.org/man/pacman.8>.
> More information: <https://manned.org/pacman.8>.
- Print the package names of the dependencies that aren't installed:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Arch Linux package manager utility.
> See also: `pacman`, `pkgfile`.
> More information: <https://man.archlinux.org/man/pacman.8>.
> More information: <https://manned.org/pacman.8>.
- Update the package database:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Wrapper script for GnuPG used to manage pacman's keyring.
> See also: `pacman`.
> More information: <https://man.archlinux.org/man/pacman-key>.
> More information: <https://manned.org/pacman-key>.
- Initialize the `pacman` keyring:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Arch Linux package manager utility.
> See also: `pacman`.
> More information: <https://man.archlinux.org/man/pacman.8>.
> More information: <https://manned.org/pacman.8>.
- List installed packages and versions:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Arch Linux package manager utility.
> See also: `pacman`.
> More information: <https://man.archlinux.org/man/pacman.8>.
> More information: <https://manned.org/pacman.8>.
- Remove a package and its dependencies:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Arch Linux package manager utility.
> See also: `pacman`.
> More information: <https://man.archlinux.org/man/pacman.8>.
> More information: <https://manned.org/pacman.8>.
- Install a new package:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Arch Linux package manager utility.
> See also: `pacman`.
> More information: <https://man.archlinux.org/man/pacman.8>.
> More information: <https://manned.org/pacman.8>.
- Install one or more packages from files:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pacstrap
> Arch Linux install script to install packages to the specified new root directory.
> More information: <https://man.archlinux.org/man/pacstrap.8>.
> More information: <https://manned.org/pacstrap.8>.
- Install the `base` package, Linux kernel and firmware for common hardware:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pactree
> Package dependency tree viewer for pacman.
> More information: <https://man.archlinux.org/man/pactree.8>.
> More information: <https://manned.org/pactree.8>.
- Print the dependency tree of a specific package:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# picom
> Standalone compositor for Xorg.
> More information: <https://wiki.archlinux.org/title/picom>.
> More information: <https://manned.org/picom>.
- Enable `picom` during a session:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pkgctl
> Unified command-line frontend for Arch Linux devtools.
> More information: <https://man.archlinux.org/man/pkgctl.1>.
> More information: <https://manned.org/pkgctl.1>.
- View documentation for authenticating `pkgctl` with services like GitLab:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pkgctl auth
> Authenticate `pkgctl` with services like GitLab.
> More information: <https://man.archlinux.org/man/pkgctl-auth.1>.
> More information: <https://manned.org/pkgctl-auth.1>.
- Authenticate `pkgctl` with the GitLab instance:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pkgctl build
> Build packages inside a clean `chroot`.
> More information: <https://man.archlinux.org/man/pkgctl-build.1>.
> More information: <https://manned.org/pkgctl-build.1>.
- Automatically choose the right build script to build packages in a clean `chroot`:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pkgctl db update
> Update the `pacman` database as final release step for packages that have been transferred and staged on <https://repos.archlinux.org>.
> More information: <https://man.archlinux.org/man/pkgctl-db-update.1>.
> More information: <https://manned.org/pkgctl-db-update.1>.
- Update the binary repository as final release step:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Compare package files using different modes.
> See also: `pkgctl`.
> More information: <https://man.archlinux.org/man/pkgctl-diff.1>.
> More information: <https://manned.org/pkgctl-diff.1>.
- Compare package files in tar content [l]ist different mode (default):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pkgctl release
> Release step to commit, tag and upload build artifacts.
> More information: <https://man.archlinux.org/man/pkgctl-release.1>.
> More information: <https://manned.org/pkgctl-release.1>.
- Release a build artifact:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Manage Git packaging repositories and their configuration for Arch Linux.
> See also: `pkgctl`.
> More information: <https://man.archlinux.org/man/pkgctl-repo.1>.
> More information: <https://manned.org/pkgctl-repo.1>.
- Clone a package repository (requires setting an SSH key in your Arch Linux GitLab account):

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Search files from packages in the official repositories on Arch-based systems.
> See also: `pacman files`, describing the usage of `pacman --files`.
> More information: <https://man.archlinux.org/man/extra/pkgfile/pkgfile.1>.
> More information: <https://manned.org/extra/pkgfile/pkgfile.1>.
- Synchronize the pkgfile database:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Rank a list of Pacman mirrors by connection and opening speed.
> Writes the new mirrorlist to `stdout`.
> More information: <https://wiki.archlinux.org/index.php/mirrors>.
> More information: <https://manned.org/rankmirrors>.
- Rank a mirror list:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# repo-add
> Package database maintenance utility which enables installation of said package via Pacman.
> More information: <https://man.archlinux.org/man/repo-add>.
> More information: <https://manned.org/repo-add>.
- Create an empty repository:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# repo-remove
> Package database maintenance utility which removes packages from a local repository.
> More information: <https://man.archlinux.org/man/repo-add>.
> More information: <https://manned.org/repo-add>.
- Remove a package from a local repository:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# rkhunter
> Searches for rootkits and malware.
> More information: <https://wiki.archlinux.org/title/Rkhunter>.
> More information: <https://manned.org/rkhunter>.
- Check a system for rootkits and malware:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> XBPS utility to (re)install and update packages.
> See also: `xbps`.
> More information: <https://man.voidlinux.org/xbps-install.1>.
> More information: <https://manned.org/xbps-install.1>.
- Install a new package:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> XBPS utility to query for package and repository information.
> See also: `xbps`.
> More information: <https://man.voidlinux.org/xbps-query.1>.
> More information: <https://manned.org/xbps-query.1>.
- Search for a package in remote repositories using a regular expression or a keyword (if `--regex` is omitted):

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> XBPS utility to remove packages.
> See also: `xbps`.
> More information: <https://man.voidlinux.org/xbps-remove.1>.
> More information: <https://manned.org/xbps-remove.1>.
- Remove a package: