Loading practice questions
What is the function of following UNIX command?
wc -l < a > b &
Correct Answer: B — It runs the word count program to count the number of lines in its input, a, writing the result to b, but does it in the background.
Explanation:
The command wc -l counts the number of lines from input file 'a', redirects the output to file 'b', and the & symbol runs it as a background process.