ACE-P-ALE1-04 practice question 7 of 35
Which utility can be used to merge sequentially corresponding lines of input streams into a single output stream?
Full set: 100 questionsThe paste utility is the standard command-line tool for merging files horizontally. It reads from multiple input files and joins their corresponding lines side-by-side, writing the result to standard output. By default, it uses a tab character as a delimiter between the columns formed from each input file. This functionality directly matches the requirement of merging sequentially corresponding lines from input streams into a single output stream.
A. sort: This utility arranges lines of text files in a specified order; it does not merge files side-by-side.
B. cut: This utility extracts specific sections (columns or fields) from each line of a file; it does not combine multiple files.
D. diff: This utility compares files line by line to identify and display their differences, rather than merging them.
E. grep: This utility searches for lines containing a specified pattern within text files; it does not perform any merging function.
1. GNU Coreutils Manual: The official documentation for the paste command explicitly states its function: "The paste command merges the given files, joining their corresponding lines side-by-side, separated by tabulators."
Source: Free Software Foundation, GNU Coreutils Manual, Section 14.2, "paste: merge lines of files."
2. University Courseware: Reputable computer science courses cover fundamental shell utilities. The paste command is often taught as a primary tool for data manipulation and file merging.
Source: MIT, "The Missing Semester of Your CS Education," Lecture 2: Shell Tools and Scripting. The lecture materials describe paste as a tool for joining lines of files.
Keep practicing
Take the free ACE-P-ALE1-04 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other ACE-P-ALE1-04 practice questions
- Question 1When using the sudo command to run something as root, which password is required?
- Question 2Which utility can be used to remove sections or columns of each line of input?
- Question 3The ps –ef command is from which UNIX variant?
- Question 4In file globbing, which symbol matches any single character?
- Question 5If the system is swapping, what can be done to alleviate the problem?
- Question 6When scripting in bash, it is recommended to always use which symbols around your variabl…
