mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-22 00:51:10 +00:00
Update cheatsheets
This commit is contained in:
25
tldr/linux/counter-strike-2
Normal file
25
tldr/linux/counter-strike-2
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# counter strike 2
|
||||
|
||||
> Host a headless Counter Strike 2 server.
|
||||
> More information: <https://developer.valvesoftware.com/wiki/Counter-Strike_2/Dedicated_Servers>.
|
||||
|
||||
- Run a game with one map:
|
||||
|
||||
`{{path/to/cs2}} -dedicated +map {{de_dust2}}`
|
||||
|
||||
- Run a game with specified maximum number of players:
|
||||
|
||||
`{{path/to/cs2}} -dedicated +map {{de_dust2}} -maxplayers {{64}}`
|
||||
|
||||
- Run a game with specified server IP and port:
|
||||
|
||||
`{{path/to/cs2}} -dedicated +map {{de_dust2}} -ip {{1.2.3.4}} -port {{27015}}`
|
||||
|
||||
- Shut the server down:
|
||||
|
||||
`quit`
|
||||
12
tldr/linux/cs2
Normal file
12
tldr/linux/cs2
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# cs2
|
||||
|
||||
> This command is an alias of `counter strike 2`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr counter strike 2`
|
||||
29
tldr/linux/dnf-install
Normal file
29
tldr/linux/dnf-install
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# dnf install
|
||||
|
||||
> Install packages on Red Hat-based distributions.
|
||||
> More information: <https://dnf.readthedocs.io/en/latest/command_ref.html#install-examples>.
|
||||
|
||||
- Install packages by name:
|
||||
|
||||
`sudo dnf {{[in|install]}} {{package1 package2 ...}}`
|
||||
|
||||
- Install a package from a local file:
|
||||
|
||||
`sudo dnf {{[in|install]}} {{path/to/file}}`
|
||||
|
||||
- Install a package from the internet:
|
||||
|
||||
`sudo dnf {{[in|install]}} {{https://example.com/package.rpm}}`
|
||||
|
||||
- Add the Extra Packages for Enterprise Linux (EPEL) repositories:
|
||||
|
||||
`sudo dnf {{[in|install]}} https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm`
|
||||
|
||||
- Add Remi's RPM repository:
|
||||
|
||||
`sudo dnf {{[in|install]}} https://rpms.remirepo.net/enterprise/remi-release-8.rpm`
|
||||
@@ -29,6 +29,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`expac {{[-d|--delim]}} '
|
||||
|
||||
' {{[-l|listdelim]}} '
|
||||
' {{[-l|--listdelim]}} '
|
||||
' {{[-Q|--query]}} '%n
|
||||
%O' $(pacman -Qeq)`
|
||||
|
||||
@@ -15,3 +15,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Start a Factorio server:
|
||||
|
||||
`{{path/to/factorio}} --start-server {{path/to/save_file.zip}}`
|
||||
|
||||
- Create a new save file with specific settings:
|
||||
|
||||
`{{path/to/factorio}} --create {{path/to/save.zip}} --map-gen-settings {{path/to/map-gen-settings.json}} --map-settings {{path/to/map-settings.json}}`
|
||||
|
||||
- Shut the server gracefully:
|
||||
|
||||
`/quit`
|
||||
|
||||
- Display help:
|
||||
|
||||
`{{path/to/factorio}} {{[-h|--help]}}`
|
||||
|
||||
Reference in New Issue
Block a user