summaryrefslogtreecommitdiff
path: root/Base/usr/share/man/man1/copy.md
blob: 9fb15bc1ba24a13e5dbc9af5fcd200aa7021c4c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
## 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
```