1. Linux Debian/Ubuntu
sudo apt-get install xclip
xclip /etc/passwd
或者使用通道
cat /etc/passwd |
输出内容:xclip -o
2. WSL
cat /etc/passwd | clip.exe
3. macOS
pbcopy pbpaste
1. Linux Debian/Ubuntu
sudo apt-get install xclip
xclip /etc/passwd
或者使用通道
cat /etc/passwd |
输出内容:xclip -o
2. WSL
cat /etc/passwd | clip.exe
3. macOS
pbcopy pbpaste