Which Linux command is used to display the current working directory?

2025

Which Linux command is used to display the current working directory?

Answer: C. pwdAnswer: pwd. The pwd command prints the absolute pathname of the current working directory. It helps a user confirm the directory from which relative paths…

  1. A.

    dir

  2. B.

    cd

  3. C.

    pwd

  4. D.

    ls -l

  5. E.

    whoami

Attempted by 107 students.

Show answer & explanation

Correct answer: C

Answer: pwd. The pwd command prints the absolute pathname of the current working directory. It helps a user confirm the directory from which relative paths and file operations will run. The other commands either list files, change directories, or show the current user.

Explore the full course: Niacl Ao It Specialist

Loading lesson…