> file.txt 1.The first line will append the word data to file.txt and output it on the screen. The second line will append the word data only to file.txt., 2.They are the same., 3.The first line will append the word data to file.txt and there will be no output on the screen. The second line will output the word data on the screen and append it to file.txt, 4.Both lines will overwrite file.txt with the word data.">
MCQs > IT & Programming > Linux > What is the difference between these two lines of code? echo "data" | tee -a file.txt echo "data" >> file.txt

Linux MCQs

What is the difference between these two lines of code? echo "data" | tee -a file.txt echo "data" >> file.txt

Answer

Correct Answer: The first line will append the word data to file.txt and output it on the screen. The second line will append the word data only to file.txt.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Linux Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Linux Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it