mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-22 10:02:35 +00:00
Update cheatsheets
This commit is contained in:
@@ -32,3 +32,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
- Enable [e]macs mode (default mode):
|
- Enable [e]macs mode (default mode):
|
||||||
|
|
||||||
`bindkey -e`
|
`bindkey -e`
|
||||||
|
|
||||||
|
- Check which mode is active (vi or emacs):
|
||||||
|
|
||||||
|
`bindkey -lL main | grep -Eo 'viins|emacs'`
|
||||||
|
|||||||
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- Run a file using a specific configuration file:
|
- Run a file using a specific configuration file:
|
||||||
|
|
||||||
`bun run --config {{path/to/bunfig.toml}} {{path/to/file.ts}}`
|
`bun run {{[-c|--config]}} {{path/to/bunfig.toml}} {{path/to/file.ts}}`
|
||||||
|
|||||||
3
tldr/frp
3
tldr/frp
@@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
# frp
|
# frp
|
||||||
|
|
||||||
> Fast Reverse Proxy: quickly set up network tunnels to expose certain services to the Internet or other external networks.
|
> Fast Reverse Proxy: quickly set up network tunnels to expose certain services to the Internet or other external networks.
|
||||||
> More information: <https://github.com/fatedier/frp>.
|
> Note: `frp` isn't a command, but a set of commands.
|
||||||
|
> More information: <https://github.com/fatedier/frp#example-usage>.
|
||||||
|
|
||||||
- View documentation for `frpc`, the `frp` client component:
|
- View documentation for `frpc`, the `frp` client component:
|
||||||
|
|
||||||
|
|||||||
@@ -5,10 +5,9 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
---
|
---
|
||||||
# dnf
|
# dnf
|
||||||
|
|
||||||
> Package management utility for RHEL, Fedora, and CentOS (replaces yum).
|
> Package manager for Fedora 41+ and RHEL 10.
|
||||||
> Some subcommands such as `group` and `config-manager` have their own usage documentation.
|
|
||||||
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
|
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
|
||||||
> More information: <https://dnf.readthedocs.io/en/latest/command_ref.html>.
|
> More information: <https://dnf5.readthedocs.io/en/latest/commands/index.html>.
|
||||||
|
|
||||||
- Upgrade installed packages to the newest available versions:
|
- Upgrade installed packages to the newest available versions:
|
||||||
|
|
||||||
@@ -22,11 +21,11 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
`dnf {{[if|info]}} {{package}}`
|
`dnf {{[if|info]}} {{package}}`
|
||||||
|
|
||||||
- Install a new package (use `--assumeyes` to confirm all prompts automatically):
|
- Install new packages (use `--assumeyes` to confirm all prompts automatically):
|
||||||
|
|
||||||
`sudo dnf {{[in|install]}} {{package1 package2 ...}}`
|
`sudo dnf {{[in|install]}} {{package1 package2 ...}}`
|
||||||
|
|
||||||
- Remove a package:
|
- Remove packages:
|
||||||
|
|
||||||
`sudo dnf {{[rm|remove]}} {{package1 package2 ...}}`
|
`sudo dnf {{[rm|remove]}} {{package1 package2 ...}}`
|
||||||
|
|
||||||
@@ -36,8 +35,8 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- Find which packages provide a given command:
|
- Find which packages provide a given command:
|
||||||
|
|
||||||
`dnf {{[wp|provides]}} {{command}}`
|
`dnf provides {{command}}`
|
||||||
|
|
||||||
- View all past operations:
|
- Clean cached data:
|
||||||
|
|
||||||
`dnf {{[hist|history]}}`
|
`sudo dnf clean {{all|dbcache|expire-cache|metadata|packages}}`
|
||||||
|
|||||||
42
tldr/linux/dnf4
Normal file
42
tldr/linux/dnf4
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, linux]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# dnf4
|
||||||
|
|
||||||
|
> Package manager for RHEL 8/9 and older Fedora versions (pre-41).
|
||||||
|
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
|
||||||
|
> More information: <https://dnf.readthedocs.io/en/latest/command_ref.html>.
|
||||||
|
|
||||||
|
- Upgrade installed packages to the newest available versions:
|
||||||
|
|
||||||
|
`sudo dnf4 {{[up|upgrade]}}`
|
||||||
|
|
||||||
|
- Search packages via keywords:
|
||||||
|
|
||||||
|
`dnf4 {{[se|search]}} {{keyword1 keyword2 ...}}`
|
||||||
|
|
||||||
|
- Display details about a package:
|
||||||
|
|
||||||
|
`dnf4 {{[if|info]}} {{package}}`
|
||||||
|
|
||||||
|
- Install a new package (use `--assumeyes` to confirm all prompts automatically):
|
||||||
|
|
||||||
|
`sudo dnf4 {{[in|install]}} {{package1 package2 ...}}`
|
||||||
|
|
||||||
|
- Remove a package:
|
||||||
|
|
||||||
|
`sudo dnf4 {{[rm|remove]}} {{package1 package2 ...}}`
|
||||||
|
|
||||||
|
- List installed packages:
|
||||||
|
|
||||||
|
`dnf4 {{[ls|list]}} --installed`
|
||||||
|
|
||||||
|
- Find which packages provide a given command:
|
||||||
|
|
||||||
|
`dnf4 {{[wp|provides]}} {{command}}`
|
||||||
|
|
||||||
|
- View all past operations:
|
||||||
|
|
||||||
|
`dnf4 {{[hist|history]}}`
|
||||||
@@ -5,39 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
---
|
---
|
||||||
# dnf5
|
# dnf5
|
||||||
|
|
||||||
> Package management utility for RHEL, Fedora, and CentOS (it replaces dnf, which in turn replaced yum).
|
> This command is an alias of `dnf`.
|
||||||
> DNF5 is a C++ rewrite of the DNF package manager featuring improved performance and a smaller size.
|
|
||||||
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
|
|
||||||
> More information: <https://dnf5.readthedocs.io/en/latest/commands/index.html>.
|
|
||||||
|
|
||||||
- Upgrade installed packages to the newest available versions:
|
- View documentation for the original command:
|
||||||
|
|
||||||
`sudo dnf5 upgrade`
|
`tldr dnf`
|
||||||
|
|
||||||
- Search packages via keywords:
|
|
||||||
|
|
||||||
`dnf5 search {{keyword1 keyword2 ...}}`
|
|
||||||
|
|
||||||
- Display details about a package:
|
|
||||||
|
|
||||||
`dnf5 info {{package}}`
|
|
||||||
|
|
||||||
- Install new packages (Note: Use `-y` to confirm all prompts automatically):
|
|
||||||
|
|
||||||
`sudo dnf5 install {{package1 package2 ...}}`
|
|
||||||
|
|
||||||
- Remove packages:
|
|
||||||
|
|
||||||
`sudo dnf5 remove {{package1 package2 ...}}`
|
|
||||||
|
|
||||||
- List installed packages:
|
|
||||||
|
|
||||||
`dnf5 list --installed`
|
|
||||||
|
|
||||||
- Find which packages provide a given command:
|
|
||||||
|
|
||||||
`dnf5 provides {{command}}`
|
|
||||||
|
|
||||||
- Remove or expire cached data:
|
|
||||||
|
|
||||||
`sudo dnf5 clean all`
|
|
||||||
|
|||||||
33
tldr/linux/gpm
Normal file
33
tldr/linux/gpm
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, linux]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# gpm
|
||||||
|
|
||||||
|
> Enable mouse support for the Linux virtual console.
|
||||||
|
> More information: <https://manned.org/gpm>.
|
||||||
|
|
||||||
|
- Start gpm with a PS/2 [m]ouse of [t]ype ps2:
|
||||||
|
|
||||||
|
`sudo gpm -m /dev/input/mice -t ps2`
|
||||||
|
|
||||||
|
- Start gpm with a Microsoft serial [m]ouse of [t]ype ms:
|
||||||
|
|
||||||
|
`sudo gpm -m /dev/ttyS0 -t ms`
|
||||||
|
|
||||||
|
- Start gpm with a [m]ouse and [t]ype in the foreground for [D]ebugging:
|
||||||
|
|
||||||
|
`sudo gpm -m {{path/to/mouse_device}} -t {{mouse_type}} -D`
|
||||||
|
|
||||||
|
- [k]ill the running gpm:
|
||||||
|
|
||||||
|
`sudo gpm -k`
|
||||||
|
|
||||||
|
- Start gpm with a [m]ouse and [t]ype in [R]epeater mode for X server compatibility:
|
||||||
|
|
||||||
|
`sudo gpm -m {{path/to/mouse_device}} -t {{mouse_type}} -R`
|
||||||
|
|
||||||
|
- List the available mouse [t]ypes:
|
||||||
|
|
||||||
|
`gpm -t help`
|
||||||
Reference in New Issue
Block a user