exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 180 discussion

Actual exam question from CompTIA's XK0-005
Question #: 180
Topic #: 1
[All XK0-005 Questions]

DRAG DROP
-

You have been asked to parse a log file of logins to determine various information about who is logging in and when.


INSTRUCTIONS
-

Open and inspect the Login log file.

Drag and drop the correct commands onto the output that was generated from that
command.

Tokens can be used only once and not all will be used.

If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.

Show Suggested Answer Hide Answer
Suggested 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
dsmitd33
5 months, 1 week ago
can we please get further explanation on this question?
upvoted 1 times
NastyNutsu
2 months ago
sure, 1. grep "Mar 13" log.txt -- printout only line that contain "Mar 13" from log.txt file 2. tr '[a-z]' [A - Z]' < log.txt | grep -i "mar 12" -- notice that there are only 2 "tr" options to choose from, and '[a-z]' '[A-Z]' mean translates all lowercase to UPPER case. 3. awk '{print $1}' log.txt | sort | uniq -- printout the first column ($1) from the log.txt file, which happen to be the name field -- sort by the ($1) name field. -- only display unique name (no duplicate name) of the ($1) name field
upvoted 2 times
...
...
DRVision
1 year, 4 months ago
grep "Mar 13" log.txt tr "[a-z]" "[A-Z]" < log.txt | grep -i "mar 12" awk '{print $1}' log.txt | sort | uniq
upvoted 4 times
...
Damon54
1 year, 7 months ago
output 2 , maybe it's not better to grep -i "mar 12" log.txt | sed 's/[a-z]/[A-Z]/g'. , the tr command should be with ' and not " so tr '[a-z]' [A-Z]' < log.txt | grep -i "mar 12"
upvoted 1 times
...
Damon54
1 year, 8 months ago
pls help me THX
upvoted 3 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