Linux CLI - Pipes and RedirectionWhy is stdin redirection (<) preferred over passing a filename as an argument for some commands?ABecause it allows commands to read input from any source, not just filesBBecause it always runs commands fasterCBecause it prevents commands from writing outputDBecause it automatically creates the input file if missingCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand stdin redirection flexibilityUsing < lets commands read input from files or other sources like pipes, not just filenames.Step 2: Compare with passing filename as argumentPassing filename as argument limits input to that file; < allows more flexible input handling.Final Answer:Because it allows commands to read input from any source, not just files -> Option AQuick Check:stdin redirection increases input flexibility [OK]Quick Trick: Use < to flexibly feed input from files or other sources [OK]Common Mistakes:Thinking it speeds up commandsBelieving it blocks outputAssuming it creates files automatically
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