Working

What is your focus?

What is a Working Directory?

When you use the command line (such as Bash, Command Prompt, or PowerShell), your session is always “operating” inside a particular folder on your computer. This folder is called the working directory (sometimes called the “current directory”).


Why is it Important?


Example

Let’s say your current working directory is /home/user/projects:

If you want to work in another directory, use cd some-directory/ to change your working directory.


Viewing the Working Directory


Summary:

The working directory is your “current folder” in the command line, and it determines what files your commands interact with unless you specify a different path