mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-27 15:53:28 +00:00
Update cheatsheets
This commit is contained in:
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}}`
|
||||
Reference in New Issue
Block a user