Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which of the following is NOT an input/output redirection symbol that Linux shell assigns?

  • A.\(\lt\)
  • B.\(\gt\)
  • C.\(\gt\gt\)
  • D.!

Answer: D

The exclamation mark (!) is not an input/output redirection symbol. In the Linux shell the symbol < redirects standard input from a file, > redirects standard output to a file overwriting it, and >> appends the output to a file. The '!' is used for history expansion and for negation, not for redirecting input or output. For example, command > file.txt sends the output to a file, command < file.txt takes input from it, and command >> file.txt adds to it.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.