exam questions

Exam CFR-310 All Questions

View all questions & answers for the CFR-310 exam

Exam CFR-310 topic 1 question 52 discussion

Actual exam question from CertNexus's CFR-310
Question #: 52
Topic #: 1
[All CFR-310 Questions]

A Linux administrator is trying to determine the character count on many log files. Which of the following command and flag combinations should the administrator use?

  • A. tr -d
  • B. uniq -c
  • C. wc -m
  • D. grep -c
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
044f354
2 months, 4 weeks ago
Selected Answer: C
C. wc -m Explanation: The wc (word count) command in Linux can be used to count characters, words, and lines. The -m flag specifically counts the number of characters in a file, which is what the administrator needs. Why the other answers are incorrect: A. tr -d: The tr command is used to translate or delete characters, but it doesn't count characters. B. uniq -c: The uniq command is used to filter out repeated lines in a file, and the -c flag counts the occurrences of each unique line, not characters. D. grep -c: The grep command with the -c flag counts the number of matching lines, not the number of characters.
upvoted 1 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