☰ Contents · Computing

Files and folders

Lessons 12 · 1 lessons · B. Boltayev, A. Azamatov, A. Asqarov, M. Sodiqov, G. Azamatova. Fundamentals of Informatics and Computer Technology, Grade 8. Second edition. “O‘zbekiston milliy ensiklopediyasi” State Scientific Publishing House, Tashkent, 2015
12

Files and folders

Textbook: pp. 55–60
GoalKnows the ideas of file, file name and extension, folder (directory), path and file system.
New words
file: a named set of data stored in external memory · faylextension: the part of the name after the dot that shows the file type, e.g. .docx · kengaytmafolder (directory): a named place that holds files and other folders · katalog (papka)path: the sequence of folders leading to a file, written with backslashes · faylga borish yo‘li
Explanation

A file is a set of data stored in external memory under a name; on a disk data can be stored only as files. A file name has two parts separated by a dot: the own name and the extension (.txt – text, .docx – Word document, .xlsx – spreadsheet, .jpg and .png – pictures, .mp3 – audio, .mp4 – video, .pdf, .zip – archive, .exe – program). The characters \ / : * ? " < > | cannot be used in a name, which may be up to 255 characters; in Windows names such as CON, PRN, AUX, NUL, COM1 and LPT1 are reserved. Folders (directories) group files; they can hold other folders, so a layered, tree-like structure appears. Two files with the same name cannot be in one folder, but can be in different folders. To find a file we write the sequence of folders from the disk – the path, for example D:\Maktab\Informatika\Hisobot.docx. The file system (NTFS, FAT32, exFAT) defines how data is placed on the disk; a file is stored in clusters, so the space it takes is rounded up to a multiple of the cluster size. Before opening an unknown file, especially .exe, scan it with an antivirus, and switch on the display of extensions: “rasm.jpg.exe” is really a program.

Worked examples
Path: D:\Maktab\Informatika\Hisobot.docx – drive D, the folder Maktab inside it, the folder Informatika inside that, and the file Hisobot.docx. The full name is the path plus the file name.
Clusters: if a cluster is 4096 bytes, a file of 10,000 bytes takes 3 clusters (3 · 4096 = 12,288 bytes), because 2 clusters (8192 bytes) are not enough.
Class activity

“File detectives”: the teacher hands out 10 cards with file names (for example qo‘shiq.mp3, jadval.xlsx); groups identify the type from the extension and find wrongly written names.

Practice
1
Which file name is valid: “Hisobot_8A.xlsx” or “Hisobot*8A.xlsx”? Why?
2
In the path C:\Rasmlar\Bahor\gul.png name the file, its folder and its drive.
3
If the cluster is 4096 bytes, how many bytes of space does a 5000-byte file take?
4
Why is it dangerous to open a file called “rasm.jpg.exe”?