Search notes:

PowerShell cmdLet Set-Clipboard

Setting the content of the clipboard to the value of a variable:
$var = 'foo bar baz'
set-clipboard $var
Copy the output of a command into the clipboard.
set-clipboard ( get-childItem )

Linux

On Linux, set-clipboard requires the xclip utility to be referenced in the PATH environment variable.

See also

Powershell command noun: clipboard

Index