nerdexam
LPI

117-010 · Question #72

When creating a new file, what can be done to make the file hidden from the default output of the ls command?

The correct answer is B. Hide the file with a name beginning with a period like .foobar.txt. See the full explanation below for the reasoning.

Question

When creating a new file, what can be done to make the file hidden from the default output of the ls command?

Options

  • AHide the file with a name commented out with a hash sign like #foobar.txt.
  • BHide the file with a name beginning with a period like .foobar.txt.
  • CHide the file with chvis +h filename.
  • DHide the file with chmod a+h filename.
  • EHide the file with hide filename.

How the community answered

(34 responses)
  • A
    9% (3)
  • B
    82% (28)
  • C
    6% (2)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 117-010 Practice