GK Question

technology medium mcq

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

  1. ls
  2. cd
  3. pwd
  4. dir

Answer: pwd

pwd (print working directory) displays the absolute path of the current directory in Linux/Unix systems. ls lists directory contents, cd changes directory, and dir is a Windows command. Essential for navigation and scripting in command-line environments frequently tested in SSC JE and Railway exams.

Topic Operating Systems
Exam Relevance SSC JE, Railway, Banking IT