mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-21 22:51:09 +00:00
Update cheatsheets
This commit is contained in:
@@ -10,16 +10,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start an interactive shell (Bash, by default) in a new root directory:
|
||||
|
||||
`arch-chroot {{path/to/new/root}}`
|
||||
`arch-chroot {{path/to/new_root}}`
|
||||
|
||||
- Specify the user (other than the current user) to run the shell as:
|
||||
|
||||
`arch-chroot -u {{user}} {{path/to/new/root}}`
|
||||
`arch-chroot -u {{user}} {{path/to/new_root}}`
|
||||
|
||||
- Run a custom command (instead of the default Bash) in the new root directory:
|
||||
|
||||
`arch-chroot {{path/to/new/root}} {{command}} {{command_arguments}}`
|
||||
`arch-chroot {{path/to/new_root}} {{command}} {{command_arguments}}`
|
||||
|
||||
- Specify the shell, other than the default Bash (in this case, the `zsh` package should have been installed in the target system):
|
||||
|
||||
`arch-chroot {{path/to/new/root}} {{zsh}}`
|
||||
`arch-chroot {{path/to/new_root}} {{zsh}}`
|
||||
|
||||
41
tldr/linux/ark-survival-evolved
Normal file
41
tldr/linux/ark-survival-evolved
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ARK: Survival Evolved
|
||||
|
||||
> Create and start a headless ARK: Survival Evolved server.
|
||||
> More information: <https://ark.wiki.gg/wiki/Server_configuration>.
|
||||
|
||||
- Start the server with a specific map:
|
||||
|
||||
`{{path/to/ShooterGameServer}} {{TheIsland}}`
|
||||
|
||||
- Start the server with a specific session name, server password, and admin password:
|
||||
|
||||
`{{path/to/ShooterGameServer}} {{TheIsland}}?SessionName={{session_name}}?ServerPassword={{server_password}}?ServerAdminPassword={{admin_password}}`
|
||||
|
||||
- Start the server with a specific port and set a maximum player count:
|
||||
|
||||
`{{path/to/ShooterGameServer}} {{TheIsland}}?Port={{7777}}?MaxPlayers={{1..70}}`
|
||||
|
||||
- Enable PvE and disabling PvP:
|
||||
|
||||
`{{path/to/ShooterGameServer}} {{TheIsland}}?ServerPVE=true`
|
||||
|
||||
- Set a multiplier to scale the server difficulty, affecting the maximum level of wild creatures:
|
||||
|
||||
`{{path/to/ShooterGameServer}} {{TheIsland}}?DifficultyOffset={{1.0}}`
|
||||
|
||||
- Enable a specific event:
|
||||
|
||||
`{{path/to/ShooterGameServer}} {{TheIsland}} -ActiveEvent={{Summer}}`
|
||||
|
||||
- Enable automatic mod downloading, installation, and updating (Steam only):
|
||||
|
||||
`{{path/to/ShooterGameServer}} {{TheIsland}} -automanagedmods`
|
||||
|
||||
- Enable crossplay between Steam and Epic Games Store:
|
||||
|
||||
`{{path/to/ShooterGameServer}} {{TheIsland}} -crossplay -PublicIPForEpic={{ip_address}}`
|
||||
@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Test the package in the current directory using a new root directory:
|
||||
|
||||
`autopkgtest -- {{chroot}} {{path/to/new/root}}`
|
||||
`autopkgtest -- {{chroot}} {{path/to/new_root}}`
|
||||
|
||||
- Test the package in the current directory without rebuilding it:
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a Debian Unstable system inside the `sid-root` directory with a local mirror:
|
||||
|
||||
`sudo debootstrap sid {{path/to/sid-root}}/ {{file:///path/to/mirror/}}`
|
||||
`sudo debootstrap sid {{path/to/sid-root}}/ {{file:///path/to/mirror}}/`
|
||||
|
||||
- Switch to a bootstrapped system:
|
||||
|
||||
|
||||
34
tldr/linux/hyprpicker
Normal file
34
tldr/linux/hyprpicker
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# hyprpicker
|
||||
|
||||
> Minimal Wayland color picker for wlroots compositors (e.g., Hyprland).
|
||||
> Requires a Wayland session. For clipboard autocopy, `wl-copy` must be installed.
|
||||
> More information: <https://wiki.hypr.land/Hypr-Ecosystem/hyprpicker/>.
|
||||
|
||||
- Pick a color in the default (hex) format:
|
||||
|
||||
`hyprpicker`
|
||||
|
||||
- Pick a color and output in a specific format:
|
||||
|
||||
`hyprpicker {{[-f|--format]}} {{hex|rgb|hsl|hsv|cmyk}}`
|
||||
|
||||
- Copy the picked color to the clipboard:
|
||||
|
||||
`hyprpicker {{[-a|--autocopy]}}`
|
||||
|
||||
- Disable colored output (print plain text only):
|
||||
|
||||
`hyprpicker {{[-n|--no-fancy]}}`
|
||||
|
||||
- Store the picked color in a shell variable:
|
||||
|
||||
`{{color}}=$(hyprpicker {{[-f|--format]}} {{hex}})`
|
||||
|
||||
- Display help:
|
||||
|
||||
`hyprpicker {{[-h|--help]}}`
|
||||
@@ -10,32 +10,32 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Install the `base` package, the Linux kernel and firmware for common hardware:
|
||||
|
||||
`pacstrap {{path/to/new/root}} {{base}} {{linux}} {{linux-firmware}}`
|
||||
`pacstrap {{path/to/new_root}} {{base}} {{linux}} {{linux-firmware}}`
|
||||
|
||||
- Install the `base` package, the Linux LTS kernel and `base-devel` build tools:
|
||||
|
||||
`pacstrap {{path/to/new/root}} {{base}} {{base-devel}} {{linux-lts}}`
|
||||
`pacstrap {{path/to/new_root}} {{base}} {{base-devel}} {{linux-lts}}`
|
||||
|
||||
- Install packages and copy the host's Pacman config to the target:
|
||||
|
||||
`pacstrap -P {{path/to/new/root}} {{packages}}`
|
||||
`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}}`
|
||||
`pacstrap -M {{path/to/new_root}} {{packages}}`
|
||||
|
||||
- Use an alternate configuration file for Pacman:
|
||||
|
||||
`pacstrap -C {{path/to/pacman.conf}} {{path/to/new/root}} {{packages}}`
|
||||
`pacstrap -C {{path/to/pacman.conf}} {{path/to/new_root}} {{packages}}`
|
||||
|
||||
- Install packages using the package cache on the host instead of on the target:
|
||||
|
||||
`pacstrap -c {{path/to/new/root}} {{packages}}`
|
||||
`pacstrap -c {{path/to/new_root}} {{packages}}`
|
||||
|
||||
- Initialize an empty `pacman` keyring in the target without copying it from the host:
|
||||
|
||||
`pacstrap -K {{path/to/new/root}} {{packages}}`
|
||||
`pacstrap -K {{path/to/new_root}} {{packages}}`
|
||||
|
||||
- Install packages in interactive mode (prompts for confirmation):
|
||||
|
||||
`pacstrap -i {{path/to/new/root}} {{packages}}`
|
||||
`pacstrap -i {{path/to/new_root}} {{packages}}`
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Send a file or directories:
|
||||
|
||||
`qrcp send {{path/to/file_or_directory path/to/file_directory ...}}`
|
||||
`qrcp send {{path/to/file_or_directory1 path/to/file_directory2 ...}}`
|
||||
|
||||
- Receive files:
|
||||
|
||||
|
||||
@@ -22,8 +22,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Open one or more images as a slideshow:
|
||||
|
||||
`sxiv -S {{seconds}} {{path/to/image1 path/to/image2}}`
|
||||
`sxiv -S {{seconds}} {{path/to/image1 path/to/image2 ...}}`
|
||||
|
||||
- Open one or more images in thumbnail mode:
|
||||
|
||||
`sxiv -t {{path/to/image1 path/to/image2}}`
|
||||
`sxiv -t {{path/to/image1 path/to/image2 ...}}`
|
||||
|
||||
@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Remove a user in other root directory:
|
||||
|
||||
`sudo userdel {{[-R|--root]}} {{path/to/other/root}} {{username}}`
|
||||
`sudo userdel {{[-R|--root]}} {{path/to/other_root}} {{username}}`
|
||||
|
||||
- Remove a user along with the home directory and mail spool:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user