Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-26 00:13:26 +00:00
parent d1f45d718c
commit e815ba73c5
38 changed files with 142 additions and 45 deletions

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# ausyscall
> Program that allows mapping syscall names and numbers.
> Map syscall names and numbers.
> More information: <https://manned.org/ausyscall>.
- Display syscall number of a specific system call:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# betterdiscordctl
> A program for managing BetterDiscord on Linux.
> Manage BetterDiscord on Linux.
> More information: <https://github.com/bb010g/betterdiscordctl#manual>.
- Install BetterDiscord on Discord Stable:

View File

@@ -5,12 +5,13 @@ source: https://github.com/tldr-pages/tldr.git
---
# bspc
> A tool to control `bspwm`.
> Configure and control `bspwm`, managing nodes, desktops, monitors, and more.
> See also: `bspwm`.
> More information: <https://github.com/baskerville/bspwm>.
- Define two virtual desktop:
- Define two virtual desktops:
`bspc monitor --reset-desktops {{1}} {{2}}`
`bspc monitor --reset-desktops {{desktop_name1}} {{desktop_name2}}`
- Focus the given desktop:
@@ -27,3 +28,7 @@ source: https://github.com/tldr-pages/tldr.git
- Toggle full screen mode for the selected node:
`bspc node --state ~fullscreen`
- Set the value of a specific setting:
`bspc config {{setting_name}} {{value}}`

View File

@@ -6,12 +6,9 @@ source: https://github.com/tldr-pages/tldr.git
# bspwm
> A tiling window manager based on binary space partitioning.
> See also: `bspc`, for controlling it.
> More information: <https://github.com/baskerville/bspwm>.
- Start `bspwm` (note that a pre-existing window manager must not be open when this command is run):
`bspwm -c {{path/to/config}}`
- View documentation for `bspc`:
`tldr bspc`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# btrbk
> A tool for creating snapshots and remote backups of btrfs subvolumes.
> Create snapshots and remote backups of btrfs subvolumes.
> More information: <https://digint.ch/btrbk/doc/readme.html>.
- Print statistics about configured subvolumes and snapshots:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# cfdisk
> A program for managing partition tables and partitions on a hard disk using a curses UI.
> Manage partition tables and partitions on a hard disk using a curses UI.
> More information: <https://manned.org/cfdisk>.
- Start the partition manipulator with a specific device:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# cpufreq-info
> A tool to show CPU frequency information.
> Show CPU frequency information.
> More information: <https://manned.org/cpufreq-info>.
- Show CPU frequency information for all CPUs:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# dpkg-query
> A tool that shows information about installed packages.
> Display information about installed packages.
> More information: <https://manpages.debian.org/latest/dpkg/dpkg-query.1.html>.
- List all installed packages:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# fdisk
> A program for managing partition tables and partitions on a hard disk.
> Manage partition tables and partitions on a hard disk.
> See also: `partprobe`.
> More information: <https://manned.org/fdisk>.

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# fwupdmgr
> A tool for updating device firmware, including UEFI, using `fwupd`.
> Update device firmware, including UEFI, using `fwupd`.
> More information: <https://fwupd.org/>.
- Display all devices detected by fwupd:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# gdebi
> Simple tool to install `.deb` files.
> Easily install `.deb` files.
> More information: <https://www.commandlinux.com/man-page/man1/gdebi.1.html>.
- Install local `.deb` packages resolving and installing its dependencies:

21
tldr/linux/grubby Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# grubby
> Tool for configuring `grub` and `zipl` bootloaders.
> More information: <https://manned.org/man/grubby.8>.
- Add kernel boot arguments to all kernel menu entries:
`sudo grubby --update-kernel=ALL --args '{{quiet console=ttyS0}}'`
- Remove existing arguments from the entry for the default kernel:
`sudo grubby --update-kernel=DEFAULT --remove-args {{quiet}}`
- List all kernel menu entries:
`sudo grubby --info=ALL`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# ipset
> A tool to create IP sets for firewall rules.
> Create IP sets for firewall rules.
> More information: <https://manned.org/ipset>.
- Create an empty IP set which will contain IP addresses:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# minicom
> A program to communicate with the serial interface of a device.
> Communicate with the serial interface of a device.
> More information: <https://manned.org/minicom>.
- Open a given serial port:

29
tldr/linux/navi Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# navi
> An interactive cheatsheet tool for the command line and application launchers.
> More information: <https://github.com/denisidoro/navi>.
- Browse through all available cheatsheets:
`navi`
- Browse the cheatsheet for `navi` itself:
`navi fn welcome`
- Print a command from the cheatsheet without executing it:
`navi --print`
- Output shell widget source code (It automatically detects your shell if possible, but can also be specified manually):
`navi widget {{shell}}`
- Autoselect and execute the snippet that best matches a query:
`navi --query '{{query}}' --best-match`

View File

@@ -12,9 +12,13 @@ source: https://github.com/tldr-pages/tldr.git
`select {{word}} in {{apple}} {{orange}} {{pear}} {{banana}}; do echo ${{word}}; done`
- Create a menu for picking a file or folder from the current directory:
- Create a menu from the output of another command:
`select {{file}} in *; do echo ${{file}}; done`
`select {{line}} in $({{command}}); do echo ${{line}}; done`
- Specify the prompt string for `select` and create a menu for picking a file or folder from the current directory:
`PS3="{{Select a file: }}"; select {{file}} in *; do echo ${{file}}; done`
- Create a menu from a Bash array:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# update-alternatives
> A convenient tool for maintaining symbolic links to determine default commands.
> Convenientily maintain symbolic links to determine default commands.
> More information: <https://manned.org/update-alternatives>.
- Add a symbolic link: