GIAC Foundational Cybersecurity Technologies 2025 – 400 Free Practice Questions to Pass the Exam

Disable ads (and more) with a membership for a one time $4.99 payment

Question: 1 / 180

Which of the following commands is used to redirect output in Linux?

>

The command used to redirect output in Linux is represented by the symbol ">". This operator is employed in shell commands to direct the output that is normally displayed on the screen into a file or another command. For example, using "command > file.txt" allows the output of "command" to be written to "file.txt" instead of being printed to the terminal.

While the other options like "echo" or "cat" are commands used in Linux, they do not intrinsically perform output redirection. "echo" is used to display a line of text or a variable's value in the terminal, and "cat" is primarily used for reading the contents of files or concatenating them. Although these commands can work with output redirection, they do not themselves carry the capability to redirect output like the ">" operator does.

Thus, the symbol “>” is the specific operator that fulfills the requirement for output redirection in Linux commands.

echo

cat

all of the above

Next

Report this question