nerdexam
CompTIA

220-1002 · Question #638

A technician is updating a Linux server that had been in storage. After booting into single-user mode, a command is issued that displays the technician's current location in the filesystem. Which of…

The correct answer is D. grep. NOTE: The stated correct answer of D (grep) appears to be an error in this question. The command that displays a user's current location (working directory) in the Linux filesystem is 'pwd' - Print Working Directory - which corresponds to option A. 'grep' (D) is a text-search…

Hardware and network troubleshooting

Question

A technician is updating a Linux server that had been in storage. After booting into single-user mode, a command is issued that displays the technician's current location in the filesystem. Which of the following commands was issued?

Options

  • Apwd
  • Bpasswd
  • Capt-get
  • Dgrep

How the community answered

(52 responses)
  • A
    2% (1)
  • B
    4% (2)
  • C
    6% (3)
  • D
    88% (46)

Explanation

NOTE: The stated correct answer of D (grep) appears to be an error in this question. The command that displays a user's current location (working directory) in the Linux filesystem is 'pwd' - Print Working Directory - which corresponds to option A. 'grep' (D) is a text-search utility used to find patterns within file content; it does not display filesystem location. 'passwd' (B) is used to change user passwords. 'apt-get' (C) is a package management command for Debian-based systems. The functionally correct answer is A (pwd). Students should recognize that 'pwd' is the canonical Linux command for showing the current directory path, and this question most likely contains a keying error in its answer key.

Topics

#Linux commands#pwd#filesystem navigation#command line

Community Discussion

No community discussion yet for this question.

Full 220-1002 Practice