Locating Your Working Directory - Windows Terminal
00:00 Now with the Windows Terminal open, where are we on your system right now? Good question. So we are in a folder. Now, when I say in, I just mean that that is our current working directory.
00:11
We’re not physically inside a folder or anything, but the path which is set as the current working directory is the C:\
drive. RealPython\
is the directory, and I’m in that directory right now. Okay, and is there a command to quickly see where we are? Right.
00:30
Usually on Windows, you don’t need to because the prompt by default will show you where the path is. But there is a pwd
(print working directory) command, which will show you the current path that you’re at.
00:43 It’s just a way to locate yourself and different paths for files, because you’re usually working with files, right? And if you want to operate on a certain file, you need to know where that is relative to where you are.
00:56 And so that’s why you are in a folder, like when you open Windows Explorer, and you see the contents of a folder, the folder that you see the contents of is your current working directory.
Become a Member to join the conversation.