In a Linux machine, you have a file named “types_of_fish.txt” and you want to append the word “trout” to the file contents. Which of the following commands can you use?
In a Linux machine, you have a file named “types_of_fish.txt” and you want to append the word “trout” to the file contents. Which of the following commands can you use?
- echo trout < types_of_fish.txt
- echo trout > types_of_fish.txt
- echo trout >> types_of_fish.txt
- echo trout 2> types_of_fish.txt
The >> is used as an append redirector.
Get All Week Quiz Answer: