CompTIA Exam Questions

A systems administrator needs to append output of ls –lha /opt command to the contents of a test.t

A systems administrator needs to append output of ls –lha /opt command to the contents of a test.txt file. Which of the following commands will accomplish this?

A. ls –lha /opt > test.txt
B. ls –lha /opt C. ls –lha /opt >> test.txt

D. ls –lha /opt https://www.cyberciti.biz/faq/linux-append-text-to-end-of-file/