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
# 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: