Using stdin Redirection (<) in Linux CLI
📖 Scenario: You have a text file with a list of names. You want to use a command that reads from this file as if you typed the names directly into the command.
🎯 Goal: Learn how to use stdin redirection (
📋 What You'll Learn
Create a text file named
names.txt with specific names.Use stdin redirection (<) to pass the file content to the
cat command.Display the content of the file using the command with stdin redirection.
💡 Why This Matters
🌍 Real World
Many Linux commands can read input from files using stdin redirection. This helps automate tasks without typing input manually.
💼 Career
Understanding stdin redirection is essential for system administrators, developers, and anyone working with command-line tools to automate workflows.
Progress0 / 4 steps