Which of the following commands will accomplish this?

Posted by: Pdfprep Category: XK0-004 Tags: , ,

A systems administrator needs to append output of ls Clha /opt command to the contents of a test.txt file.

Which of the following commands will accomplish this?
A . ls Clha /opt > test.txt
B . ls Clha /opt < test.txt
C . ls Clha /opt >> test.txt
D . ls Clha /opt << test.txt

Answer: C

Explanation:

Reference: https://www.cyberciti.biz/faq/linux-append-text-to-end-of-file/

Leave a Reply

Your email address will not be published.