Update cheatsheets

This commit is contained in:
ivuorinen
2025-05-09 00:19:52 +00:00
parent fffa867592
commit 9f85bd373f
8 changed files with 63 additions and 38 deletions

View File

@@ -5,21 +5,25 @@ 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://manned.org/genfstab.8>.
> Generate output suitable for addition to the `/etc/fstab` file.
> More information: <https://manned.org/genfstab>.
- Display an fstab compatible output based on a volume label:
`genfstab -L {{path/to/mount_point}}`
- Display an fstab compatible output based on a volume UUID:
`genfstab -U {{path/to/mount_point}}`
- A usual way to generate an fstab file, requires root permissions:
- Generate the `/etc/fstab` file using volume UUIDs during an Arch Linux installation (requires root permissions):
`genfstab -U {{/mnt}} >> {{/mnt/etc/fstab}}`
- Append a volume into an fstab file to mount it automatically:
- Display fstab-compatible output based on volume labels:
`genfstab -L {{path/to/mount_point}}`
- Display fstab-compatible output based on volume UUIDs:
`genfstab -U {{path/to/mount_point}}`
- Display fstab-compatible output based on the specified identifier:
`genfstab -t {{LABEL|UUID|PARTLABEL|PARTUUID}}`
- Append a volume into the `/etc/fstab` file to mount it automatically:
`genfstab -U {{path/to/mount_point}} | sudo tee -a /etc/fstab`

View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# linux-boot-prober
> Probe a partition for bootable operating systems.
> More information: <https://github.com/MaddieM4/os-prober>.
- Probe a partition:
`sudo linux-boot-prober {{/dev/sdXY}}`

View File

@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
- Make a package, install its dependencies then install it to the system:
`makepkg {{[-s|--syncdeps]}} {{[-i|--install]}}`
`makepkg {{[-si|--syncdeps --install]}}`
- Make a package, but skip checking the source's hashes:
@@ -36,3 +36,7 @@ source: https://github.com/tldr-pages/tldr.git
- Generate and save the source information into `.SRCINFO`:
`makepkg --printsrcinfo > .SRCINFO`
- Download the source and install only the build dependencies for a program:
`makepkg {{[-so|--syncdeps --nobuild]}}`

View File

@@ -35,3 +35,7 @@ source: https://github.com/tldr-pages/tldr.git
- Build the configuration and open it in a virtual machine:
`sudo nixos-rebuild build-vm`
- List available generations similar to the boot loader menu:
`nixos-rebuild list-generations`

View File

@@ -5,18 +5,22 @@ 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://manned.org/pacstrap.8>.
> Install Arch Linux packages in the specified new root directory.
> More information: <https://manned.org/pacstrap>.
- Install the `base` package, Linux kernel and firmware for common hardware:
- Install the `base` package, the Linux kernel and firmware for common hardware:
`pacstrap {{path/to/new/root}} {{base}} {{linux}} {{linux-firmware}}`
- Install the `base` package, Linux LTS kernel and `base-devel` build tools:
- Install the `base` package, the Linux LTS kernel and `base-devel` build tools:
`pacstrap {{path/to/new/root}} {{base}} {{base-devel}} {{linux-lts}}`
- Install packages without copy the host's mirrorlist to the target:
- Install packages and copy the host's Pacman config to the target:
`pacstrap -P {{path/to/new/root}} {{packages}}`
- Install packages without copying the host's mirrorlist to the target:
`pacstrap -M {{path/to/new/root}} {{packages}}`
@@ -35,7 +39,3 @@ source: https://github.com/tldr-pages/tldr.git
- Install packages in interactive mode (prompts for confirmation):
`pacstrap -i {{path/to/new/root}} {{packages}}`
- Install packages using package files:
`pacstrap -U {{path/to/new/root}} {{path/to/package1}} {{path/to/package2}}`