mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-08 21:46:13 +00:00
Update cheatsheets
This commit is contained in:
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Display the name of the system architecture.
|
||||
> See also `uname`.
|
||||
> More information: <https://www.gnu.org/software/coreutils/arch>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/arch-invocation.html>.
|
||||
|
||||
- Display the system's architecture:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# chown
|
||||
|
||||
> Change user and group ownership of files and directories.
|
||||
> More information: <https://www.gnu.org/software/coreutils/chown>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/chown-invocation.html>.
|
||||
|
||||
- Change the owner user of a file/directory:
|
||||
|
||||
|
||||
25
tldr/linux/eclean
Normal file
25
tldr/linux/eclean
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# eclean
|
||||
|
||||
> Clean repository source files and binary packages.
|
||||
> More information: <https://wiki.gentoo.org/wiki/Eclean>.
|
||||
|
||||
- Clean the source file directory:
|
||||
|
||||
`sudo eclean distfiles`
|
||||
|
||||
- Clean the binary package directory:
|
||||
|
||||
`sudo eclean packages`
|
||||
|
||||
- Clean the distfiles of all uninstalled packages, but keep the distfiles of installed packages:
|
||||
|
||||
`sudo eclean --deep --package-names distfiles`
|
||||
|
||||
- Clean the binary packages of all uninstalled packages, but keep the binaries of installed packages:
|
||||
|
||||
`sudo eclean --deep --package-names packages`
|
||||
29
tldr/linux/euse
Normal file
29
tldr/linux/euse
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# euse
|
||||
|
||||
> Enable, disable, and obtain information about Gentoo USE flags.
|
||||
> More information: <https://wiki.gentoo.org/wiki/Euse>.
|
||||
|
||||
- List active global USE flags:
|
||||
|
||||
`euse --active --global`
|
||||
|
||||
- List active local USE flags:
|
||||
|
||||
`euse --active --local`
|
||||
|
||||
- Enable a global USE flag:
|
||||
|
||||
`sudo euse --enable {{use_flag}}`
|
||||
|
||||
- Disable a global USE flag (put a '-' sign in front of the USE flag):
|
||||
|
||||
`sudo euse --disable {{use_flag}}`
|
||||
|
||||
- Remove a global USE flag:
|
||||
|
||||
`sudo euse --prune {{use_flag}}`
|
||||
@@ -28,6 +28,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`protontricks -s {{game_name}}`
|
||||
|
||||
- Run an executable in the proton environment of a specific game:
|
||||
|
||||
`protontricks-launch --appid {{appid}} {{path/to/executable.exe}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`protontricks --help`
|
||||
|
||||
27
tldr/linux/systemd-cryptsetup
Normal file
27
tldr/linux/systemd-cryptsetup
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemd-cryptsetup
|
||||
|
||||
> Create or remove decrypted mappings of encrypted volumes. Equivalent of `cryptsetup open` and `cryptsetup close`.
|
||||
> Arguments to this command are written exactly like a line in `/etc/crypttab`. It's used by systemd to unlock devices on boot.
|
||||
> See also: `cryptsetup`.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemd-cryptsetup.html>.
|
||||
|
||||
- Open a LUKS volume and create a decrypted mapping at `/dev/mapper/mapping_name`:
|
||||
|
||||
`systemd-cryptsetup attach {{mapping_name}} {{/dev/sdXY}}`
|
||||
|
||||
- Open a LUKS volume with additional options and create a decrypted mapping at `/dev/mapper/mapping_name`:
|
||||
|
||||
`systemd-cryptsetup attach {{mapping_name}} {{/dev/sdXY}} none {{crypttab_options}}`
|
||||
|
||||
- Open a LUKS volume with a keyfile and create a decrypted mapping at `/dev/mapper/mapping_name`:
|
||||
|
||||
`systemd-cryptsetup attach {{mapping_name}} {{/dev/sdXY}} {{path/to/keyfile}} {{crypttab_options}}`
|
||||
|
||||
- Remove an existing mapping:
|
||||
|
||||
`systemd-cryptsetup detach {{mapping_name}}`
|
||||
@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Specify a custom page segmentation mode (default is 3):
|
||||
|
||||
`tesseract -psm {{0_to_10}} {{image.png}} {{output}}`
|
||||
`tesseract --psm {{0_to_10}} {{image.png}} {{output}}`
|
||||
|
||||
- List page segmentation modes and their descriptions:
|
||||
|
||||
|
||||
@@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Execute a command forever once every second:
|
||||
|
||||
`while :; do {{command}}; sleep 1; done`
|
||||
|
||||
- Execute a command until it returns a non-zero value:
|
||||
|
||||
`while {{command}}; do :; done`
|
||||
|
||||
33
tldr/zpaq
Normal file
33
tldr/zpaq
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# zpaq
|
||||
|
||||
> Incremental journaling backup utility and archiver.
|
||||
> More information: <https://mattmahoney.net/dc/zpaq.html>.
|
||||
|
||||
- [a]dd a file or directory to a new or existing archive:
|
||||
|
||||
`zpaq a {{path/to/archive.zpaq}} {{path/to/file_or_directory}}`
|
||||
|
||||
- Create or add to an encrypted archive:
|
||||
|
||||
`zpaq a -k{{password}} {{path/to/archive.zpaq}} {{path/to/file_or_directory}}`
|
||||
|
||||
- E[x]tract the most recent versions of files:
|
||||
|
||||
`zpaq x {{path/to/archive.zpaq}}`
|
||||
|
||||
- [l]ist the archive contents:
|
||||
|
||||
`zpaq l {{path/to/archive.zpaq}}`
|
||||
|
||||
- Set the level of compression (higher means more compression but slower):
|
||||
|
||||
`zpaq a {{path/to/archive.zpaq}} -m{{1|2|3|4|5}} {{path/to/file_or_directory}}`
|
||||
|
||||
- E[x]tract the specified files from the archive that are not newer than the specified date:
|
||||
|
||||
`zpaq x {{path/to/archive.zpaq}} {{path/in/archive/to/extract}} -to {{path/to/output}} -until {{YYYY-MM-DD}}`
|
||||
Reference in New Issue
Block a user