Files and Folders
Working in the shell requires you to understand how the files on your computer are organised.
Example
The following illustrates how we can move and work with files and folders in the shell.
# move into the /Users/andrew/Documents/ foldercd /Users/andrew/Documents# orcd ~/Documents
# Now we are in the Documents folder...# move into the /Users/andrew/Documents/Code foldercd Code
## Move back to /Users/andrew - the parent of the parent foldercd ../..
# move into the /home/andrew/Documents/ foldercd /home/andrew/Documents# orcd ~/Documents
# Now we are in the Documents folder...# move into the /home/andrew/Documents/Code foldercd Code
## Move back to /home/andrew - the parent of the parent foldercd ../..
# move into the /c/Users/andrew/Documents/ foldercd /c/Users/andrew/Documents
# Now we are in the Documents folder...# move into the /c/Users/andrew/Documents/Code foldercd Code
## Move back to /c/Users/andrew - the parent of the parent foldercd ../..