Home » mcq » Linux » Which of the following is not a filter command? A. sort B. wc C. grep D. cat E. None of the above
sort
wc
grep
cat E. None of the above
Answer is Right!
Answer is Wrong!
The correct answer is: D. cat
A filter command is a command that takes input from
48.3 47.8C117.2 448 288 448 288 448s170.8 0 213.4-11.5c23.5-6.3 42-24.2 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zm-317.5 213.5V175.2l142.7 81.2-142.7 81.2z"/> Subscribe on YouTube
a file or standard input and produces output based on some criteria. The criteria can be specified using options or by piping the output of one command to another.
sort
sorts the lines of a file in alphabetical or numerical order.
wc
counts the number of lines, words, and characters in a file.
grep
searches a file for lines that match a regular expression.
cat
concatenates files or standard input and prints them to standard output.
cat
is not a filter command because it does not produce output based on any criteria. It simply prints the contents of a file or standard input to standard output.