1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 06:04:59 +00:00
serenity/Base/usr/share/man/man1/copy.md
kleines Filmröllchen afaea38be2 Base: Expand "See Also" sections of many manpages
This commit focuses on the CLI utilities.
2023-07-06 10:03:48 +01:00

31 lines
611 B
Markdown

## Name
copy - copy text to the clipboard
## Synopsis
```**sh
$ copy [options...] [text...]
```
## Description
`copy` copies text from stdin or command-line argument (`text`) to the system clipboard. The clipboard is managed by WindowServer.
## Options
* `-t type`, `--type type`: MIME type of data stored in clipboard. The default type is `text/plain`.
* `-c`, `--clear`: Clear the clipboard instead of copying.
## Examples
```sh
# Copy some image to clipboard
$ cat image.png | copy -t image/png
# Place text 'foo' in clipboard
$ copy foo
```
## See also
* [`clipboard`(5)](help://man/5/clipboard)