Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-23 00:19:46 +00:00
parent 0cc7cfe867
commit 058ce19122
64 changed files with 437 additions and 86 deletions

View File

@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
- Align two or more sequences, custom tabular output format, output to file:
`blastn -query {{query.fa}} -subject {{subject.fa}} -outfmt {{'6 qseqid qlen qstart qend sseqid slen sstart send bitscore evalue pident'}} -out {{output.tsv}}`
`blastn -query {{query.fa}} -subject {{subject.fa}} -outfmt '{{6 qseqid qlen qstart qend sseqid slen sstart send bitscore evalue pident}}' -out {{output.tsv}}`
- Search nucleotide databases using a nucleotide query, 16 threads (CPUs) to use in the BLAST search, with a maximum number of 10 aligned sequences to keep:

View File

@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
- Search the protein database using a query and `regex`:
`esearch -db {{protein}} -query {{'Escherichia*'}}`
`esearch -db {{protein}} -query '{{Escherichia*}}'`
- Search the nucleotide database for sequences whose metadata contain insulin and rodents:

View File

@@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git
> See also: `date` for Unix time information and `umount` for unmounting partitions.
> More information: <https://extundelete.sourceforge.net/options.html>.
- Restore all deleted files inside partition N on device X:
- Restore all deleted files inside partition `N` on device `X`:
`sudo extundelete {{/dev/sdXN}} --restore-all`

View File

@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
- Set MPV as the default application for all audio files:
`handlr set {{'audio/*'}} {{mpv.desktop}}`
`handlr set '{{audio/*}}' {{mpv.desktop}}`
- List all default apps:

View File

@@ -8,6 +8,18 @@ source: https://github.com/tldr-pages/tldr.git
> Output the first part of files.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/head-invocation.html>.
- Show first 10 lines in a file:
`head {{path/to/file}}`
- Show first 10 lines of multiple files:
`head {{path/to/file1 path/to/file2 ...}}`
- Output the first 5 lines of a file:
`head {{[-5|--lines 5]}} {{path/to/file}}`
- Output the first few lines of a file:
`head {{[-n|--lines]}} {{count}} {{path/to/file}}`

View File

@@ -28,7 +28,7 @@ source: https://github.com/tldr-pages/tldr.git
- Prepend "foo" to all filenames in the current directory:
`rename {{''}} {{'foo'}} {{*}}`
`rename '' '{{foo}}' {{*}}`
- Rename a group of increasingly numbered files zero-padding the numbers up to 3 digits:

View File

@@ -19,11 +19,11 @@ source: https://github.com/tldr-pages/tldr.git
- Add a user-defined rule that labels any path which matches a PCRE `regex`:
`sudo semanage fcontext {{[-a|--add]}} {{[-t|--type]}} {{samba_share_t}} {{'/mnt/share(/.*)?'}}`
`sudo semanage fcontext {{[-a|--add]}} {{[-t|--type]}} {{samba_share_t}} '{{/mnt/share(/.*)?}}'`
- Delete a user-defined rule using its PCRE `regex`:
`sudo semanage fcontext {{[-d|--delete]}} {{'/mnt/share(/.*)?'}}`
`sudo semanage fcontext {{[-d|--delete]}} '{{/mnt/share(/.*)?}}'`
- Relabel a directory recursively by applying the new rules:

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Set multiple keyboard layouts, their variants and switching option:
`setxkbmap -layout {{us,de}} -variant {{,qwerty}} -option {{'grp:alt_caps_toggle'}}`
`setxkbmap -layout {{us,de}} -variant {{,qwerty}} -option '{{grp:alt_caps_toggle}}'`
- List all layouts:

View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl revert
> Revert unit files to their vendor versions.
> Undoes the effects of `edit`, `enable`, `disable`, `set-property`, and `mask`.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#revert%20UNIT%E2%80%A6>.
- Revert unit files to their default settings:
`systemctl revert {{unit1 unit2 ...}}`
- Revert a user unit file:
`systemctl revert {{unit}} --user`

33
tldr/linux/wev Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# wev
> Print contents of Wayland events.
> More information: <https://manned.org/wev>.
- Monitor all occurring Wayland events:
`wev`
- Print all events received by a specific Wayland interface:
`wev -f {{wl_keyboard}}`
- Print only specific events received by a Wayland interface:
`wev -f {{wl_keyboard}}:{{key}}`
- Print everything but the specified wayland events:
`wev -F {{wl_keyboard}}:{{key}}`
- Write the `wl_keyboards`'s keymap to a file:
`wev -M {{path/to/file}}`
- Print Wayland globals:
`wev -g`

View File

@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
- Open the terminal using a Serif font and a font size equal to 20:
`xterm -fa {{'Serif'}} -fs {{20}}`
`xterm -fa '{{Serif}}' -fs {{20}}`