⌨️pwd
Also known as pwd Command, Print Working Directory, Current Working Directory
A command that prints which folder you are in right now.
Think of it like
Think of it like the dot on a map that says you are here.
Example
Jack runs a script, and it says the file is not found. He types pwd and sees he is in the wrong folder.
Why it matters
Many errors come from running a command in the wrong folder. pwd tells you in one word.
Definition
Example code
console
$ pwd
/home/jack/projectsCommon mistake
Key takeaways
- 1You are here. Prints the current folder.
- 2Full path. Starts from the root.
- 3Check first. Before you blame a missing file.