Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-18 00:18:35 +00:00
parent 9cdd033c95
commit a9720510d1
43 changed files with 362 additions and 132 deletions

View File

@@ -8,26 +8,26 @@ source: https://github.com/tldr-pages/tldr.git
> X11 selection and clipboard manipulation tool.
> More information: <https://manned.org/xsel>.
- Use a command's output as input of the clip[b]oard (equivalent to `<Ctrl c>`):
- Use a command's output as input of the clipboard (equivalent to `<Ctrl c>`):
`echo 123 | xsel -ib`
`echo 123 | xsel {{[-ib|--input --clipboard]}}`
- Use the contents of a file as input of the clipboard:
`cat {{path/to/file}} | xsel -ib`
`cat {{path/to/file}} | xsel {{[-ib|--input --clipboard]}}`
- Output the clipboard's contents into the terminal (equivalent to `<Ctrl v>`):
`xsel -ob`
`xsel {{[-ob|--output --clipboard]}}`
- Output the clipboard's contents into a file:
`xsel -ob > {{path/to/file}}`
`xsel {{[-ob|--output --clipboard]}} > {{path/to/file}}`
- Clear the clipboard:
`xsel -cb`
`xsel {{[-cb|--clear --clipboard]}}`
- Output the X11 primary selection's contents into the terminal (equivalent to a mouse `<MiddleClick>`):
`xsel -op`
`xsel {{[-op|--output --primary]}}`