How Do I Display the Current Working Directory in Unix?
Contents

To determine the exact location of the current directory at a shell prompt and type the command pwd. This example shows that you are in the user sam’s directory, which is in the /home/ directory. The command pwd stands for print working directory.

How do I display the current directory in Unix?

To get the current working directory use the pwd command.

How do I get the current working directory in Linux?

To display the location of your current working directory, enter the command pwd.

David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest