GIAC Foundational Cybersecurity Technologies Practice Test

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

Prepare for the GIAC Foundational Cybersecurity Technologies Test. Utilize flashcards and multiple-choice questions, each with detailed hints and explanations to excel. Boost your readiness for the exam!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


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

  1. >

  2. echo

  3. cat

  4. all of the above

The correct answer is: >

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.