Skip to content

Files and Folders

Working in the shell requires you to understand how the files on your computer are organised.

Illustration of file systems

Example

The following illustrates how we can move and work with files and folders in the shell.

Terminal window
# move into the /c/Users/andrew/Documents/ folder
cd /c/Users/andrew/Documents
# Now we are in the Documents folder...
# move into the /c/Users/andrew/Documents/Code folder
cd Code
## Move back to /c/Users/andrew - the parent of the parent folder
cd ../..