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.2 Management of Directory and File
In the Raspberry Pi system, all data is stored in a directory, so the directory must be created before saving the data.
To create a directory in Shell, you can use the following command.
mkdir [OPTION] <directory>
■ This creates a directory at the specified location.
■ User privilege -- Normal user.
When specifying a directory, you can specify the path where the directory will be created. If you do not specify a path, it will work in the current directory.
display this help and exit
If you create a directory as follows and check it, you can see that the directory is created.
pi@raspberrypi ~ $ mkdir ./testdata/TestFolder01
pi@raspberrypi ~ $ ls ./testdata/ -l
drwxr-xr-x 2 root root 4096 Mar 24 02:26 manual01
drwxr-xr-x 2 pi pi 4096 Apr 10 02:54 TestFolder01
-rwxrwx--- 1 pi pi 18 Mar 24 02:10 user_guide01.txt
18.104.22.168 Processing in Desktop Window
You can easily create folders using the [File Manager] in Desktop window.
Run the program and select the working folder you want to create the folder in the Directory Tree on the left. In this case, we will work with the "testdata" folder. Then, you can do the same thing by selecting menu File à Create New àFolder, or using the menu Create New à Folder from the popup menu that appears when you click right-mouse button on the right screen of the selected working folder.
Figure 16‑1 Create folder in Desktop window
Then, a pop-up screen to specify a name for the new folder appears. If you enter the desired folder name here and continue processing, the desired folder is created.