Windows: open Start, type PowerShell, and select it. macOS: press Command + Space, type Terminal, and press Return. Linux: search the app menu for Terminal.
Command
pwdpwdmeans “print working directory”.- It displays the current folder’s full address.
/home/mayaWindows PowerShell may display a path such as C:\Users\Maya.
Command
lslsmeans list.- It shows names inside the current directory.
Desktop Documents DownloadsPowerShell, macOS, and Linux all understand ls. Your names will differ.
Command
cd Documentscdmeans change directory.- The space separates the command from its destination.
Documentsis the folder to enter.
(no output)A successful directory change is normally silent. Run pwd separately to confirm.
Tiny Practice
Enter your Documents folder from a fresh home-directory prompt.
Starter template
cd CHANGE_ME- The command is ready.
- Only the folder name is missing.
(no output)The starter is incomplete, so do not expect it to run successfully until you replace the missing part.
Hint
- Use the common folder name Documents.
- Match its capital D.
- Success normally prints nothing.
Show Solution
Solution command
cd Documents- Change directory selects a new working folder.
- Documents is the destination.
(no output)Silence normally means success; use pwd afterward if unsure.