Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Computer Fundamentals (Mac)!
You have completed Computer Fundamentals (Mac)!
Preview
Learn how to interact with your files and navigate your folders.
Moving Files
- Copying will keep a file in the current location and then add another file to the new location (end with 2 files in 2 locations)
- Moving will move the file from the current location to the new location (end with 1 file in 1 location)
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
Welcome back.
0:00
We're going to focus on
a few things in this video.
0:01
But let's start off with file paths.
0:04
File paths are kind of addresses to
where your files are on your computer.
0:07
You'll need to know how to find
your files when opening them in,
0:13
say another program, or
accessing them through the terminal.
0:17
We'll get into that more later on.
0:22
First, let's figure out
what file paths are.
0:24
I'm here in Documents again.
0:28
I find the easiest way
to visualize file paths
0:31
is to change the view
to this Columns view.
0:34
Now as I click into this first folder,
0:40
you can see that there was a file inside
of that folder called index.html.
0:43
If I had another folder, And
0:49
let's say I'm just gonna copy, Paste,
0:57
And you can see once I click into this
new folder, then there's a file inside
1:07
of that folder and
it can just keep going on and on and on.
1:11
So for instance,
the navigation that we have to get
1:15
to this index.HTML file is
to go to Documents, and
1:19
then click inside of my folder here.
1:24
And then click inside of new folder,
and then your file index.HTML.
1:28
So the path is Documents > myFolderHere
> new_folder > index.html.
1:34
Moving backwards, this index.html
1:43
files file path would be Documents >
1:48
myFolderHere, and then index.html.
1:53
So it just kind of works
your way down the tree.
1:57
Another common question
in regards to files
2:02
is where your downloaded files end up.
2:06
We're going to navigate out of Documents
and right below it into Downloads.
2:09
This is a separate folder on your computer
where your downloaded files will appear.
2:17
So anything you download from
your browser like Google Chrome,
2:23
Firefox, or Safari,
will all end up in this folder.
2:28
To move files out of this folder and
into your documents,
2:32
you can either right-click them, copy
them, go into Documents, and then paste.
2:37
Or let me delete this one because
we already have a file here.
2:47
Or you can click and drag your file
into your Documents, and there it is.
2:53
And just like you can drag from
your Downloads into your Documents,
3:02
if I wanted this file to go into my
folder, I can just click and drag.
3:07
And now if I click this little arrow,
3:12
you can see I now have two index
files inside of that folder.
3:15
And then similarly,
if I wanted to move it into this folder,
3:20
just click and
drag to where it needs to go.
3:24
Finally, I wanted to show you how to
find files when trying to open them in
3:30
another program.
3:35
If you're joining us as a part
of your coding journey,
3:36
you might end up using something
like Visual Studio Code.
3:40
When I open the program it prompts me
to create a new file or open a folder.
3:44
What we want to do is open a folder,
3:50
we want to go double-click
into our Documents.
3:53
And I'm just gonna ing to say let's
double-click here into myFolderHere,
3:58
so that we can get to
this index.html file.
4:03
And then I can hit Open,
And now, you can see
4:06
I still have access to that other folder
with those other two files inside of it.
4:12
And I've access to our index.html
file here in Visual Studio Code.
4:17
This same process will be
incredibly similar with any
4:23
other program that needs to
open a file on your computer.
4:27
In the next video we'll
look at working with zips.
4:31
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up