Update cheatsheets

This commit is contained in:
ivuorinen
2026-03-04 00:26:41 +00:00
parent 96131996f2
commit bbaedbaa72
9 changed files with 156 additions and 9 deletions

View File

@@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
- Lookup CIDR ranges from a file of targets:
`asnmap {{[-f|-file]}} {{targets.txt}} -silent`
`asnmap {{[-f|-file]}} {{path/to/targets.txt}} -silent`
- Output results in JSON format:

39
tldr/cmus Normal file
View File

@@ -0,0 +1,39 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# cmus
> Command-line music player.
> Use `<ArrowKeys>` to navigate, `<Enter>` to select, and numbers `<1>`-`<8>` switch between different views.
> See also: `ncmpcpp`, `clementine`, `qmmp`.
> More information: <https://manned.org/cmus>.
- Open `cmus` into the specified directory (this will become your new working directory):
`cmus {{path/to/directory}}`
- Add file/directory to library:
`<:>add {{path/to/file_or_directory}}`
- Refresh the metadata of songs in the library:
`<:>update-cache`
- Search for songs, albums, or artists:
`</>{{something}}`
- Pause/unpause current song:
`<c>`
- Toggle shuffle mode on/off:
`<s>`
- Quit `cmus`:
`<q>`

30
tldr/cmus-remote Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# cmus-remote
> Control `cmus`.
> See also: `playerctl`.
> More information: <https://manned.org/cmus-remote>.
- [Q]uery player status information:
`cmus-remote -Q`
- Toggle playback:
`cmus-remote {{[-u|--pause]}}`
- Skip to the next song:
`cmus-remote {{[-n|--next]}}`
- Skip back to the previous song:
`cmus-remote {{[-r|--prev]}}`
- Execute a `cmus` command:
`cmus-remote {{[-C|--raw]}} "{{set repeat?}}"`

17
tldr/cmusfm Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# cmusfm
> Scrobble tracks from the `cmus` music player to Last.fm.
> More information: <https://github.com/Arkq/cmusfm#configuration>.
- Initialize `cmusfm` and authorize access to your account:
`cmusfm init`
- Display help:
`cmusfm`

View File

@@ -17,21 +17,21 @@ source: https://github.com/tldr-pages/tldr.git
`sudo loadkeys {{[-d|--default]}}`
- Create a kernel source table:
- Print the kernel source table of a keymap to `stdout`:
`loadkeys {{[-m|--mktable]}}`
`loadkeys {{[-m|--mktable]}} {{en|de|fi|...}}`
- Create a binary keymap:
- Print the binary format of a keymap to `stdout`:
`loadkeys {{[-b|--bkeymap]}}`
`loadkeys {{[-b|--bkeymap]}} {{en|de|fi|...}}`
- Search and parse keymap without action:
`loadkeys {{[-p|--parse]}}`
`loadkeys {{[-p|--parse]}} {{en|de|fi|...}}`
- Load the keymap suppressing all output:
- Load a keymap from `stdin`, suppressing all output:
`loadkeys {{[-q|--quiet]}}`
`{{command}} | sudo loadkeys {{[-q|--quiet]}}`
- Set a keymap for a specific console:
@@ -39,4 +39,4 @@ source: https://github.com/tldr-pages/tldr.git
- Load a keymap from the specified file for the console:
`loadkeys {{[-C|--console]}} {{/dev/ttyN}} /{{path/to/file}}`
`sudo loadkeys {{[-C|--console]}} {{/dev/ttyN}} /{{path/to/file}}`

41
tldr/linux/lure Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# lure
> A distro-agnostic build system and user repository for Linux.
> More information: <https://github.com/lure-sh/lure/blob/master/docs/usage.md>.
- Install a package:
`lure {{[in|install]}} {{package}}`
- Remove a package:
`lure {{[rm|remove]}} {{package}}`
- Update packages:
`lure {{[up|upgrade]}}`
- List all available packages:
`lure {{[ls|list]}}`
- Pull all repositories that have changed:
`lure {{[ref|refresh]}}`
- Add a new repository:
`lure {{[ar|addrepo]}} {{[-n|--name]}} {{repository_name}} --url {{repository_url}}`
- Remove an existing repository:
`lure {{[rr|removerepo]}} {{[-n|--name]}} {{repository_name}}`
- Build a package:
`lure build -s {{path/to/script}}`

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# mount
> Get access to an entire filesystem in one directory.
> See also: `udisksctl`.
> More information: <https://manned.org/mount.8>.
- Show all mounted filesystems:

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# udisksctl
> Interact with `udisksd` to query and manipulate storage devices.
> See also: `mount`.
> More information: <https://storaged.org/doc/udisks2-api/latest/udisksctl.1.html>.
- Show high-level information about disk drives and block devices:

18
tldr/osx/tccutil Normal file
View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, osx]
source: https://github.com/tldr-pages/tldr.git
---
# tccutil
> Reset decisions stored in the privacy database.
> Forces apps to prompt again the next time they access the service.
> More information: <https://ss64.com/mac/tccutil.html>.
- Reset a specific service:
`sudo tccutil reset {{service}}`
- Reset all services:
`sudo tccutil reset All`