From 4c553ecd81745939935ef8608fb8ca966a3783d3 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Mon, 12 Jan 2026 00:23:19 +0000 Subject: [PATCH] Update cheatsheets --- tldr/bindkey | 4 ++++ tldr/bun-run | 2 +- tldr/frp | 3 ++- tldr/linux/dnf | 15 +++++++-------- tldr/linux/dnf4 | 42 ++++++++++++++++++++++++++++++++++++++++++ tldr/linux/dnf5 | 37 +++---------------------------------- tldr/linux/gpm | 33 +++++++++++++++++++++++++++++++++ 7 files changed, 92 insertions(+), 44 deletions(-) create mode 100644 tldr/linux/dnf4 create mode 100644 tldr/linux/gpm diff --git a/tldr/bindkey b/tldr/bindkey index e640e06e..f466e943 100644 --- a/tldr/bindkey +++ b/tldr/bindkey @@ -32,3 +32,7 @@ source: https://github.com/tldr-pages/tldr.git - Enable [e]macs mode (default mode): `bindkey -e` + +- Check which mode is active (vi or emacs): + +`bindkey -lL main | grep -Eo 'viins|emacs'` diff --git a/tldr/bun-run b/tldr/bun-run index 8c8572fe..321afaf6 100644 --- a/tldr/bun-run +++ b/tldr/bun-run @@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git - 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}}` diff --git a/tldr/frp b/tldr/frp index fe969556..97d8c836 100644 --- a/tldr/frp +++ b/tldr/frp @@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git # frp > Fast Reverse Proxy: quickly set up network tunnels to expose certain services to the Internet or other external networks. -> More information: . +> Note: `frp` isn't a command, but a set of commands. +> More information: . - View documentation for `frpc`, the `frp` client component: diff --git a/tldr/linux/dnf b/tldr/linux/dnf index ef3010dd..a7767f06 100644 --- a/tldr/linux/dnf +++ b/tldr/linux/dnf @@ -5,10 +5,9 @@ source: https://github.com/tldr-pages/tldr.git --- # dnf -> Package management utility for RHEL, Fedora, and CentOS (replaces yum). -> Some subcommands such as `group` and `config-manager` have their own usage documentation. +> Package manager for Fedora 41+ and RHEL 10. > For equivalent commands in other package managers, see . -> More information: . +> More information: . - Upgrade installed packages to the newest available versions: @@ -22,11 +21,11 @@ source: https://github.com/tldr-pages/tldr.git `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 ...}}` -- Remove a package: +- Remove packages: `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: -`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}}` diff --git a/tldr/linux/dnf4 b/tldr/linux/dnf4 new file mode 100644 index 00000000..4fd6b63e --- /dev/null +++ b/tldr/linux/dnf4 @@ -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 . +> More information: . + +- 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]}}` diff --git a/tldr/linux/dnf5 b/tldr/linux/dnf5 index b59443b1..22ce89c7 100644 --- a/tldr/linux/dnf5 +++ b/tldr/linux/dnf5 @@ -5,39 +5,8 @@ source: https://github.com/tldr-pages/tldr.git --- # dnf5 -> Package management utility for RHEL, Fedora, and CentOS (it replaces dnf, which in turn replaced yum). -> 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 . -> More information: . +> This command is an alias of `dnf`. -- Upgrade installed packages to the newest available versions: +- View documentation for the original command: -`sudo dnf5 upgrade` - -- 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` +`tldr dnf` diff --git a/tldr/linux/gpm b/tldr/linux/gpm new file mode 100644 index 00000000..2b889110 --- /dev/null +++ b/tldr/linux/gpm @@ -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: . + +- 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`