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

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

  • @guru99com
    @guru99com  5 лет назад +1

    Check out COMPLETE LinuxTutorials: ruclips.net/p/PLckPQEKYlbxebubMWdjcGR7K_ukm35ZjN

  • @xigong3009
    @xigong3009 2 года назад +2

    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!

  • @ORA268P
    @ORA268P 2 года назад

    Thank you! I finally understand what the & is doing !!😀

  • @nawazrockon
    @nawazrockon 8 лет назад +40

    rm music :P

  • @NeverwinterSTORM
    @NeverwinterSTORM 5 лет назад +2

    Thank you so much for sharing your knowledge, it was difficult for me to understand 2>&1 construction until i've found your video !

  • @kr4k3nn
    @kr4k3nn 3 года назад +1

    Very very informative and easy understand. Thank you very much.

  • @hafizahmed4105
    @hafizahmed4105 8 лет назад

    A lot of thanks for the video!

  • @TheGodlessGuitarist
    @TheGodlessGuitarist 2 года назад

    good stuff, thanks. Very helpful. My Linux abilities are taking off with this stuff!

  • @vinaytigadi7991
    @vinaytigadi7991 6 лет назад

    Great job!! Nice explaination. Tomorrow is my exam thanx for the video

  • @theabyel26
    @theabyel26 5 лет назад

    Incredibly useful!

  • @kwanguwanjara2146
    @kwanguwanjara2146 9 лет назад +1

    You are super good teacher Mr Guru99. Well done! How can I get some powerpoint slides of your lectures?

  • @mrgogate
    @mrgogate 9 лет назад

    Thanks for the video !

  • @Rico-Suave_
    @Rico-Suave_ 8 лет назад +3

    good video, thank you very much

  • @matthewcardinal4186
    @matthewcardinal4186 Год назад +1

    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

  • @eduardorpg64
    @eduardorpg64 5 лет назад

    Awesome tutorial!

  • @Rendergears
    @Rendergears 11 лет назад +2

    very nicely explained. keep up the good work :)

  • @abhijeetbachate2864
    @abhijeetbachate2864 8 лет назад +13

    guruJI please remove the background music. it's really damn irritating. otherwise, the video is very helpful.

  • @shizyninjarocks
    @shizyninjarocks 7 лет назад +20

    music > /dev/null

    • @xrafter
      @xrafter 3 года назад +2

      permission denied

    • @GuitarreroDaniel
      @GuitarreroDaniel 3 года назад +2

      That's why he didn't explained the bit-bucket

  • @tanyasahu7748
    @tanyasahu7748 8 лет назад +1

    awesome lectures

  • @timocarliermusic
    @timocarliermusic 2 года назад

    Very well explained!

  • @andromeda4641
    @andromeda4641 6 лет назад

    Very helpful tutorial

  • @sumiransinha3707
    @sumiransinha3707 2 года назад

    Very nice!

  • @ndeyesokhnasow7048
    @ndeyesokhnasow7048 Год назад

    Très intéressant Machallah merci beaucoup ça nous aide beaucoup

  • @karips49
    @karips49 4 года назад +3

    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!

    • @xrafter
      @xrafter 3 года назад +1

      Because fd 1 is stdout of the terminal

    • @tsilikitrikis
      @tsilikitrikis 2 года назад

      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!

  • @carlosp.1395
    @carlosp.1395 4 года назад

    Great Video!!!!!

  • @huskieification
    @huskieification 10 лет назад

    Good video

  • @anandupadhyay5581
    @anandupadhyay5581 6 лет назад

    can anyone tell me on which video I will get head and tail command

  • @TheEmily3010
    @TheEmily3010 3 года назад

    Thanks!

  • @vipulberiwal
    @vipulberiwal 7 лет назад +1

    what is that "echo" word in listings ?

  • @pruthvirajkadam1472
    @pruthvirajkadam1472 5 лет назад

    nice video

  • @kunjandesai4341
    @kunjandesai4341 2 года назад

    2:25, is anyone who understands that input redirection (

  • @rajandigital1026
    @rajandigital1026 5 лет назад

    when I click youtube video it needs to redirect to my website. how can I do this?

  • @xrafter
    @xrafter 3 года назад

    Also every terminal device have his own stdout and stdin and err

  • @FiveMissiles
    @FiveMissiles 11 лет назад +1

  • @hafizahmed4105
    @hafizahmed4105 8 лет назад +5

    Please remove sound. I can not get your words properly bcoz of souds. Please! Please!

  • @jeanrodrigues6249
    @jeanrodrigues6249 2 года назад

    Floppy