Locating Your Working Directory - Linux Terminal
00:00
Now that you have the terminal open, how do you know where in the terminal you are? Right. There is a file system that you kind of need to be fairly aware of when working with the terminal, and by default, it kind of has this prompt right here. So with this is, it’s kind of spelling out my name, gahjelle
@
and ducky
is the name of my computer.
00:25
And then there’s a small ~
(tilde) right there, and that just actually points out where we are on the file system. So, so terminals kind of work with this notion of a working directory, and when you run a command, it kind of applies to that directory.
00:39
So at the moment, it’s just my home directory. Okay. We could also just run a quick command to see this. pwd
, which means print working directory.
00:51
And here it spells out a little bit more explicitly that this is my home directory, so you can see my username again right there. Okay, perfect. So the ~
sign shows you that’s your home directory, or your user directory to be more precise, right?
Become a Member to join the conversation.