I use this everyday

Поделиться
HTML-код
  • Опубликовано: 20 сен 2024

Комментарии • 437

  • @Cyber_vir
    @Cyber_vir 4 месяца назад +249

    Please do more five minute Fridays

    • @W8RIT1
      @W8RIT1 4 месяца назад +3

      Yep!! THat's a great idea...I'm glad I thought of it....

  • @adsonmettler3046
    @adsonmettler3046 4 месяца назад +99

    Enjoyed a lot the 5 minute Fridays!! Please, keep doing!

  • @NetworkChuck
    @NetworkChuck  4 месяца назад +26

    🔥🔥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

    • @PawitSahare
      @PawitSahare 4 месяца назад

      Ok

    • @honestgoat
      @honestgoat 4 месяца назад +3

      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.

    • @mousers21
      @mousers21 4 месяца назад

      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.

    • @GreenClearScenery
      @GreenClearScenery 4 месяца назад

      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 ?

    • @GreenClearScenery
      @GreenClearScenery 4 месяца назад

      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 ?

  • @Reed0-
    @Reed0- 4 месяца назад +62

    This is my favorite tech youtuber simply because of how much fun he has doing these vids😊😊

    • @nickmills8476
      @nickmills8476 4 месяца назад +2

      fun is the secret sauce for success

  • @Seedlinux
    @Seedlinux 4 месяца назад +25

    awesome 5 min friday! Love this useful short videos

  • @fmetall07
    @fmetall07 4 месяца назад +18

    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

    • @jmonger
      @jmonger 4 месяца назад +6

      This should be higher as the world is moving to Wayland.

    • @seansingh4421
      @seansingh4421 4 месяца назад

      Man fuck Wayland. Desktop Linux is already a big smelly mess but I especially really hate Wayland.

    • @NullifiedSec
      @NullifiedSec 3 месяца назад +1

      Thanks Bro You Made My Day I Was Tired To Make It Work With My Arch Hyprland Setup

    • @seansingh4421
      @seansingh4421 3 месяца назад

      Boo Wayland, Boo…….. Boo Wayland

    • @roryedwards9949
      @roryedwards9949 3 месяца назад

      Legend, thank you!

  • @Damien-km1vl
    @Damien-km1vl 4 месяца назад +11

    On Windows you can use Get-Clipboard and Set-Clipboard. Because on Windows, you only use Powershell of course!

    • @Jordan-hz1wr
      @Jordan-hz1wr 4 месяца назад

      When you right click copy/paste, it's executing those PowerShell cmdlets in the background.

  • @jeremyindelicato9484
    @jeremyindelicato9484 4 месяца назад +9

    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).

  • @felicytatomaszewska2934
    @felicytatomaszewska2934 4 месяца назад +4

    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.

    • @thanEay
      @thanEay 4 месяца назад

      Chuck, if your reading this, make sure to please do more 5 minute Fridays! We all love them!

    • @thanEay
      @thanEay 4 месяца назад

      This also seems to be a very good "excuse" for the relatively long periods in between videos compared to other RUclipsrs

    • @ISaIGoI
      @ISaIGoI 4 месяца назад

      getting this error "xsel: Can't open display: (null) Inappropriate ioctl for device".
      any solutions?

  • @travislodes5378
    @travislodes5378 4 месяца назад +27

    can you link the fabric video please?
    Also 5 minute Friday is an awesome idea.

    • @elfix42
      @elfix42 4 месяца назад +3

      I'm struggling to find it too

    • @TryGoFurtherAndSucceed
      @TryGoFurtherAndSucceed 2 месяца назад

      ruclips.net/video/UbDyjIIGaxQ/видео.html&pp=ygUTbmV0d29ya2NodWNrIGZhYnJpYw%3D%3D

    • @Gsilverwind
      @Gsilverwind 20 дней назад

      ruclips.net/video/UbDyjIIGaxQ/видео.html

  • @playeronthebeat
    @playeronthebeat 4 месяца назад +5

    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!

  • @tinac7350
    @tinac7350 4 месяца назад +2

    Love love love 5 minute Fridays. Yet another reason to look forward to Fridays! Thank you for all you do.

  • @yaboy7120
    @yaboy7120 4 месяца назад +5

    🥺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.

  • @halbblutpr1nz785
    @halbblutpr1nz785 4 месяца назад +3

    Your keyboard sound is amazing…i love this sound

  • @yevsey169
    @yevsey169 4 месяца назад +10

    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

    • @69thApostleOfShindoL
      @69thApostleOfShindoL 4 месяца назад +2

      Commenting here to get notifications for this reply cuz this a good question

    • @retrodaredevil
      @retrodaredevil 4 месяца назад +2

      Some terminals support OSC52, which is an escape sequence to copy text. Personally I use alacritty to do this.

    • @ViniciusPasqualiniCarvalho
      @ViniciusPasqualiniCarvalho 2 месяца назад

      Yes, I tried on my server and didn't work because of this.

  • @pinlap3875
    @pinlap3875 3 месяца назад +1

    Thank you! I already feel the ways this will save me frustratoin - just with ssh. More 5 minute fridays please.

  • @thomas-f9o
    @thomas-f9o 3 месяца назад +3

    this is such a good idea for a series

  • @lesleybw
    @lesleybw 4 месяца назад +8

    Keep these comings, a quick and enjoyable vid

  • @guidoenr
    @guidoenr 4 месяца назад +6

    would be good explaining users to use `~/.bash_aliases` instead - since it makes the commands creation/exportation a more modular process :)

    • @nicholaswatching
      @nicholaswatching 3 месяца назад +2

      if you use bash_alias also make sure it's sourced in .bashrc

    • @guidoenr
      @guidoenr 3 месяца назад +2

      @@nicholaswatching i think that happens in most linux distributions, anyway is a good check to do :)

  • @jonnyawright
    @jonnyawright 3 месяца назад

    I spent hours yesterday trying to get this to work directly on Windows with no joy. Took the WSL approach and working perfectly now 💗

  • @muckiSG
    @muckiSG 3 месяца назад +2

    Working with Linux nearly 30 years and there is always something to learn ... :-) keep on with 5 minutes (or 6) on Friday!

  • @natewerk
    @natewerk 4 месяца назад +3

    5 minute fridays are a real treat!

  • @chrisdiehl8452
    @chrisdiehl8452 4 месяца назад +2

    One thing you forgot to say.
    When editing /etc/ssh/sshd_config you have to be root.

  • @brandondvorak5237
    @brandondvorak5237 4 месяца назад +3

    Loved this 6 minute 25 second Friday!

  • @big_darkside2716
    @big_darkside2716 4 месяца назад +8

    You should keep it up, the 5 mins are so enjoyable on the any day you want ✌

  • @tagashi9
    @tagashi9 4 месяца назад +110

    1st 🤙 I became network engineer and left my Dev career because of you 🤙🤙🤙

    • @skinlab4239
      @skinlab4239 4 месяца назад +24

      You were not first. Plus, no one cares

    • @RazoBeckett.
      @RazoBeckett. 4 месяца назад +7

      The editor was first.

    • @Feedback406
      @Feedback406 4 месяца назад +6

      Congrats man

    • @smith3463
      @smith3463 4 месяца назад +6

      ​@skinlab4239 you probably use arch Linux 🤓

    • @enderpiyale
      @enderpiyale 4 месяца назад +4

      Network engineers becoming devs nowadays

  • @judenickson4476
    @judenickson4476 3 месяца назад +1

    Great content! Please do more five min fridays!!!

  • @lainerdonet
    @lainerdonet 4 месяца назад +5

    It's amazing that this video is free. Thanks

  • @hilljd23
    @hilljd23 4 месяца назад +1

    Another reason to love Fridays! Thank you!

  • @luispablogallo
    @luispablogallo 3 месяца назад

    Love five minute Fridays, Chuck!

  • @therealroga
    @therealroga 2 месяца назад

    that was great - more 5min fridays please!

  • @bradlz1980
    @bradlz1980 3 месяца назад +1

    More 5 minute fridays. Love it.

  • @Hoaa89
    @Hoaa89 4 месяца назад +4

    Thanks ! Looking good Chuck.

  • @MedusaCharms
    @MedusaCharms 2 месяца назад

    I love 5 minute Fridays!!!!

  • @derrickthomas3060
    @derrickthomas3060 4 месяца назад

    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!

  • @jacksonmiller6605
    @jacksonmiller6605 4 месяца назад

    As fast as educational content is on the platform, yours is great, thank you

  • @petrolmariz7657
    @petrolmariz7657 3 месяца назад

    Really the best tutorial ever)
    Only needed 60 seconds and that’s it!!!) 🎉
    didn’t know about this awesome feature!
    Thank you, bro

  • @electric-m
    @electric-m 4 месяца назад +2

    I always get xsel: Can't open display: (null)
    : Inappropriate ioctl for device on Ubuntu Server, while X11 Forwarding is set to yes.

  • @lordpuff
    @lordpuff 3 месяца назад +1

    Helpful tip right here! And a different question I have is what keyboard do you use? It sounds *heavenly.*

  • @Hack_O_Lantern
    @Hack_O_Lantern 4 месяца назад

    5 Minute Fridays!! Love this format. An idea for episode: customizing Linux, show how you customize your own desktop environment and layout.

  • @jamesbrown8766
    @jamesbrown8766 3 месяца назад

    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 😂.

  • @lunardium
    @lunardium 4 месяца назад +1

    I love 6 minutes and 24 seconds Fridays

  • @SolidStuDoo
    @SolidStuDoo 4 месяца назад

    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!

  • @rookempire
    @rookempire 4 месяца назад

    I love the 5 minute Fridays idea. Can't wait to see more!

  • @ryanfarrel489
    @ryanfarrel489 3 месяца назад

    Good tip. On Android/Termux shell, the commands to alias are termux-clipboard-set and termux-clipboard-get (part of Termux:API)

  • @goldenshadow333
    @goldenshadow333 4 месяца назад +2

    Nice stuff, what is the brand your keyboard dude?

  • @FourQ
    @FourQ 3 месяца назад

    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. :)

  • @stannylou1636
    @stannylou1636 3 месяца назад +1

    More 5 minute Fridays for Linux commands like this, do grep next.

  • @addisonm.2685
    @addisonm.2685 4 месяца назад

    10/10 5 Minute Fridays keep going!

  • @aribowell
    @aribowell 4 месяца назад

    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

  • @zombiewolf007
    @zombiewolf007 4 месяца назад +2

    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)

  • @wildrosetube
    @wildrosetube 4 месяца назад

    Keep giving knowledge to people my friend. Many thanks from Greece!!!!

  • @oneritoo
    @oneritoo 4 месяца назад +1

    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.

  • @Hislodin
    @Hislodin 4 месяца назад

    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 :)

  • @ognyanstrelkov3773
    @ognyanstrelkov3773 4 месяца назад

    Do more 5 minute fridays, they are great!!!

  • @marcin6386
    @marcin6386 3 месяца назад +1

    In my case xsel complain about DISPLAY variable not being set. And setting it don't help...

  • @Stray0
    @Stray0 4 месяца назад +1

    Can I use different aliases? Like maybe "xcopy" and "xpaste"?

  • @adsonmettler3046
    @adsonmettler3046 4 месяца назад +1

    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!

  • @Jihad123-k9l
    @Jihad123-k9l 4 месяца назад +1

    We need to continue either the CCNA or PYTHON guide..

  • @DOABadLuck
    @DOABadLuck 4 месяца назад

    5 min Fridays! My short attention span thanks you!

  • @hohel
    @hohel 3 месяца назад

    More like two minutes Thursday for me… great content as always! What coffee should I try from your store ? :)

  • @Georgggg
    @Georgggg 4 месяца назад +1

    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.

  • @younesscoder
    @younesscoder 3 месяца назад

    do more of this five minute Fridays it was cool ;)

  • @MikeWood
    @MikeWood 2 месяца назад

    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.

  • @ronaldvanSluijs
    @ronaldvanSluijs 3 месяца назад

    I would like to see a video on what server OS you use. Been struggling with which one to use

  • @tra3476
    @tra3476 4 месяца назад +2

    got this error when I tried this on wsl
    xsel: Can't open display: (null) : Inappropriate ioctl for devic

  • @pacos718
    @pacos718 4 месяца назад

    I'm liking five minute Fridays!

  • @alexmbrega
    @alexmbrega 3 месяца назад

    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,

  • @shimon1
    @shimon1 4 месяца назад

    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.

  • @YonatanAvhar
    @YonatanAvhar 4 месяца назад

    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)

  • @BrennanWest85
    @BrennanWest85 4 месяца назад

    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 ;(

  • @yoonhahwang7481
    @yoonhahwang7481 4 месяца назад

    I love you Chuck. Also, can you make more Linux and Network stuff? Thanks for best videos all the time!❣

  • @gregpetrov6919
    @gregpetrov6919 4 месяца назад

    Extremely like the idea of 5 minute Fridays 🎉

  • @viruscaught3826
    @viruscaught3826 4 месяца назад

    enjoyed 5 minute fridays! im confused about api's and how they work, maybe you could do a video on them?

  • @hatterdmad8504
    @hatterdmad8504 4 месяца назад +1

    Chuck love your videos - when are you going to teach us how to web scrap?

  • @ISaIGoI
    @ISaIGoI 4 месяца назад +2

    It didn't work for me with WSL, getting this error "xsel: Can't open display: (null) Inappropriate ioctl for device".
    In solutions?

    • @niatro
      @niatro 3 месяца назад +2

      same

  • @iraqiroyalvids
    @iraqiroyalvids 4 месяца назад

    Your smile after the command works is like it is your birthday! :)

  • @Kitsitx
    @Kitsitx 4 месяца назад

    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.

  • @leonleon1809
    @leonleon1809 3 месяца назад

    I like the 5min-friday format 🎉

  • @Akilli315
    @Akilli315 4 месяца назад +1

    Love them. Linux basics and common tools are great.

  • @BunnyPranav
    @BunnyPranav 4 месяца назад

    Wonderful short and fun videos, could make one 5-minute Friday about raspberry pi zero and some projects?

  • @Jamesgamer1215
    @Jamesgamer1215 4 месяца назад

    Yes please do more five minute Fridays

  • @joshhsoj7450
    @joshhsoj7450 4 месяца назад

    Love 5 min friday! Please do more

  • @Cosy2023
    @Cosy2023 4 месяца назад

    5 minutes Friday! Sounds good, sir!

  • @nassvandrunen6020
    @nassvandrunen6020 4 месяца назад

    I need more of these commands. Now I finally have enough time to see my family.

  • @ethancohen6005
    @ethancohen6005 4 месяца назад

    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?

  • @markgilbert5856
    @markgilbert5856 3 месяца назад

    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!

  • @LoveToMix
    @LoveToMix 4 месяца назад +1

    Yeah. Five minute Fridays for the win… how long can a five minute Friday be tho 😂

  • @shuccle6161
    @shuccle6161 4 месяца назад

    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! 😂

  • @reconless2998
    @reconless2998 4 месяца назад +1

    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/
    $/
    /' "

  • @marcg1043
    @marcg1043 4 месяца назад

    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...

  • @Java-fj3mk
    @Java-fj3mk 4 месяца назад +1

    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.

  • @DocFuzzyTravel
    @DocFuzzyTravel 4 месяца назад

    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.

  • @MuzeMix
    @MuzeMix 4 месяца назад

    more 5 min fridays please!!!

  • @ZeWekThor
    @ZeWekThor 3 месяца назад

    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.

  • @fireflypretender
    @fireflypretender 3 месяца назад

    Your keyboard sounds great, which model is it 😊?

  • @filiph.2994
    @filiph.2994 4 месяца назад +1

    what keyboard is he using, it sound nice

  • @digitalcivilulydighed
    @digitalcivilulydighed 4 месяца назад

    Hi Chuck,
    Yes please, "moar" 5 minutes fridays! ... heck you could do 5 minutes from monday to friday 🙂
    Greetings from DK!

  • @swartze
    @swartze 4 месяца назад

    wl-clipboard is a great replacement for xsel on wayland. And doesn't need as many flags for basic usage.

  • @vanisher123
    @vanisher123 4 месяца назад +1

    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