Update cheatsheets

This commit is contained in:
ivuorinen
2025-12-02 00:21:15 +00:00
parent fde4de0db5
commit 922b1aa234
102 changed files with 288 additions and 216 deletions

View File

@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
`agetty {{[-t|--timeout]}} {{timeout_in_seconds}} -`
- Assume the `tty` is 8-bit, overriding the `TERM` environment variable set by `init`:
- Assume the `tty` is 8-bit, overriding the `$TERM` environment variable set by `init`:
`agetty {{[-8|--8bits]}} - {{term_var}}`

View File

@@ -5,17 +5,17 @@ source: https://github.com/tldr-pages/tldr.git
---
# eselect locale
> An `eselect` module for managing the `LANG` environment variable, which sets the system language.
> 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:
- 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`:
- Display the value of `$LANG` in `/etc/profile.env`:
`eselect locale show`

View File

@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
`export -f {{FUNCTION_NAME}}`
- Append a pathname to the environment variable `PATH`:
- Append a pathname to the environment variable `$PATH`:
`export PATH=$PATH:{{path/to/append}}`

View File

@@ -36,6 +36,6 @@ source: https://github.com/tldr-pages/tldr.git
`gnome-screenshot {{[-d|--delay]}} {{10}} {{[-c|--clipboard]}}`
- Display the version:
- Display version:
`gnome-screenshot --version`

View File

@@ -20,6 +20,6 @@ source: https://github.com/tldr-pages/tldr.git
`gnome-software --details {{package}}`
- Display the version:
- Display version:
`gnome-software --version`

View File

@@ -20,10 +20,10 @@ source: https://github.com/tldr-pages/tldr.git
`sudo rkhunter --list`
- Display version:
`sudo rkhunter --versioncheck`
- Display help:
`sudo rkhunter --help`
- Display version:
`sudo rkhunter --versioncheck`

View File

@@ -0,0 +1,22 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl import-environment
> Import environment variables from the shell into systemd's environment.
> See also: `show-environment`, `unset-environment`.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#%0A%20%20%20%20%20%20%20%20%20%20%20%20import-environment%0A%20%20%20%20%20%20%20%20%20%20%20%20VARIABLE%E2%80%A6%0A%20%20%20%20%20%20%20%20%20%20>.
- Import a variable:
`systemctl import-environment {{variable}}`
- Import multiple variables:
`systemctl import-environment {{variable_1 variable_2 ...}}`
- Import variables for user services:
`systemctl import-environment {{variable}} --user`

View File

@@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git
`torsocks --shell`
- Check if current shell is Tor enabled (`LD_PRELOAD` value will be empty if disabled):
- Check if current shell is Tor enabled (`$LD_PRELOAD` value will be empty if disabled):
`torsocks show`