mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-23 15:51:45 +00:00
Update cheatsheets
This commit is contained in:
@@ -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}}`
|
||||
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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}}`
|
||||
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -20,6 +20,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`gnome-software --details {{package}}`
|
||||
|
||||
- Display the version:
|
||||
- Display version:
|
||||
|
||||
`gnome-software --version`
|
||||
|
||||
@@ -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`
|
||||
|
||||
22
tldr/linux/systemctl-import-environment
Normal file
22
tldr/linux/systemctl-import-environment
Normal 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`
|
||||
@@ -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`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user