mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-07 07:57:08 +00:00
Update cheatsheets
This commit is contained in:
14
tldr/linux/barotrauma
Normal file
14
tldr/linux/barotrauma
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# Barotrauma
|
||||
|
||||
> Start a headless Barotrauma server.
|
||||
> Note: The server is configured by editing the `serversettings.xml` file in the game directory.
|
||||
> More information: <https://barotraumagame.com/wiki/Hosting_a_Dedicated_Server>.
|
||||
|
||||
- Start the server:
|
||||
|
||||
`{{path/to/DedicatedServer}}`
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Lock the database:
|
||||
|
||||
`paclock`
|
||||
`sudo paclock`
|
||||
|
||||
- Write the lock file path to `stdout` (without locking the database):
|
||||
|
||||
@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Unlock the database:
|
||||
|
||||
`paclock --unlock`
|
||||
`sudo paclock --unlock`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
29
tldr/linux/pacsync
Normal file
29
tldr/linux/pacsync
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pacsync
|
||||
|
||||
> Update sync databases.
|
||||
> More information: <https://github.com/andrewgregory/pacutils/blob/master/doc/pacsync.pod>.
|
||||
|
||||
- Update all sync databases:
|
||||
|
||||
`sudo pacsync`
|
||||
|
||||
- Update specific sync databases:
|
||||
|
||||
`sudo pacsync {{repository1 repository2 ...}}`
|
||||
|
||||
- Update sync databases even if they are already up-to-date:
|
||||
|
||||
`sudo pacsync --force`
|
||||
|
||||
- Update sync databases using a specific configuration file:
|
||||
|
||||
`sudo pacsync --config {{path/to/pacman.conf}}`
|
||||
|
||||
- Update sync databases and return true only if a database was actually updated:
|
||||
|
||||
`sudo pacsync --updated`
|
||||
34
tldr/linux/pactrans
Normal file
34
tldr/linux/pactrans
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pactrans
|
||||
|
||||
> Install, remove, and upgrade ALPM packages.
|
||||
> See also: `pacinstall`, `pacremove`.
|
||||
> More information: <https://github.com/andrewgregory/pacutils/blob/master/doc/pactrans.pod>.
|
||||
|
||||
- Install a package from a repository:
|
||||
|
||||
`sudo pactrans --install {{package_name}}`
|
||||
|
||||
- Remove a package:
|
||||
|
||||
`sudo pactrans --remove {{package_name}}`
|
||||
|
||||
- Upgrade all installed packages:
|
||||
|
||||
`sudo pactrans --sysupgrade`
|
||||
|
||||
- Install a package file:
|
||||
|
||||
`sudo pactrans --file {{path/to/package.pkg.tar.zst}}`
|
||||
|
||||
- Replace a locally installed package with a package from a repository:
|
||||
|
||||
`sudo pactrans local/{{package_to_remove}} {{repository_name}}/{{package_to_install}}`
|
||||
|
||||
- Print what the transaction would do without performing it:
|
||||
|
||||
`pactrans --print-only --install {{package_name}}`
|
||||
17
tldr/linux/pct-move-volume
Normal file
17
tldr/linux/pct-move-volume
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pct move-volume
|
||||
|
||||
> Move a volume to a different storage or to a different container.
|
||||
> More information: <https://pve.proxmox.com/pve-docs/pct.1.html#cli_pct_move-volume>.
|
||||
|
||||
- Move the root filesystem of a container to a different storage:
|
||||
|
||||
`pct {{[mov|move-volume]}} {{100}} rootfs {{storage_id}}`
|
||||
|
||||
- Delete the filesystem association to the old volume once the move is complete:
|
||||
|
||||
`pct {{[mov|move-volume]}} {{100}} rootfs {{storage_id}} --delete`
|
||||
12
tldr/linux/pct-move_volume
Normal file
12
tldr/linux/pct-move_volume
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pct move_volume
|
||||
|
||||
> This command is an alias of `pct move-volume`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr pct move-volume`
|
||||
@@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo tune2fs -c 2 {{/dev/sdXN}}`
|
||||
|
||||
- Set the filesystem label to MY_LABEL:
|
||||
- Set the filesystem label to `MY_LABEL`:
|
||||
|
||||
`sudo tune2fs -L 'MY_LABEL' {{/dev/sdXN}}`
|
||||
|
||||
|
||||
12
tldr/linux/update-grub
Normal file
12
tldr/linux/update-grub
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# update-grub
|
||||
|
||||
> This command is an alias of `grub-mkconfig --output /boot/grub/grub.cfg`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr grub-mkconfig`
|
||||
Reference in New Issue
Block a user