Update cheatsheets

This commit is contained in:
ivuorinen
2025-09-03 00:18:24 +00:00
parent e88941b007
commit 46b75bdb29
9 changed files with 157 additions and 31 deletions

30
tldr/linux/aur-sync Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# aur sync
> Download and build AUR packages automatically.
> Note: A local repository needs to be defined in `/etc/pacman.conf` and `vifm` needs to be installed for this to fully function.
> More information: <https://github.com/aurutils/aurutils>.
- Download one or more packages and their dependencies from the AUR, build them, and add them to a local repository:
`aur sync {{package1 package2 ...}}`
- Upgrade local repository packages:
`aur sync {{[-u|--upgrades]}}`
- Clean build files after install:
`aur sync {{[-C|--clean]}} {{package}}`
- Install a package without viewing changes in Vim and do not confirm dependency installation:
`aur sync --noview {{[-n|--noconfirm]}} {{package}}`
- Ignore specific packages when upgrading:
`aur sync {{[-u|--upgrades]}} --ignore {{package1,package2,...}}`

21
tldr/linux/systemctl-cat Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl cat
> Show the full contents of unit files as systemd sees them.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#cat%20PATTERN%E2%80%A6>.
- Show the contents and absolute path of a unit file:
`systemctl cat {{unit}}`
- Show the contents of multiple unit files:
`systemctl cat {{unit1 unit2 ...}}`
- Show the contents of a unit file for a template:
`systemctl cat {{template@}}`

View File

@@ -8,15 +8,19 @@ source: https://github.com/tldr-pages/tldr.git
> System update utility.
> More information: <https://www.freedesktop.org/software/systemd/man/updatectl.html>.
- Apply an update:
- Check to see if the system has any available updates:
`updatectl update {{target}}`
`updatectl check`
- Apply update and then reboot system:
- Update to the latest version:
`updatectl --reboot update {{target}}`
`updatectl update`
- Show data about the target and its versions:
- Show update targets:
`updatectl list`
- Show data about a target and its versions:
`updatectl list {{target}}`
@@ -24,13 +28,9 @@ source: https://github.com/tldr-pages/tldr.git
`updatectl --offline list {{target}}`
- Suppress data headers for returned information:
- Apply an update to a target and then reboot the system:
`updatectl --no-legend list {{target}}`
- Check to see if a target has any available updates:
`updatectl check {{target}}`
`updatectl --reboot update {{target}}`
- Clean up old versions of a specified target: