Contents
Chapter 3 · SoftwarePractice

LEARN WITH HARU

Video Lesson တွေက Haru အတန်းသားတွေအတွက်ပါ

Haru ရဲ့ ITPEC FE Full Course မှာ ယခု သင်ခန်းစာတွေကို တစ်ခုချင်း တစ်ကြောင်းချင်း အသေးစိတ်ရှင််ရှင်းပြထားပါတယ်

အခြေခံ မရှိတဲ့ ကျောင်းသားများစွာဟာလည်း ဒီ Course နဲ့ ပဲ အောင်မြင်ကုန်ကြပါပြီ

အတန်းမအပ်သေးပဲ Haru ဆီမှာ အစမ်းသင်ကြည့်ချင်ပါသလား?

သင်တန်းသားတွေရဲ့ စကားသံများ

သင်တန်းသားတွေရဲ့ စကားသံများ

Highlighted text? Practice this concept. Highlighted passages and figures open related questions.

Practice related questions (1)Progress & bookmarks

Current section

4-4 File Management in Small Computers

p. 235

Progress

Not marked complete

Related questions in this lesson 1

Absolute and relative file paths1
Progress and bookmarks

p. 235

4 - 4 File Management in Small Computers

The explanation so far mainly covered files on large general-purpose computers. From here, the explanation will cover file management in the OS (e.g., Windows, UNIX) of a small computer (e.g., PC).

4-4-1 File Systems

A file system is a mechanism that manages files that are stored on auxiliary storage media such as a hard disk drive. A different file system is provided by each OS, and a typical example is the FAT (File Allocation Tables) file system that is used in Windows-family OSs. In a FAT file system, a hard disk is called a volume, and a volume is divided into units called clusters (or hard disk sectors are grouped) for management. File input/output is performed as a batch in units of clusters, so the role of software is to identify these as records or items. FAT32 is a typical file system, which uses a cluster identifier with 32 bits to divide a volume into 232 clusters. But currently, NTFS (NT File System) is widely used, because the size of HDD has become large and the maximum volume size of NTFS is designed to be large. Other typical file systems except for the Windows OS are shown below.

p. 236

Original textbook callout or table. Source text: File system name Supported OSs Notes UFS (Unix File System) UNIX-family Divided into partitions HFS (Hierarchical File System) Mac OS HFS+ is also used on iPods.
p. 236 · Enlarge

4-4-2 Directory Management

The OS of a small computer manages files hierarchically in a tree structure. In UNIX, the whole file system is managed as a single tree. In this system, a directory is used to group multiple files in the higher hierarchy. In order to create a hierarchical structure, a directory at the highest level is necessary. This is called a root directory. Some files are stored in the root directory, but handling all files at the same level leads to complex management. Therefore, directories (called subdirectories) that group related files into a directory are created beneath the root directory. Beneath a subdirectory, files or other subdirectories can be created. Figure 3-15 is a hierarchical structure diagram that shows an example of the hierarchical management of files.

Directory tree: root backslash has files F1,F2 and directories D1,D3. D1 contains F3 and directory D2; D2 contains F4,F5. D3 contains F6,F7. Grey boxes denote directories; white boxes denote files. Source text: Figure 3-15 Hierarchical structure diagram for files
p. 236 · Enlarge

In a hierarchy, a user can only see beneath the directory (called the current directory) that they are currently using. In this example, if the current directory is the root directory, the user can see only F1, F2, D1, and D3. Therefore, in order to manage the files beneath a subdirectory, the user must change the current directory. For example, if the user wishes to use F3, the current directory must be changed to D1. However, changing the current directory each time requires excessive actions, so files are referenced with the two methods below that specify a path (i.e., route). A path that references a file is sometimes called reference information.

Original textbook callout or table. Source text: • Absolute path: specifies the route from the root directory. • Relative path: specifies the route from the current directory.
p. 236 · Enlarge
Absolute and relative file paths · 1 practice questions

p. 237

Original path worked example: when current directory is D2, target F3 has absolute path backslash D1 backslash F3 and relative path dot dot backslash F3. Parent-directory and root/separator notation and the full explanation remain together. Source text: Example: In Figure 3-15, what is the absolute path and the relative path to specify F3 when the current directory is D2? Here, “..” indicates the parent directory. “\” indicates the root directory when it is at the top of a path and a separation when it is in the middle. Absolute path: \D1\F3 (root directory → D1 → F3) Relative path: ..\F3 (current directory D2 → parent directory D1 → F3)
p. 237 · Enlarge

Furthermore, in the case of a multi-user computer, file management for each individual user is required. As a directory for this purpose, a home directory and a desktop directory are used. The current directory after login when the OS is started is called the home directory. This is the highest level in which general users can perform actions, such as saving files. When a user logs in, a dedicated desktop for that user is displayed. The management information for this is stored in the desktop directory.

4-4-3 File Sharing

File sharing is a mechanism to enable multiple users to use a single file. By setting the right to access a file (i.e., file reference permission) for files stored on a file server or NAS (Network Attached Storage), it is possible to make a file available as shared file. In NAS storage, file systems that support multiple protocols are embedded, so file sharing between different OSs or between different types of servers can be easily performed. If a file search function provided by an OS or other software is used, it is possible to search for desired files including shared files, just by specifying part of a filename or the date of the last update.

4-4-4 Symbolic Links

A symbolic link is a function that assigns a different name to a file or directory in the file system of a Unix-family OS. It allows a user or application to handle it in the same way as the actual file. From the perspective of the user or application, it is the same as handling the original file. Through a symbolic link, access to the file or directory can be performed. The same type of function is provided as a shortcut in Windows, and an alias in Mac OS.

4-4-5 Folders

In a Windows-family OS, file manipulation is also performed in a GUI environment. In other words, a file to be used is not specified as a path but is specified by selecting an icon. In this case, the name folder is used instead of directory. Since it is possible to create a folder

p. 238

inside a folder, the user must select folders until the desired file is displayed. In other words, by selecting folders to switch windows, the user changes the current directory. Folders can also be shared in the same way as files.

Original GUI screenshots: Folder1 contains Folder2 and Folder3. A right-pointing Selection of folder 2 arrow leads to the Folder2 window showing Folder4 and File1.txt. Source text: Figure 3-16 GUI environment file management (folder)
p. 238 · Enlarge

Section progress

Original chapter exercises

Original chapter exercises →

New FE Textbook Vol.1 · IT Fundamentals · First Edition, April 2015