Update cheatsheets

This commit is contained in:
ivuorinen
2025-05-11 00:21:25 +00:00
parent c39b4c5f19
commit 3bbcd70636
19 changed files with 93 additions and 39 deletions

View File

@@ -10,20 +10,20 @@ source: https://github.com/tldr-pages/tldr.git
- Display information about a package:
`dpkg-deb --info {{path/to/file.deb}}`
`dpkg-deb {{[-I|--info]}} {{path/to/file.deb}}`
- Display the package's name and version on one line:
`dpkg-deb --show {{path/to/file.deb}}`
`dpkg-deb {{[-W|--show]}} {{path/to/file.deb}}`
- List the package's contents:
`dpkg-deb --contents {{path/to/file.deb}}`
`dpkg-deb {{[-c|--contents]}} {{path/to/file.deb}}`
- Extract package's contents into a directory:
`dpkg-deb --extract {{path/to/file.deb}} {{path/to/directory}}`
`dpkg-deb {{[-x|--extract]}} {{path/to/file.deb}} {{path/to/directory}}`
- Create a package from a specified directory:
`dpkg-deb --build {{path/to/directory}}`
`dpkg-deb {{[-b|--build]}} {{path/to/directory}}`

View File

@@ -10,20 +10,20 @@ source: https://github.com/tldr-pages/tldr.git
- List all installed packages:
`dpkg-query --list`
`dpkg-query {{[-l|--list]}}`
- List installed packages matching a pattern:
`dpkg-query --list '{{libc6*}}'`
`dpkg-query {{[-l|--list]}} '{{libc6*}}'`
- List all files installed by a package:
`dpkg-query --listfiles {{libc6}}`
`dpkg-query {{[-L|--listfiles]}} {{libc6}}`
- Show information about a package:
`dpkg-query --status {{libc6}}`
`dpkg-query {{[-s|--status]}} {{libc6}}`
- Search for packages that own files matching a pattern:
`dpkg-query --search {{/etc/ld.so.conf.d}}`
`dpkg-query {{[-S|--search]}} {{/etc/ld.so.conf.d}}`

View File

@@ -18,8 +18,8 @@ source: https://github.com/tldr-pages/tldr.git
- List all disks and storage controllers in tabular format:
`sudo lshw -class disk -class storage -short`
`sudo lshw {{[-c|-class]}} disk -class storage -short`
- Save all network interfaces to an HTML file:
- Save all network interfaces to an HTML/XML/JSON file:
`sudo lshw -class network -html > {{interfaces.html}}`
`sudo lshw {{[-c|-class]}} network -{{html|xml|json}} > interfaces{{.html|.xml|.json}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# rofi
> An application launcher and window switcher.
> More information: <https://github.com/davatorium/rofi>.
> More information: <https://github.com/davatorium/rofi#manpage>.
- Show the list of apps:

View File

@@ -6,18 +6,18 @@ source: https://github.com/tldr-pages/tldr.git
# wofi
> An application launcher for wlroots-based Wayland compositors, similar to `rofi` and `dmenu`.
> More information: <https://hg.sr.ht/~scoopta/wofi>.
> More information: <https://manned.org/wofi>.
- Show the list of apps:
`wofi --show drun`
`wofi {{[-S|--show]}} drun`
- Show the list of all commands:
`wofi --show run`
`wofi {{[-S|--show]}} run`
- Pipe a list of items to `stdin` and print the selected item to `stdout`:
`printf "{{Choice1
Choice2
Choice3}}" | wofi --dmenu`
Choice3}}" | wofi {{[-d|--dmenu]}}`