nerdexam
LPI

117-101 · Question #106

The file myfile.txt contains the following data: joe:x:100:100:Joe:/home/joe:/bin/bash mike:x:101:101:Mike:/home/mike:/bin/sh kevin:x:102:102:Kevin:/home/kevin:/bin/sh…

The correct answer is B. home. See the full explanation below for the reasoning.

Question

The file myfile.txt contains the following data: joe:x:100:100:Joe:/home/joe:/bin/bash mike:x:101:101:Mike:/home/mike:/bin/sh kevin:x:102:102:Kevin:/home/kevin:/bin/sh matt:x:103:103:Matt:/home/matt:/bin/sh What output will be displayed on the screen when the following command is executed: grep -o home myfile.txt

Options

  • ANo output will be displayed on the screen
  • Bhome
  • C/home/joe
  • Djoe

How the community answered

(39 responses)
  • A
    3% (1)
  • B
    77% (30)
  • C
    15% (6)
  • D
    5% (2)

Community Discussion

No community discussion yet for this question.

Full 117-101 Practice