Article 4T7P1 Redirects-Stdin

Redirects-Stdin

by
jharris4854
from LinuxQuestions.org on (#4T7P1)
Is it just me or does Stdin seem to have no real world application? I keep watching the videos but most don't cover stdin. Some use it in a way I just can't seem to wrap my head around. The code is :

ls -l < /var or ls -l 0< /var

According to the guy in the vid,
the above code(I think) was suppose to be equivalent to:

ls -l /var

But, 2 very different outputs appeared.
Can anyone explain it in very simple Linux noob terms? Lol- thanks.latest?d=yIl2AUoC8zA latest?i=M8hzjXGXE5U:U2Y1W5vq0Zw:F7zBnMy latest?i=M8hzjXGXE5U:U2Y1W5vq0Zw:V_sGLiP latest?d=qj6IDK7rITs latest?i=M8hzjXGXE5U:U2Y1W5vq0Zw:gIN9vFwM8hzjXGXE5U
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments