Redirection in Linux - Linux Tutorial 8
HTML-код
- Опубликовано: 2 фев 2013
- www.guru99.com/linux-redirect... this video explains the concept of re-direction in Linux.
Click on the time points below to view different sections!
0:03 Redirection
2:08 Input Redirection
3:16 Any Program/ Command
3:34 Error Redirection
3:48 Why Error Redirection?
What is Redirection?
Redirection is a feature in Linux such that when executing a command, you can change the standard input/output devices.
Like, share and subscribe our channel for more videos.
Watch more videos on our RUclips channel at / @guru99com
READ this as a book on Amazon by viewing at amzn.to/2gZGjbE
Visit our website for more! www.guru99.com
Read our blogs in www.guru99.com/blog/
FACEBOOK! Would you prefer to watch more about us? Like our page for more / guru99com
TWITTER! Tweet for us on Twitter with #guru99 and follow us on / guru99com
LinkedIn! Follow us here / guru99
THANKS! We appreciate you reading this and hope you have a wonderful day!
Sincerely,
Guru99
Check out COMPLETE LinuxTutorials: ruclips.net/p/PLckPQEKYlbxebubMWdjcGR7K_ukm35ZjN
Interesting! The idea that "everything in linux is a file" is still abstract to me. But it does help with my understanding to know that "every file has a number called FD (file descriptor)" and that a screen also a file descriptor. Additionally, we can also do chained redirection!
Thank you! I finally understand what the & is doing !!😀
rm music :P
lol
Thank you so much for sharing your knowledge, it was difficult for me to understand 2>&1 construction until i've found your video !
Very very informative and easy understand. Thank you very much.
A lot of thanks for the video!
good stuff, thanks. Very helpful. My Linux abilities are taking off with this stuff!
Great job!! Nice explaination. Tomorrow is my exam thanx for the video
Incredibly useful!
You are super good teacher Mr Guru99. Well done! How can I get some powerpoint slides of your lectures?
Thanks for the video !
good video, thank you very much
Thanks for the info, very helpful =) I will add that (at least on my distro) redirecting both stderr and stdout is just &> ... so$ somecommand &> commandlog.txt
Awesome tutorial!
very nicely explained. keep up the good work :)
guruJI please remove the background music. it's really damn irritating. otherwise, the video is very helpful.
music > /dev/null
permission denied
That's why he didn't explained the bit-bucket
awesome lectures
Very well explained!
Very helpful tutorial
Very nice!
Très intéressant Machallah merci beaucoup ça nous aide beaucoup
Perfect tutorial! I have a minor question:
Why instead of:
ls Documets ABC > dirlist 2>&1
cannot I use?:
ls Documets ABC > dirlist 2> dirlist
Is there a reason to use the file descriptor instead of the actual name of the file?
Thanks in advance!
Because fd 1 is stdout of the terminal
Good point man. I actually tried that and it was made the same result but in different order (The stoutput was at the top and the error was below that. If I typed with 2>&1 the order was reversed) So I suspect that if you want to redirect both output and error at the same time is faster to use 2>&1 but if you want to write error in different file name you use >nameOfFile. Great point again!
Great Video!!!!!
Good video
can anyone tell me on which video I will get head and tail command
Thanks!
what is that "echo" word in listings ?
nice video
2:25, is anyone who understands that input redirection (
when I click youtube video it needs to redirect to my website. how can I do this?
Hack RUclips
Also every terminal device have his own stdout and stdin and err
ю
Please remove sound. I can not get your words properly bcoz of souds. Please! Please!
Floppy