Command line tools

pwd

pwd: print working directory.

The pwd command is used to print the current working directory. It shows the full path of the directory you are currently in. This command is helpful when navigating through the file system, as it allows you to keep track of your current location.

Examples

Linux/macOS

In this example, pwd prints the full path of the current working directory, which is /home/user/project:

pwd
Result:
/home/user/project

Windows (PowerShell)

PowerShell's pwd command outputs the current working directory in a slightly different format, showing the label Path, followed by the directory path:

pwd
Result:
Path
----
C:\Users\user\project
© 2024-2025 GitByBit.All rights reserved.

Hi! I'm Alex, creator of GitByBit.

And this is Gitopedia—a reference that summarizes knowledge in my Git course.

Gitopedia is designed to be a personal knowledge base. When you progress through the main Git course in VS Code, you unlock all of these topics, one by one, bit by bit. This gives you time to digest the information and gradually build the mental model of Git. Here's an example of how it works:

Learning directly in VS Code lets you practice Git exactly as you would in real life, doing real jobs, writing real code. In addition, the course has access to your actual terminal, so it can point out mistakes, suggest workarounds, etc.

The course is FREE, there are no Ads or other bullshit. There are optional premium add-ons you can purchase, mainly to support my work (regrettably, I have to eat every day), but that's totally up to you.

Learn Git in VS Code