16.2 Management of Directory and File
16.2.1 Creating Directory
In the Raspberry Pi system, all data is stored in a directory, so the directory must be created before saving the data.
16.2 Management of Directory and File
16.2.1 Creating Directory
In the Raspberry Pi system, all data is stored in a directory, so the directory must be created before saving the data.
16.1.4 Special Directory and Special File
16.1.4.1 Hidden File
On Linux, directory or files that begin with a “.” are considered hidden. These files are usually configuration files and temporary files that are created by various applications for various purposes. These are managed by assigning a hidden attribute in order to distinguish it from ordinary data and not to be seen in daily routine work.
16.1.3 Specifying Paths for Directory and File
There are two ways to specify the path to a directory or file in Linux, depending on the start position described when specifying the path. One is an absolute path method starting from “/” (root directory), and another one is a relative path method based on the current working position.
16.1.2 Naming Rules for Directory and File
When naming directory and file, the rules below should be followed:
■ It is case sensitive, and lowercase is recommended by default
■ It is recommended to use only alphanumeric characters, hyphen (-), and period (.).
■ It is not recommended to use *, &, |, ” “, $, blank, and so on.
Chapter 16 File Management
Chapter’s Main Topics
This chapter explains various methods of managing directorys and data stored in the system. Here we will explain how to handle in the Shell Terminal, and how to handle through the window.
It includes descriptions on the following topics:
■ basic structure of directory and file
■ Management of directory and file
■ Utilization of directory and file
■ Management of text file
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.