Update cheatsheets

This commit is contained in:
ivuorinen
2025-05-05 00:21:02 +00:00
parent 968390f769
commit e452860d9b
156 changed files with 258 additions and 258 deletions

View File

@@ -9,11 +9,11 @@ source: https://github.com/tldr-pages/tldr.git
> Updates are performed using OCI images, to ensure that the system is always in a consistent state.
> More information: <https://github.com/Vanilla-OS/ABRoot>.
- Add packages to the local image (Note: after executing this command, you need to apply these changes.):
- Add packages to the local image (Note: After executing this command, you need to apply these changes.):
`sudo abroot pkg add {{package}}`
- Remove packages from the local image (Note: after executing this command, you need to apply these changes.):
- Remove packages from the local image (Note: After executing this command, you need to apply these changes.):
`sudo abroot pkg remove {{package}}`
@@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git
`sudo abroot pkg list`
- Apply changes in the local image (Note: you need to reboot your system for these changes to be applied):
- Apply changes in the local image (Note: You need to reboot your system for these changes to be applied):
`sudo abroot pkg apply`

View File

@@ -31,4 +31,4 @@ source: https://github.com/tldr-pages/tldr.git
- Generate a report for debugging manually:
`abrt-cli report --analyze {{problem_id}}`
`abrt-cli report {{[-a|--analyze]}} {{problem_id}}`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Alternative `getty`: Open a `tty` port, prompt for a login name, and invoke the `/bin/login` command.
> It is normally invoked by `init`.
> Note: the baud rate is the speed of data transfer between a terminal and a device over a serial connection.
> Note: The baud rate is the speed of data transfer between a terminal and a device over a serial connection.
> More information: <https://manned.org/agetty>.
- Connect `stdin` to a port (relative to `/dev`) and optionally specify a baud rate (defaults to 9600):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# apx pkgmanagers
> Manage package managers in `apx`.
> Note: user-created package manager configurations are stored in `~/.local/share/apx/pkgmanagers`.
> Note: User-created package manager configurations are stored in `~/.local/share/apx/pkgmanagers`.
> More information: <https://github.com/Vanilla-OS/apx>.
- Interactively create a new package manager configuration:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# apx stacks
> Manage stacks in `apx`.
> Note: user-created stack configurations are stored in `~/.local/share/apx/stacks`.
> Note: User-created stack configurations are stored in `~/.local/share/apx/stacks`.
> More information: <https://github.com/Vanilla-OS/apx>.
- Interactively create a new stack configuration:
@@ -29,6 +29,6 @@ source: https://github.com/tldr-pages/tldr.git
`apx stacks import --input {{path/to/stack.yml}}`
- Export the stack configuration (Note: the output flag is optional, it is exported to the current working directory by default):
- Export the stack configuration (Note: The output flag is optional, it is exported to the current working directory by default):
`apx stacks export --name {{string}} --output {{path/to/output_file}}`

View File

@@ -25,7 +25,7 @@ source: https://github.com/tldr-pages/tldr.git
`sudo btrfs scrub resume {{path/to/btrfs_mount}}`
- Start a scrub, but wait until the scrub finishes before exiting:
- Start a scrub, but do not put the program in the [B]ackground:
`sudo btrfs scrub start -B {{path/to/btrfs_mount}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# collectd
> System statistics collection daemon.
> More information: <https://collectd.org/>.
> More information: <https://www.collectd.org/documentation/>.
- Test the configuration file and then exit:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# cryptsetup luksFormat
> Initialize a LUKS partition and the initial key slot (0) with a passphrase or keyfile.
> Note: this operation overwrites all data on the partition.
> Note: This operation overwrites all data on the partition.
> More information: <https://manned.org/cryptsetup-luksFormat>.
- Initialize a LUKS volume with a passphrase:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# cryptsetup open
> Create a decrypted mapping of an encrypted volume.
> Note: with TRIM enabled, minimal data leakage in form of freed block information, perhaps sufficient to determine the filesystem in use may occur.
> Note: With TRIM enabled, minimal data leakage in form of freed block information, perhaps sufficient to determine the filesystem in use may occur.
> However, you still most likely want to enable it, because the data inside is still safe and SSDs without TRIM will wear out faster.
> More information: <https://manned.org/cryptsetup-open>.

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# diffimg
> Calculate intersection between two images.
> Note: the supported extensions are `.png`, `.gif`, `.jpg`, `.ps`.
> Note: The supported extensions are `.png`, `.gif`, `.jpg`, `.ps`.
> More information: <https://manned.org/diffimg>.
- Calculate the intersection between images and output an image where each pixel is the difference between corresponding pixels in input images:

View File

@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
`dnf5 info {{package}}`
- Install new packages (Note: use `-y` to confirm all prompts automatically):
- Install new packages (Note: Use `-y` to confirm all prompts automatically):
`sudo dnf5 install {{package1 package2 ...}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# dnf5 group
> This command is an alias of `dnf group`.
> Note: from Fedora 37 to 40 (inclusive), `dnf` runs DNF v4 while `dnf5` runs DNF v5.
> Note: From Fedora 37 to 40 (inclusive), `dnf` runs DNF v4 while `dnf5` runs DNF v5.
- View documentation for the original command:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Recover deleted files from ext3 or ext4 partitions by parsing the journal.
> See also `date` for Unix time information and `umount` for unmounting partitions.
> More information: <https://extundelete.sourceforge.net>.
> More information: <https://extundelete.sourceforge.net/options.html>.
- Restore all deleted files inside partition N on device X:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# rename
> Rename multiple files.
> Note: this page refers to the command from the `rename` Debian package.
> Note: This page refers to the command from the `rename` Debian package.
> More information: <https://manned.org/file-rename>.
- Rename files using a Perl Common Regular Expression (substitute 'foo' with 'bar' wherever found):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# fpsync
> Execute several synchronization processes locally or on several remote workers through SSH.
> More information: <https://www.fpart.org/fpsync/>.
> More information: <https://manned.org/fpsync>.
- Recursively synchronize a directory to another location:
@@ -28,6 +28,6 @@ source: https://github.com/tldr-pages/tldr.git
`fpsync -v -n 4 -f 1000 -s $((100 * 1024 * 1024)) {{/path/to/source/}} {{/path/to/destination/}}`
- Recursively synchronize any directories but exclude specific `.snapshot*` files (Note: options and values must be separated by a pipe character):
- Recursively synchronize any directories but exclude specific `.snapshot*` files (Note: Options and values must be separated by a pipe character):
`fpsync -v -O "-x|.snapshot*" {{/path/to/source/}} {{/path/to/destination/}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# lbu
> Manage `apk` overlay files on a diskless Alpine Linux system.
> Note: subcommands like `include` write to `/etc`, which is stored in RAM. You need to run `lbu commit` to save the changes.
> Note: Subcommands like `include` write to `/etc`, which is stored in RAM. You need to run `lbu commit` to save the changes.
> More information: <https://wiki.alpinelinux.org/wiki/Alpine_local_backup>.
- Commit changes to persistent storage (only files in `/etc` by default):

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- Connect to an FTP server:
`lftp --user {{username}} {{ftp.example.com}}`
`lftp {{[-u|--user]}} {{username}} {{ftp.example.com}}`
- Download multiple files (glob expression):
@@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git
- Upload or update an entire directory:
`mirror -R {{path/to/local_dir}} {{path/to/remote_output_dir}}`
`mirror {{[-R|--reverse]}} {{path/to/local_dir}} {{path/to/remote_output_dir}}`

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Find filenames quickly.
> More information: <https://manned.org/locate>.
- Look for pattern in the database. Note: the database is recomputed periodically (usually weekly or daily):
- Look for pattern in the database. Note: The database is recomputed periodically (usually weekly or daily):
`locate {{pattern}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# look
> Display lines beginning with a prefix in a file.
> Note: the lines in the file must be sorted.
> Note: The lines in the file must be sorted.
> See also: `grep`, `sort`.
> More information: <https://manned.org/look>.

View File

@@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git
- Create a logical volume with size 10G from volume group vg1:
`sudo lvm lvcreate -L {{10G}} {{vg1}}`
`sudo lvm lvcreate {{[-L|--size]}} {{10G}} {{vg1}}`
- Display information about logical volumes:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# mkfs.erofs
> Create an EROFS filesystem in an image.
> More information: <https://erofs.docs.kernel.org/en/latest/>.
> More information: <https://manned.org/mkfs.erofs>.
- Create an EROFS filesystem based on the root directory:

View File

@@ -15,4 +15,4 @@ source: https://github.com/tldr-pages/tldr.git
- List the specified attribute only:
`modinfo -F {{author|description|license|parm|filename}} {{kernel_module}}`
`modinfo {{[-F|--field]}} {{author|description|license|parm|filename}} {{kernel_module}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# mount.cifs
> Mount SMB (Server Message Block) or CIFS (Common Internet File System) shares.
> Note: you can also do the same thing by passing the `-t cifs` option to `mount`.
> Note: You can also do the same thing by passing the `-t cifs` option to `mount`.
> More information: <https://manned.org/mount.cifs>.
- Connect using the specified username or `$USER` by default (you will be prompted for a password):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# mount.smb3
> This command is an alias of `mount.cifs`.
> Note: for SMB versions before 3 you have to use `mount.cifs` instead.
> Note: For SMB versions before 3 you have to use `mount.cifs` instead.
- View documentation for the original command:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# rename
> Rename multiple files.
> Note: this page refers to the command from the `perl-rename` Arch Linux package.
> Note: This page refers to the command from the `perl-rename` Arch Linux package.
> More information: <https://manned.org/rename>.
- Rename files using a Perl Common Regular Expression (substitute 'foo' with 'bar' wherever found):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# rename
> Rename multiple files.
> Note: this page refers to the command from the `prename` Fedora package.
> Note: This page refers to the command from the `prename` Fedora package.
> More information: <https://manned.org/prename>.
- Rename files using a Perl Common Regular Expression (substitute 'foo' with 'bar' wherever found):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# quickget
> Download and prepare materials for building a Quickemu virtual machine.
> Note: the parameter "edition" is always optional.
> Note: The parameter "edition" is always optional.
> See also: `quickemu`.
> More information: <https://github.com/quickemu-project/quickemu>.

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# rename
> Rename multiple files.
> Note: this page refers to the command from the `util-linux` package.
> Note: This page refers to the command from the `util-linux` package.
> For the Perl version, see `file-rename` or `perl-rename`.
> Warning: This command has no safeguards and will overwrite files without prompting.
> More information: <https://manned.org/rename>.

View File

@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
- View the current security context of a file or directory:
`ls -dlZ {{path/to/file_or_directory}}`
`ls {{[-dlZ|--directory -l --context]}} {{path/to/file_or_directory}}`
- Restore the security context of a file or directory:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sbctl
> A user-friendly secure boot key manager.
> Note: not enrolling Microsoft's certificates can brick your system. See <https://github.com/Foxboron/sbctl/wiki/FAQ#option-rom>.
> Note: Not enrolling Microsoft's certificates can brick your system. See <https://github.com/Foxboron/sbctl/wiki/FAQ#option-rom>.
> More information: <https://github.com/Foxboron/sbctl#usage>.
- Show the current secure boot status:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# st
> A simple terminal emulator for the X Window System.
> More information: <https://st.suckless.org>.
> More information: <https://manned.org/st>.
- Open a terminal:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# switch_root
> Use a different filesystem as the root of the mount tree.
> Note: switch_root will fail to function if the new root is not the root of a mount. Use bind-mounting as a workaround.
> Note: `switch_root` will fail to function if the new root is not the root of a mount. Use bind-mounting as a workaround.
> See also: `chroot`, `mount`.
> More information: <https://manned.org/switch_root.8>.

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# sxiv
> Simple X Image Viewer.
> More information: <https://github.com/muennich/sxiv>.
> More information: <https://manned.org/sxiv>.
- Open an image:

View File

@@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
- Change the update interval in seconds (or one of these time units: `ms`, `us`, `min`):
`systemd-cgtop --delay={{interval}}`
`systemd-cgtop {{[-d|--delay]}} {{interval}}`
- Only count userspace processes (without kernel threads):

View File

@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
`systemd-delta --type {{masked|equivalent|redirected|overridden|extended|unchanged}}`
- Show only files whose path starts with the specified prefix (Note: a prefix is a directory containing subdirectories with systemd configuration files):
- Show only files whose path starts with the specified prefix (Note: A prefix is a directory containing subdirectories with systemd configuration files):
`systemd-delta {{/etc|/run|/usr/lib|...}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# systemd-resolve
> Resolve domain names, IPV4 and IPv6 addresses, DNS resource records, and services.
> Note: this tool has been renamed to `resolvectl` in new versions of `systemd`.
> Note: This tool has been renamed to `resolvectl` in new versions of `systemd`.
> More information: <https://manned.org/systemd-resolve>.
- View documentation for `resolvectl`:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> View system device information by bus, and classes.
> This command is part of the `sysfs` package.
> More information: <https://github.com/linux-ras/sysfsutils>.
> More information: <https://manned.org/systool>.
- List all attributes of devices of a bus (eg. `pci`, `usb`). View all buses using `ls /sys/bus`:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# trizen
> Arch Linux utility for building packages from the Arch User Repository (AUR).
> More information: <https://github.com/trizen/trizen>.
> More information: <https://github.com/trizen/trizen/blob/master/TRIZEN.md>.
- Synchronize and update all AUR packages:

View File

@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
- Specify the format of captured output:
`tshark -T {{json|text|ps|}}`
`tshark -T {{json|text|ps|...}}`
- Select specific fields to output:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# tzselect
> Interactively select timezone.
> Note: this program doesn't actually set the timezone.
> Note: This program doesn't actually set the timezone.
> More information: <https://manned.org/tzselect>.
- Open the interactive menu for timezone selection and print the selected timezone to `stdout`:

View File

@@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git
`sudo urpme {{package}}`
- Uninstall orphan packages (Note: use it with caution as it might unintentionally remove important packages):
- Uninstall orphan packages (Note: Use it with caution as it might unintentionally remove important packages):
`sudo urpme --auto-orphans`

View File

@@ -8,18 +8,18 @@ source: https://github.com/tldr-pages/tldr.git
> An open-source and easy-to-use tool that recommends suitable programs for tasks.
> More information: <https://github.com/evait-security/wami>.
- Find expanded results in all categories from the lake and [S]ort them in the specified order:
- Find expanded results in all categories from the lake and sort them in the specified order:
`wami --show-all -S {{asc|desc}} --search-all {{search_string}}`
`wami {{[-a|--show-all]}} {{[-S|--sort]}} {{asc|desc}} {{[-s|--search-all]}} {{search_string}}`
- Search GitHub to find expanded results, [S]orted in descending order:
- Search GitHub to find expanded results, sorted in descending order:
`wami --show-all -S desc --github {{search_string}}`
`wami {{[-a|--show-all]}} {{[-S|--sort]}} desc --github {{search_string}}`
- Search GitHub for topics that match the search string:
`wami --list-topics {{search_string}}`
- Search the lake for a tool used in pentests to query for default credentials and [S]ort the results in descending order:
- Search the lake for a tool used in pentests to query for default credentials and sort the results in descending order:
`wami -S desc --search-all pentest credential default`
`wami {{[-S|--sort]}} desc {{[-s|--search-all]}} pentest credential default`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# wpctl
> Manage WirePlumber, a session and policy manager for PipeWire.
> Note: you can use the special name `@DEFAULT_SINK@` in place of `id` to operate on the default sink.
> Note: You can use the special name `@DEFAULT_SINK@` in place of `id` to operate on the default sink.
> More information: <https://pipewire.pages.freedesktop.org/wireplumber/>.
- List all objects managed by WirePlumber:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Simulate keyboard input on Wayland, similar to `xdotool type` for X11.
> See also: `ydotool`.
> More information: <https://github.com/atx/wtype>.
> More information: <https://manned.org/wtype>.
- Simulate typing text:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# xxhsum
> Print or verify checksums using fast non-cryptographic algorithm xxHash.
> More information: <https://github.com/Cyan4973/xxHash>.
> More information: <https://manned.org/xxhsum>.
- Calculate the checksum for a file using a specific algorithm:

View File

@@ -8,6 +8,6 @@ source: https://github.com/tldr-pages/tldr.git
> Add a `.gz` extension to files compressed using `gzip`.
> More information: <https://manned.org/zforce>.
- Add a `.gz` extension to the supplied Gzip files (Note: other files are ignored):
- Add a `.gz` extension to the supplied Gzip files (Note: Other files are ignored):
`zforce {{path/to/file1 path/to/file2 ...}}`