Raspberry Pi_Eng_16.1.1 Concept of Directory and File


Published Book on Amazon


All of IOT Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 1
All of IOT Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 2


출판된 한글판 도서


최신 라즈베리파이(Raspberry Pi)로 시작하는 사물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (상)
최신 라즈베리파이(Raspberry Pi)로 시작하는 사물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (하)


Original Book Contents


16.1   Basic Structure of Directory and File

 

16.1.1  Concept of Directory and File

 

16.1.1.1    Folder or Directory

 

Directory does not have any specific data on its own, but is used to manage files that have specific data. Directory is used to improve the efficiency of use by classifing and storing a large number of files and facilitating searches later.

 

This directory is referred to as "directory" in the Shell Terminal and "folder" in the window, and in reality they are the same and have no difference.

 

These directorys are organized in hierarchical structure and manage data within them. When expressing hierarchical structure, "/" is used to represent the hierarchical structure in a sequential manner. For example, "/Home/pi/testdata" indicates that there is a "pi" directory in the "Home" directory and a directory/file "testdata" is in it.

 


 

16.1.1.2    File

 

The files are stored in a specific directory and contain a certain data for specific purposes.

 

The specific location of a file included in a specific directory is determined by using a directory path in a hierarchical structure including the file. When expressing a file specifically, the file is express in <directory path/filename> format by using "/". For example, when referring to "DebianManual.txt" file in "/home/pi/testdata" directory, the file is refered to in the format "/home/pi/testdata/DebianManual.txt".