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.


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.