Which tool works depends on your display server: xclip, xsel, and xdotool are for X11, while wl-copy, wtype are for Wayland. ydotool works on both because it injects events at the kernel level (it needs the ydotoold daemon running and root or uinput access).