[Day 4] Why ls Doesn't Know Where Its Output Goes
After typing ls > out.txt hundreds of times, a strange question hit me:
Does ls somehow detect that its output is being redirected? Does it have some logic like "oh, output is going to a file now, let
frogsdevlog.hashnode.dev6 min read