Which of the following commands will accomplish this?

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/

Latest XK0-004 Dumps Valid Version with 267 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments