Posts

Showing posts with the label IO Direction

LPI E - Exam Review 3.5 - IO DIR

Image
Redirecting and Piping Data Navigating the Linux Terminal Adventure navigate: 3.4 << -- >> 3.6 Review of Concepts Learning I/O redirection, here documents, and pipes in Linux enhances career prospects. These skills enable effective data flow management, automation, and streamlined processing. Proficiency in these concepts is highly valued in system administration, DevOps, data engineering, and software development, showcasing expertise in optimizing workflows and handling complex data manipulations. Question 1: You want to save the output of a command to a file called "output.txt". Which of the following commands should you use? A) command > output.txt B) command < output.txt C) command >> output.txt D) command | output.txt Question 2: You want to count the number of lines in a file called "data.txt". Which command should you use? A) grep -c "" data.txt B) wc -w data.txt C) wc -l data.txt D) cat data.txt | wc -w Question 3: You wa