Skip to content

Xclip usage shown, is no longer working in Linux  #320

Closed
@aahnik

Description

@aahnik

What article on docs.github.com is affected?

Adding a new SSH key to your GitHub account ( Linux )

What part(s) of the article would you like to see updated?

Linux | Copy the SSH key to your clipboard ( using xclip )

Additional information

The shown method seems to no longer work. After seeing the help of xclip

- xclip -sel clip < ~/.ssh/id_rsa.pub
+ xclip -selection clipboard < ~/.ssh/id_rsa.pub

See xclip help

❯ xclip -h
Usage: xclip [OPTION] [FILE]...
Access an X server selection for reading or writing.

  -i, -in          read text into X selection from standard input or files
                   (default)
  -o, -out         prints the selection to standard out (generally for
                   piping to a file or program)
  -l, -loops       number of selection requests to wait for before exiting
  -d, -display     X display to connect to (eg localhost:0")
  -h, -help        usage information
      -selection   selection to access ("primary", "secondary", "clipboard" or "buffer-cut")
      -noutf8      don't treat text as utf-8, use old unicode
      -target      use the given target atom
      -version     version information
      -silent      errors only, run in background (default)
      -quiet       run in foreground, show what's happening
      -verbose     running commentary

Report bugs to <astrand@lysator.liu.se>

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions