Bu'aan kutaa 12ffaa ba'eera; bu'aa kee eessatti akka ilaaltu

Boqonnaa 1 Teeknooloojii Odeeffannoo kutaa 10

Absolute or relative: two ways to write a file path

daqiiqaa 4 · Gaaffii qormaata darbe 2 hojjetaman

Kutaalee barnootaa

Barnoota achii jalqabee taphachiisuuf kutaa tokko tuqi.

Barnoota viidiyoo Temari daqiiqaa 4 boqonnaa 1 Teeknooloojii Odeeffannoo kutaa 10: Absolute or relative: two ways to write a file path. Barnoonni kun Afaan Ingiliziitiin.

Dabalata boqonnaa 1

Fuulli boqonnaa kanaa wanta Temari boqonnaa kana irratti qabu kan hafe qaba, fakkeenyaaf yaadannoo gabaabaa fi gaaffii shaakalaa deebii isaanii waliin.

Fuula boqonnaa 1 bani

Wanta barnoonni jedhu hunda

Jechoota barnootaa kutaa kutaan. Barnoota achii jalqabee taphachiisuuf yeroo tuqi.

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 1Qormaata darbe

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 2Qormaata darbe

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.

Boqonnaa kana appii keessatti shaakali

Temari boqonnaa kana gara shaakala yeroon daangeffametti jijjiira; utuu hojjettuu ni sirreessa; wanti si hin galinis barsiisaa AI tiin ni ibsama.

Bilisaan jalqabi

Temari.et appii Android qaba; Google Play irratti bilisaan argama.

SeeniHerrega kee bani