Update cheatsheets

This commit is contained in:
ivuorinen
2024-07-07 00:16:15 +00:00
parent e1b30c459c
commit a778647a2d
8 changed files with 191 additions and 1 deletions

22
tldr/linux/eselect Normal file
View File

@@ -0,0 +1,22 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# eselect
> Gentoo's multi-purpose configuration and management tool.
> It consists of various modules that take care of individual administrative tasks.
> More information: <https://wiki.gentoo.org/wiki/Eselect>.
- Display a list of installed modules:
`eselect`
- View documentation for a specific module:
`tldr eselect {{module}}`
- Display a help message for a specific module:
`eselect {{module}} help`

21
tldr/linux/eselect-locale Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# eselect locale
> An `eselect` module for managing the `LANG` environment variable, which sets the system language.
> More information: <https://wiki.gentoo.org/wiki/Eselect#Locale>.
- List available locales:
`eselect locale list`
- Set the `LANG` environment variable in `/etc/profile.env` by name or index from the `list` command:
`eselect locale set {{name|index}}`
- Display the value of `LANG` in `/etc/profile.env`:
`eselect locale show`

View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# eselect repository
> An `eselect` module for configuring ebuild repositories for Portage.
> After enabling a repository, you have to run `emerge --sync repo_name` to download ebuilds.
> More information: <https://wiki.gentoo.org/wiki/Eselect/Repository>.
- List all ebuild repositories registered on <https://repos.gentoo.org>:
`eselect repository list`
- List enabled repositories:
`eselect repository list -i`
- Enable a repository from the list by its name or index from the `list` command:
`eselect repository enable {{name|index}}`
- Enable an unregistered repository:
`eselect repository add {{name}} {{rsync|git|mercurial|svn|...}} {{sync_uri}}`
- Disable repositories without removing their contents:
`eselect repository disable {{repo1 repo2 ...}}`
- Disable repositories and remove their contents:
`eselect repository remove {{repo1 repo2 ...}}`
- Create a local repository and enable it:
`eselect repository create {{name}} {{path/to/repo}}`

View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl reboot
> Reboot the system.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#reboot>.
- Reboot the system:
`systemctl reboot`
- Reboot into the BIOS/UEFI menu:
`systemctl reboot --firmware-setup`