mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-03 09:55:08 +00:00
Update cheatsheets
This commit is contained in:
@@ -20,15 +20,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Copy the output from a command to the system clipboard, using short notation:
|
||||
|
||||
`echo 123 | xclip {{[-se|-selection]}} clip`
|
||||
`echo 123 | xclip {{[-se|-selection]}} {{[c|clipboard]}}`
|
||||
|
||||
- Copy the contents of a file into the system clipboard:
|
||||
|
||||
`xclip {{[-se|-selection]}} clip {{input_file.txt}}`
|
||||
`xclip {{[-se|-selection]}} {{[c|clipboard]}} {{input_file.txt}}`
|
||||
|
||||
- Copy the contents of a PNG into the system clipboard (can be pasted in other programs correctly):
|
||||
|
||||
`xclip {{[-se|-selection]}} clip {{[-t|-target]}} image/png {{input_file.png}}`
|
||||
`xclip {{[-se|-selection]}} {{[c|clipboard]}} {{[-t|-target]}} image/png {{input_file.png}}`
|
||||
|
||||
- Copy the user input in the console into the system clipboard:
|
||||
|
||||
@@ -40,4 +40,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Paste the contents of the system clipboard to the console:
|
||||
|
||||
`xclip {{[-o|-out]}} {{[-se|-selection]}} clip`
|
||||
`xclip {{[-o|-out]}} {{[-se|-selection]}} {{[c|clipboard]}}`
|
||||
|
||||
Reference in New Issue
Block a user