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
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
Thank you so much for this video, Peter! You explained these commands so clearly and in-depth unlike most other videos I stumbled upon.
Glad it was helpful!
This is helpful. Thanks Peter
I’m glad you found it useful. Thanks
Again, thank you, Peter! As a complete noob this really helped me to better understand re-direction.
You are most welcome. I'm glad you found it useful
Great help!!!!! help me understand the input and the output in an easy way!!! keep going !!!!
Glad it helped!
Thank you so much.. this was clear enough
Glad it was helpful!
Thank you sooo much
You're welcome!
I just subscribed
Thankyou sir
You're welcome
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 >> ??
I probably did. Thanks for the correction
very well explained, thank you!
Thank you Tymo. It's my pleasure
So "wc -l < textfile.txt" is equivalent to "cat textfile.txt | wc -l", right?
Yes
Good spot
What does
Great question. This should explain it
stackoverflow.com/questions/12168523/how-does-operator-work-in-linux-shell
You don't need a space between the angle bracket and the file name