exam questions

Exam EX200 All Questions

View all questions & answers for the EX200 exam

Exam EX200 topic 1 question 94 discussion

Actual exam question from RedHat's EX200
Question #: 94
Topic #: 1
[All EX200 Questions]

SIMULATION -
Download the document from ftp://instructor.example.com/pub/testfile, find all lines containing [abcde] and redirect to /MNT/answer document, then rearrange the order according the original content.

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
Download the file to /tmp first -
grep [abcde] /tmp/testfile > /mnt/answer

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
jahute27
Highly Voted 1 year, 8 months ago
# wget ftp://instructor.example.com/pub/testfile # mkdir -p /MNT/answer # grep ‘abcde’ testfile > /MNT/answer
upvoted 9 times
cloudyhr
1 year ago
mkdir will create a folder, to create a file we should use the touch command touch /mnt/answer
upvoted 3 times
Kindolos1
4 months ago
redirect will create the file automatically
upvoted 3 times
...
...
...
kenkct
Most Recent 10 months, 1 week ago
sudo su mkdir -p /MNT wget ftp://instructor.example.com/pub/testfile grep 'abcde' testfile > /MNT/answer cat /MNT/answer (to verify)
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago