Linux Bash Tutorial 7 How To Redirect Standard Input

Поділитися
Вставка
  • Опубліковано 18 вер 2024
  • In this Linux Bash tutorial I will demonstrate how to redirect standard input streams into a Linux command.
    The Standard Input stream is typically the input given to command via a keyboard or other interface. However you can redirect the contents of a file or other applications as the input stream of another command.
    Other Linux tutorials in this course:
    Linux tutorial 1 The basics of Bash • Linux Bash Shell For B...
    Linux tutorial 2 Creating nested directories • Linux Bash Shell For B...
    Linux tutorial 3 How to remove directories and files • Linux Bash Shell For B...
    Linux tutorial 4 How to move and rename files • Linux Shell Tutorial 4...
    Linux tutorial 5 Working with directories • Linux Bash For Beginne...
    Linux tutorial 6 How to redirect standard output • Linux Bash Tutorial 6 ...
    Linux tutorial 7 How to redirect standard input • Linux Bash Tutorial 7 ...
    Linux tutorial 8 How to pipe output between commands • Linux Bash Tutorial 8 ...
    Linux tutorial 9 How to use the cat command • Linux Tutorial 9 How T...
    Linux tutorial 10 How to display hidden files • Linux Tutorial 10 How ...
    Linux tutorial 11 Basics of file permissions • Linux Tutorial 11 Basi...
    Linux tutorial 12 How to copy files and folders • Linux Tutorial 12 How ...
    Linux tutorial 13 How to change file dates • Linux Bash For Beginne...
    Linux tutorial 14 How to sort a file
    • Linux Bash For Beginne...
    Linux tutorial 15 How to display disk usage • Linux Bash For Beginne...
    If you want to learn more about the Linux bash shell then checkout this book:
    Linux in a month of lunches: bit.ly/2xnmJfV
    Future tutorials will be posted to Patron first
    ==== GET EARLY ACCESS TO FUTURE VIDEOS & TUTORIALS ====
    Patron: bit.ly/2hmVKwX
    ======== RECOMMENDED PROGRAMMING RESOURCES ========
    Manning programming books and courses: bit.ly/2BIrExp
    Python Crash Course: amzn.to/2lRvw4l
    PHP Web Services: APIs for the Modern Web: amzn.to/2tqiyOl
    Responsive Web Design with HTML5 and CSS3: amzn.to/2tSo6nH.
    ======== MY PROGRAMMING COURSES ========
    Docker in Motion: bit.ly/2vvz2sA
    Skillshare courses: skl.sh/2gI33M5
    Udemy courses: bit.ly/2iGhvIE
    ======== WEB HOSTING DEALS ========
    Cloudways: bit.ly/2CKb79b = 20% off first 6 months
    Digital Ocean: m.do.co/c/9d46... = $10 off
    Linode: bit.ly/2CmoNq3
    ======== SUBSCRIBE TO THE NEWSLETTER ========
    Join the Newsletter: bit.ly/2fPlG3v
    ======== FOLLOW ME ========
    Blog: peterfisher.me.uk
    Facebook: / howtocodewell
    Instagram: / howtocodewell
    Twitter: / howtocodewell
    Pintrest: pinterest.co.uk...
    Twitch: / howtocodewell
    ======== MY TALKS ========
    How to put your Docker image on a diet: bit.ly/2y5KMly
    ======== SUPPORT THE CHANNEL ========
    Become a Patron: bit.ly/2hmVKwX
    Donate: www.paypal.me/...
    Help translate the videos: bit.ly/2iEyxXB
    ======== VIDEO SETUP ========
    Nikon D5300 Camera: amzn.to/2u5jreD
    Logitech HD Pro Webcam C920 amzn.to/2C5NNVJ
    CRAPHY Photography Studio Lights: amzn.to/2BThzOc
    Rode Procaster Microphone: amzn.to/2sH2WJ1
    Rode VideoMic Pro: amzn.to/2vmNF0D
    Zoom H4NPro: amzn.to/2kZrrvo

КОМЕНТАРІ • 26

  • @howtocodewell
    @howtocodewell  6 років тому +1

    I have more tutorials lined up for this series. If you are a Patron you can get early access to them before they are public bit.ly/2hmVKwX

  • @srmbs
    @srmbs 3 роки тому +1

    Thank you so much for this video, Peter! You explained these commands so clearly and in-depth unlike most other videos I stumbled upon.

  • @timiolowookere
    @timiolowookere 2 роки тому +1

    This is helpful. Thanks Peter

    • @howtocodewell
      @howtocodewell  2 роки тому

      I’m glad you found it useful. Thanks

  • @batcrazyjt
    @batcrazyjt 4 роки тому +1

    Again, thank you, Peter! As a complete noob this really helped me to better understand re-direction.

    • @howtocodewell
      @howtocodewell  4 роки тому

      You are most welcome. I'm glad you found it useful

  • @alexhuang4438
    @alexhuang4438 4 роки тому +1

    Great help!!!!! help me understand the input and the output in an easy way!!! keep going !!!!

  • @cryptoomah5605
    @cryptoomah5605 Рік тому

    Thank you so much.. this was clear enough

  • @shakthivelsaravanan9263
    @shakthivelsaravanan9263 3 роки тому +1

    Thank you sooo much

  • @cryptoomah5605
    @cryptoomah5605 Рік тому +1

    I just subscribed

  • @dhanushsivajaya1356
    @dhanushsivajaya1356 3 роки тому

    Thankyou sir

  • @aroop37
    @aroop37 3 роки тому +1

    Excellent video ! I think though u mentioned double ampersand towards the end of the video to append a file. I think u meant double greater arrow symbol >> ??

    • @howtocodewell
      @howtocodewell  3 роки тому

      I probably did. Thanks for the correction

  • @tymo3391
    @tymo3391 5 років тому +2

    very well explained, thank you!

  • @hpp6116
    @hpp6116 5 років тому +1

    So "wc -l < textfile.txt" is equivalent to "cat textfile.txt | wc -l", right?

  • @GeorgeMarxElia
    @GeorgeMarxElia 3 роки тому +1

    What does

    • @howtocodewell
      @howtocodewell  3 роки тому

      Great question. This should explain it
      stackoverflow.com/questions/12168523/how-does-operator-work-in-linux-shell

  • @codewriter3000
    @codewriter3000 3 роки тому

    You don't need a space between the angle bracket and the file name