Linux CLI - Pipes and RedirectionWhy does the command sort < produce an error?ABecause sort cannot read from stdinBBecause no input file is specified after <CBecause < is used for output redirectionDBecause sort requires an argument before <Check Answer
Step-by-Step SolutionSolution:Step 1: Understand the role of < in commands< redirects input from a file, so it must be followed by a filename.Step 2: Identify missing filename errorsort < without a filename causes an error because input source is missing.Final Answer:Because no input file is specified after < -> Option BQuick Check:Missing filename after < causes error [OK]Quick Trick: Always specify a file after < for input redirection [OK]Common Mistakes:Thinking sort can't read stdinConfusing < with output redirectionAssuming argument needed before <
Master "Pipes and Redirection" in Linux CLI9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Linux CLI Quizzes Disk and Storage - mount and umount - Quiz 9hard Process Management - nohup for persistent processes - Quiz 6medium Process Management - nohup for persistent processes - Quiz 1easy Process Management - jobs command - Quiz 14medium Searching and Finding - Why finding files saves time - Quiz 6medium Text Processing - sed (stream editor) basics - Quiz 10hard Text Processing - awk patterns and actions - Quiz 10hard Text Processing - awk patterns and actions - Quiz 12easy Text Processing - cut (extract columns) - Quiz 5medium Text Processing - grep with regex (-E) - Quiz 13medium