🔥🔥Join the NetworkChuck Academy!: ntck.co/NCAcademy Dive into this Five Minute Friday with NetworkChuck as he unveils a game-changing tip for tech enthusiasts: copying and pasting in the terminal! Learn how to seamlessly transfer data between your terminal and clipboard using simple commands, whether you're on Linux, Windows, or macOS. This tutorial covers everything from installing essential tools to setting up aliases for efficiency. Perfect for anyone looking to streamline their workflow and enhance productivity. Don't miss out on these practical tips and tricks! ****00:00**** - Introduction: Essential Terminal Copy-Paste Trick ****01:04**** - Mac Users: Built-in pbcopy and pbpaste ****01:13**** - Linux and WSL Users: Installing xsel ****01:56**** - Basic xsel Commands for Clipboard Management ****02:17**** - Creating Aliases for Easier Commands ****03:27**** - Remote Server Clipboard Access Setup ****05:56**** - Final Test and Wrap-Up
Yo brother, where's ya video on Fabric? I searched your channel and there doesn't appear to be a video with fabric in the title and you didn't link it anywhere on this video. Have you not released it yet? P.S. Love the 5 minute Fridays idea.
I'm more confused on the "why" for this. Maybe it's just me. Since I don't use pbcopy, I'm not sure what tasks you're helping yourself with. When do you need to copy a web page into a terminal command line? It makes no sense. For us mortals, we need practical examples and more of the why.
Can you please do a video explaining in detail (both high level and low level), what exactly is SQL Server Instance? I've read about it and watched about it but for some reason I just don't get it. Why did Microsoft need to produce Instances ?
Can you please do a video explaining in detail (both high level and low level), what exactly is SQL Server Instance? I've read about it and watched about it but for some reason I just don't get it. Why did Microsoft need to produce Instances ?
I already have been using this hack / command for several years but still watched because your style is enjoyable. You don't to say sorry, you can make it 10-mins friday, we will love it.
Definitely ssh keys as a five minute friday. Definitely. Especially its functionality with the ssh .config where usernames & hosts can be specified to use ssh and be auto logged in as a specific user. It's a really, really good function!
If it relies on x11 forwarding - it won't work on a server without a display server. Or on machines that are running Wayland rather than x11, as the Linux desktop is moving towards
Love the 5 minute Fridays! Often I don’t have time for a 20 or 30 minute video, but I’m having Chuck withdrawal. And this is a cool trick. Glad to know my Mac already has this capability. I guess I should have read the manual 😂.
Love 5 minute Friday! More please, absolutely! Could I request a 5mF (that’s what I’m going to call it now) on setting up a standard home router with separate vLANs for visitors, family devices and iot devices? Your CCNA course is awesome but a nice explainer like this one for the key steps would be flipping fantastic!
well, xsel without parameters works on the primary selection (which you usually paste with the middle mouse button, which is the fastes way) echo "foo bar" | xsel xsel | less both work and there is also an xclip commond with nearly the same functionality: echo "foo bar" | xclip xclip | less in special cases the slightly different option/feature set might help to solve a problem. E.g. xclip has -selection buffer-cut and a -loops option
LOVE the 5 Minute Friday, bro! Have my PC babies, NetworkChuck! (Sorry, I dont even know what that means...I just envision some fangirl screaming it from the front row with you on stage while doing a TED Talk on hacking lol)
I enjoyed this. Could you do a tutorial on HTTP or DNS tunneling? I was trying to do this and it took me a while to figure out but I got it eventually.
X11 has client-server architecture and theoretically you can do crazy things with it. However I never seen actual remote display connection. Guess, it doesn't work well with network latency.
This was a good tip. More 5MF. I thought your channel had gone dormant so I checked to see if there had been any content since the White House degrees video and was surprised there was. Damned algorithm.
Hi Chuck, Content idea: I live in Country A and I have a second home in Country B. I have internet in both locations from Orange and Vodafone respectively. The internet setup is ONT from internet provider + Asus Router (RT-AC67U) in both locations. I would like to add in both places another (VPN) router and have a VPN connection set up between those routers. The goal is to get the internet signal from Orange (country A) in country B and vice versa. In other words, in both places there should be two WIFI signals. The local one and the other from the foreign country. I know it is possible, a friend once did it but I think he made it work by mistake because he does not know what he did anymore... I need to access websites that are only accessible if I am in the correct country but I don’t want to use a VPN service and connect to a random server I don’t have under control + extra monthly subscription fee. If you would make a video about this setup, I would be eternally grateful. Sincerely,
Really enjoyed this! You should defenetlly do this a regular thing. I would love to see a five minute friday on that 'X11' feature, or even do a full video on it. it looks really interesting.
If you have a Wayland based Linux desktop, you should have the wl-clipboard package installed, which has wl-copy and wl-paste, and they can be used just like you demonstrated in your video with xsel (not sure about the X11 forwarding part)
A nice tip for everyone, you can actually use alias commands to make running certain commands easier. For example, I have an install command that simplifies the "sudo pacman -S" command (I am using the arch distro so yours might be different depending on distro) and it looks like this: alias install="sudo pacman -S " so instead of typing out "sudo pacman -S [insert package name here]" I type "install [insert package name here]" and the terminal translates it to "sudo pacman -S [insert package name here]" Just paste the string into the .bashrc file and use the source command to update the bash to start using the new lines in the .rcbash, and it will save you a lot of time! Another more tip for the neofetch fanboys like myself, in your .bashrc file, at the bottom type in on a new line, just neofetch and save your .bashrc file. Restart the terminal and it'll give you the pretty distro ASCII art and system info every single time you start your terminal, just make sure you have the neofetch package installed on your system to make it work. RIP neofetch ;(
This only works correctly if you're using x11. If you're using Wayland, either your clipboard won't be synced between x11 and native wayland apps or this won't do anything if xwayland is not installed. For Wayland systems, you can use the tool wl-clipboard instead, which includes the commands wl-copy and wl-paste for this exact purpose.
Hey chuck! Huuuuuge fan of yours. A lot of your videos got me super into IT and drove me to start working on my security+. Do you have a specific linux distro you find to be the best/most accessible/most easy, etc?
I actually like the idea of 5 minute fridays, I however do not like the Shorts format. So long as you keep them more than 3 minutes, keep the videos in 16:9 format. I can watch this!
Hot take but, Five Minute Mondays might be worth considering, since most people usually have less time on Mondays, but more time on Fridays to watch their favorite RUclips channel NetworkChuck :) Loved the video regardless though and obviously still planning to watch regardless! 😂
I do it slightly differently for WSL, but may not work as well with doing it on a remote machine. This has the benefit of not using X11 and not requiring any additional packages: alias clip='clip.exe' alias paste="powershell.exe Get-Clipboard | perl -p -e 's/ $/ /' "
Great video. Very useful. Since bash aliases are so helpful, can you make a video about how-to quickly deploy new aliases to all your servers, assuming that we all run multiple servers in our home labs and we would like to have all our cool tools available in every environment...
Thanks for this great tool it would save me a lot if it works. I followed along and did all what you said. However, this what it shows: echo "Hello, World" | pbcopy xsel: Can't open display: (null) : Connection refused and when I do: echo $DISPLAY :0 Any idea what is wrong. By the way my connection scenario is from MacOS to Linux server.
Cool feature. Thanks for the tip. One small gripe I have though is that I like to keep things tidy and don't like to change automatic generated (and potentially overwritten) files like .bashrc. I like to add aliases to the .bash_aliases file which I keep in my dotfiles repo. So when I change a system I can just take my aliases with me and not overwrite the bashrc file which might have changed drastically due to a system update or some such.
Hi sir i have a question regarding copy paste in kali to host and vice versa. The version of kali 2019.3 is installed in vmware 17 pro. Any solutions for that. Please reply for this one it's a great thing for me
Please do more five minute Fridays
Yep!! THat's a great idea...I'm glad I thought of it....
Enjoyed a lot the 5 minute Fridays!! Please, keep doing!
🔥🔥Join the NetworkChuck Academy!: ntck.co/NCAcademy
Dive into this Five Minute Friday with NetworkChuck as he unveils a game-changing tip for tech enthusiasts: copying and pasting in the terminal! Learn how to seamlessly transfer data between your terminal and clipboard using simple commands, whether you're on Linux, Windows, or macOS. This tutorial covers everything from installing essential tools to setting up aliases for efficiency. Perfect for anyone looking to streamline their workflow and enhance productivity. Don't miss out on these practical tips and tricks!
****00:00**** - Introduction: Essential Terminal Copy-Paste Trick
****01:04**** - Mac Users: Built-in pbcopy and pbpaste
****01:13**** - Linux and WSL Users: Installing xsel
****01:56**** - Basic xsel Commands for Clipboard Management
****02:17**** - Creating Aliases for Easier Commands
****03:27**** - Remote Server Clipboard Access Setup
****05:56**** - Final Test and Wrap-Up
Ok
Yo brother, where's ya video on Fabric? I searched your channel and there doesn't appear to be a video with fabric in the title and you didn't link it anywhere on this video. Have you not released it yet?
P.S. Love the 5 minute Fridays idea.
I'm more confused on the "why" for this. Maybe it's just me. Since I don't use pbcopy, I'm not sure what tasks you're helping yourself with. When do you need to copy a web page into a terminal command line? It makes no sense. For us mortals, we need practical examples and more of the why.
Can you please do a video explaining in detail (both high level and low level), what exactly is SQL Server Instance?
I've read about it and watched about it but for some reason I just don't get it. Why did Microsoft need to produce Instances ?
Can you please do a video explaining in detail (both high level and low level), what exactly is SQL Server Instance?
I've read about it and watched about it but for some reason I just don't get it. Why did Microsoft need to produce Instances ?
This is my favorite tech youtuber simply because of how much fun he has doing these vids😊😊
fun is the secret sauce for success
awesome 5 min friday! Love this useful short videos
if you're on wayland, like on the last version of ubuntu, you need to install wl-clipboard and alias wl-copy as pbcopy and wl-paste as pb-paste
This should be higher as the world is moving to Wayland.
Man fuck Wayland. Desktop Linux is already a big smelly mess but I especially really hate Wayland.
Thanks Bro You Made My Day I Was Tired To Make It Work With My Arch Hyprland Setup
Boo Wayland, Boo…….. Boo Wayland
Legend, thank you!
On Windows you can use Get-Clipboard and Set-Clipboard. Because on Windows, you only use Powershell of course!
When you right click copy/paste, it's executing those PowerShell cmdlets in the background.
If you try this on Linux like Fedora it might not work due to wayland. You can use wl-clipboard instead (wl-copy & wl-paste).
I already have been using this hack / command for several years but still watched because your style is enjoyable. You don't to say sorry, you can make it 10-mins friday, we will love it.
Chuck, if your reading this, make sure to please do more 5 minute Fridays! We all love them!
This also seems to be a very good "excuse" for the relatively long periods in between videos compared to other RUclipsrs
getting this error "xsel: Can't open display: (null) Inappropriate ioctl for device".
any solutions?
can you link the fabric video please?
Also 5 minute Friday is an awesome idea.
I'm struggling to find it too
ruclips.net/video/UbDyjIIGaxQ/видео.html&pp=ygUTbmV0d29ya2NodWNrIGZhYnJpYw%3D%3D
ruclips.net/video/UbDyjIIGaxQ/видео.html
Definitely ssh keys as a five minute friday. Definitely.
Especially its functionality with the ssh .config where usernames & hosts can be specified to use ssh and be auto logged in as a specific user.
It's a really, really good function!
Love love love 5 minute Fridays. Yet another reason to look forward to Fridays! Thank you for all you do.
🥺God bless u and ur family. Thank u for all of the free education you provide to millions of us. You and others like yourself are truly a blessing.
Your keyboard sound is amazing…i love this sound
If it relies on x11 forwarding - it won't work on a server without a display server. Or on machines that are running Wayland rather than x11, as the Linux desktop is moving towards
Commenting here to get notifications for this reply cuz this a good question
Some terminals support OSC52, which is an escape sequence to copy text. Personally I use alacritty to do this.
Yes, I tried on my server and didn't work because of this.
Thank you! I already feel the ways this will save me frustratoin - just with ssh. More 5 minute fridays please.
this is such a good idea for a series
Keep these comings, a quick and enjoyable vid
would be good explaining users to use `~/.bash_aliases` instead - since it makes the commands creation/exportation a more modular process :)
if you use bash_alias also make sure it's sourced in .bashrc
@@nicholaswatching i think that happens in most linux distributions, anyway is a good check to do :)
I spent hours yesterday trying to get this to work directly on Windows with no joy. Took the WSL approach and working perfectly now 💗
Working with Linux nearly 30 years and there is always something to learn ... :-) keep on with 5 minutes (or 6) on Friday!
Or well beyond 6...
5 minute fridays are a real treat!
One thing you forgot to say.
When editing /etc/ssh/sshd_config you have to be root.
Loved this 6 minute 25 second Friday!
You should keep it up, the 5 mins are so enjoyable on the any day you want ✌
1st 🤙 I became network engineer and left my Dev career because of you 🤙🤙🤙
You were not first. Plus, no one cares
The editor was first.
Congrats man
@skinlab4239 you probably use arch Linux 🤓
Network engineers becoming devs nowadays
Great content! Please do more five min fridays!!!
♥
It's amazing that this video is free. Thanks
Another reason to love Fridays! Thank you!
Love five minute Fridays, Chuck!
that was great - more 5min fridays please!
More 5 minute fridays. Love it.
Thanks ! Looking good Chuck.
I love 5 minute Fridays!!!!
Nice! I am a debian guy and can use all the cool tips and tricks like this I can get. Keep these 5 min Fridays coming!
As fast as educational content is on the platform, yours is great, thank you
Really the best tutorial ever)
Only needed 60 seconds and that’s it!!!) 🎉
didn’t know about this awesome feature!
Thank you, bro
I always get xsel: Can't open display: (null)
: Inappropriate ioctl for device on Ubuntu Server, while X11 Forwarding is set to yes.
Helpful tip right here! And a different question I have is what keyboard do you use? It sounds *heavenly.*
5 Minute Fridays!! Love this format. An idea for episode: customizing Linux, show how you customize your own desktop environment and layout.
Love the 5 minute Fridays! Often I don’t have time for a 20 or 30 minute video, but I’m having Chuck withdrawal. And this is a cool trick. Glad to know my Mac already has this capability. I guess I should have read the manual 😂.
I love 6 minutes and 24 seconds Fridays
Love 5 minute Friday! More please, absolutely!
Could I request a 5mF (that’s what I’m going to call it now) on setting up a standard home router with separate vLANs for visitors, family devices and iot devices? Your CCNA course is awesome but a nice explainer like this one for the key steps would be flipping fantastic!
I love the 5 minute Fridays idea. Can't wait to see more!
Good tip. On Android/Termux shell, the commands to alias are termux-clipboard-set and termux-clipboard-get (part of Termux:API)
Nice stuff, what is the brand your keyboard dude?
Definitely a fan of five minute Friday. Slot in if you've just got 10 minutes and still in landscape mode - phones rotate, TV's don't. :)
More 5 minute Fridays for Linux commands like this, do grep next.
10/10 5 Minute Fridays keep going!
well, xsel without parameters works on the primary selection (which you usually paste with the middle mouse button, which is the fastes way)
echo "foo bar" | xsel
xsel | less
both work
and there is also an xclip commond with nearly the same functionality:
echo "foo bar" | xclip
xclip | less
in special cases the slightly different option/feature set might help to solve a problem.
E.g. xclip has
-selection buffer-cut
and a
-loops
option
LOVE the 5 Minute Friday, bro! Have my PC babies, NetworkChuck! (Sorry, I dont even know what that means...I just envision some fangirl screaming it from the front row with you on stage while doing a TED Talk on hacking lol)
Keep giving knowledge to people my friend. Many thanks from Greece!!!!
I enjoyed this. Could you do a tutorial on HTTP or DNS tunneling? I was trying to do this and it took me a while to figure out but I got it eventually.
Yes! Do the 5minute Friday videos. And be consistent with it. Even if the video covers a simple topic or tool. Let your channel thrive :)
Do more 5 minute fridays, they are great!!!
In my case xsel complain about DISPLAY variable not being set. And setting it don't help...
Can I use different aliases? Like maybe "xcopy" and "xpaste"?
I would like to see more content about Git Bash.. managing repository and stuff like that.. I know it's not a cybersecurity thing, but would be great!
We need to continue either the CCNA or PYTHON guide..
5 min Fridays! My short attention span thanks you!
More like two minutes Thursday for me… great content as always! What coffee should I try from your store ? :)
X11 has client-server architecture and theoretically you can do crazy things with it.
However I never seen actual remote display connection.
Guess, it doesn't work well with network latency.
do more of this five minute Fridays it was cool ;)
This was a good tip. More 5MF. I thought your channel had gone dormant so I checked to see if there had been any content since the White House degrees video and was surprised there was. Damned algorithm.
I would like to see a video on what server OS you use. Been struggling with which one to use
got this error when I tried this on wsl
xsel: Can't open display: (null) : Inappropriate ioctl for devic
I'm liking five minute Fridays!
Hi Chuck,
Content idea:
I live in Country A and I have a second home in Country B.
I have internet in both locations from Orange and Vodafone respectively.
The internet setup is ONT from internet provider + Asus Router (RT-AC67U) in both locations.
I would like to add in both places another (VPN) router and have a VPN connection set up between those routers. The goal is to get the internet signal from Orange (country A) in country B and vice versa. In other words, in both places there should be two WIFI signals. The local one and the other from the foreign country. I know it is possible, a friend once did it but I think he made it work by mistake because he does not know what he did anymore...
I need to access websites that are only accessible if I am in the correct country but I don’t want to use a VPN service and connect to a random server I don’t have under control + extra monthly subscription fee.
If you would make a video about this setup, I would be eternally grateful.
Sincerely,
Really enjoyed this! You should defenetlly do this a regular thing.
I would love to see a five minute friday on that 'X11' feature, or even do a full video on it. it looks really interesting.
If you have a Wayland based Linux desktop, you should have the wl-clipboard package installed, which has wl-copy and wl-paste, and they can be used just like you demonstrated in your video with xsel (not sure about the X11 forwarding part)
A nice tip for everyone, you can actually use alias commands to make running certain commands easier. For example, I have an install command that simplifies the "sudo pacman -S" command (I am using the arch distro so yours might be different depending on distro) and it looks like this: alias install="sudo pacman -S "
so instead of typing out "sudo pacman -S [insert package name here]"
I type "install [insert package name here]" and the terminal translates it to "sudo pacman -S [insert package name here]"
Just paste the string into the .bashrc file and use the source command to update the bash to start using the new lines in the .rcbash, and it will save you a lot of time!
Another more tip for the neofetch fanboys like myself, in your .bashrc file, at the bottom type in on a new line, just neofetch and save your .bashrc file. Restart the terminal and it'll give you the pretty distro ASCII art and system info every single time you start your terminal, just make sure you have the neofetch package installed on your system to make it work. RIP neofetch ;(
I love you Chuck. Also, can you make more Linux and Network stuff? Thanks for best videos all the time!❣
Extremely like the idea of 5 minute Fridays 🎉
enjoyed 5 minute fridays! im confused about api's and how they work, maybe you could do a video on them?
Chuck love your videos - when are you going to teach us how to web scrap?
It didn't work for me with WSL, getting this error "xsel: Can't open display: (null) Inappropriate ioctl for device".
In solutions?
same
Your smile after the command works is like it is your birthday! :)
This only works correctly if you're using x11. If you're using Wayland, either your clipboard won't be synced between x11 and native wayland apps or this won't do anything if xwayland is not installed.
For Wayland systems, you can use the tool wl-clipboard instead, which includes the commands wl-copy and wl-paste for this exact purpose.
I like the 5min-friday format 🎉
Love them. Linux basics and common tools are great.
Wonderful short and fun videos, could make one 5-minute Friday about raspberry pi zero and some projects?
Yes please do more five minute Fridays
Love 5 min friday! Please do more
5 minutes Friday! Sounds good, sir!
I need more of these commands. Now I finally have enough time to see my family.
Hey chuck! Huuuuuge fan of yours. A lot of your videos got me super into IT and drove me to start working on my security+.
Do you have a specific linux distro you find to be the best/most accessible/most easy, etc?
I actually like the idea of 5 minute fridays, I however do not like the Shorts format.
So long as you keep them more than 3 minutes, keep the videos in 16:9 format. I can watch this!
Yeah. Five minute Fridays for the win… how long can a five minute Friday be tho 😂
Hot take but, Five Minute Mondays might be worth considering, since most people usually have less time on Mondays, but more time on Fridays to watch their favorite RUclips channel NetworkChuck :)
Loved the video regardless though and obviously still planning to watch regardless! 😂
I do it slightly differently for WSL, but may not work as well with doing it on a remote machine. This has the benefit of not using X11 and not requiring any additional packages:
alias clip='clip.exe'
alias paste="powershell.exe Get-Clipboard | perl -p -e 's/
$/
/' "
Great video. Very useful. Since bash aliases are so helpful, can you make a video about how-to quickly deploy new aliases to all your servers, assuming that we all run multiple servers in our home labs and we would like to have all our cool tools available in every environment...
Thanks for this great tool it would save me a lot if it works. I followed along and did all what you said. However, this what it shows:
echo "Hello, World" | pbcopy
xsel: Can't open display: (null)
: Connection refused
and when I do:
echo $DISPLAY
:0
Any idea what is wrong. By the way my connection scenario is from MacOS to Linux server.
It was really useful thing you had a video on and that's how I also understood what grep actually does. Makes using Linux infinitely faster.
more 5 min fridays please!!!
Cool feature. Thanks for the tip. One small gripe I have though is that I like to keep things tidy and don't like to change automatic generated (and potentially overwritten) files like .bashrc. I like to add aliases to the .bash_aliases file which I keep in my dotfiles repo. So when I change a system I can just take my aliases with me and not overwrite the bashrc file which might have changed drastically due to a system update or some such.
Your keyboard sounds great, which model is it 😊?
what keyboard is he using, it sound nice
Hi Chuck,
Yes please, "moar" 5 minutes fridays! ... heck you could do 5 minutes from monday to friday 🙂
Greetings from DK!
wl-clipboard is a great replacement for xsel on wayland. And doesn't need as many flags for basic usage.
Hi sir i have a question regarding copy paste in kali to host and vice versa. The version of kali 2019.3 is installed in vmware 17 pro. Any solutions for that. Please reply for this one it's a great thing for me