Grade 10 Information Technology unit 1
Absolute or relative: two ways to write a file path
4 min · 2 past exam questions worked through
Parts of the lesson
Tap a part to play the lesson from there.
A 4-minute Temari video lesson on Grade 10 Information Technology unit 1: Absolute or relative: two ways to write a file path. Free to watch, no account needed.
More on unit 1
The chapter's own page holds the rest of what Temari has on it, such as short notes and practice questions with their answers.
Open the unit 1 pageEverything the lesson says
The lesson's words, part by part. Tap a time to play the lesson from there.
0:00Introduction
Every file on a computer has an address, called its path. Your book teaches two ways to write it: the absolute pathname and the relative pathname. They lead to the same file, but they start from different places. Here is how to tell them apart.
0:16Files live in a tree
Your computer keeps files in folders, and folders inside folders. Drawn out, it looks like an upside-down tree. The top folder is called the root directory. Here it is written as a slash.
A folder inside another folder is a subdirectory. The folder above it is its parent, and the one inside is its child. So User_B is the parent of Word, and Word is the child of User_B.
A path is the list of folders you open, one after another, to reach a file. On a Windows computer, it begins with a drive letter, like C. And in a path, the slash separates one name from the next.
0:58The absolute pathname
Now the first way: the absolute pathname. It is the complete name of a file, from the root directory downward.
Start at the root. Open User_B, then Word, then Unit_A, and there is the file ABC. Written out, that is slash User_B, slash Word, slash Unit_A, slash ABC.
Because it starts at the root, an absolute pathname finds the file wherever you are working. And two files may share a name, as long as their pathnames are different.
1:36Practice question 1Past exam
Here is a practice question. What do you call a path that represents the complete name of a directory or file, starting from the root directory downward? Pause the video, and try it.
Complete name, from the root downward. That is your book's definition of the absolute pathname. The answer is D. A is the trap: a relative pathname starts from the folder you are working in, not from the root. A working directory is a folder, not a kind of path. And the slash only delimits, or separates, the names in a path.
2:20The relative pathname
Typing the whole path every time is slow. So there is a second way: the relative pathname.
The folder you are working in is called the working directory, or the current directory. A relative pathname starts from there, not from the root.
Say your working directory is Word. Then Unit_A/ABC is enough to reach the same file. There is no slash at the front, because you do not start at the root.
2:52Practice question 2Past exam
Try this one. A student is working in a folder named Word. To reach a file without typing the full path from the root, they type Unit_A/ABC. Which path method is being used? Pause, and try it.
The student starts from Word, the folder they are working in. A path that starts from the working directory is a relative pathname. The answer is C. A is the trap: an absolute pathname would start at the root, with slash User_B and so on. Master is another name for the root directory, and the root is the top folder. Neither one is a kind of path.
3:39Summary
So remember. Files sit in a tree, with the root directory at the top. An absolute pathname starts at the root, and works from anywhere. A relative pathname starts from your working directory, so it is shorter. Keep practising questions like these on Temari.et.
Practise this unit in the app
Temari turns this chapter into timed practice and marks it as you go, with an AI tutor to explain anything that did not land.
Start freeTemari.et is also an Android app, free on Google Play.

