Overview - stdin redirection (<)
What is it?
stdin redirection using the < symbol in Linux command line means taking input for a command from a file instead of typing it manually. It tells the shell to read the contents of a file and send it as input to a command. This helps automate commands that usually wait for user input. It is a simple way to feed data into programs without typing it each time.
Why it matters
Without stdin redirection, you would have to type input manually every time you run a command that needs it. This is slow, error-prone, and not practical for repetitive tasks or scripts. Stdin redirection makes automation possible by letting commands read input from files, saving time and reducing mistakes. It is a foundation for scripting and batch processing in Linux.
Where it fits
Before learning stdin redirection, you should understand basic Linux commands and how to run them in the terminal. After mastering stdin redirection, you can learn about other redirections like stdout (>) and stderr (2>), pipes (|), and advanced shell scripting techniques.