[RUBY] Directory type

directory

** A directory is a container for files to organize multiple files on your computer. Simply put, it's a folder. ** **

There are several types of directories. This time, I will explain "root directory", "current directory", and "home directory".

アイコン.png

アイコン2.png

Root directory

** Directories are hierarchical, so one directory belongs to another. The root directory is the directory at the top of the hierarchy. ** **

top.png

Current directory

** The directory you are currently working on in your terminal is called the current directory. At the terminal, commands are issued to the PC based on this. The current directory was displayed as ~ in the terminal earlier. ** **

In the terminal, move the working directory and execute commands as needed. The directory pointed to by the current directory changes each time you move.

Home directory

** Home directory is the directory you are working on when you launch a new terminal. The default home directory on Mac is / Users / username, which is represented by ~ in the terminal. ** **

Let's check the terminal screen from these explanations.

ターミ.png

Since the current directory is ~ on this screen, The directory you are currently working on, that is, the current current directory It means that you are pointing to your home directory.

Summary

** A directory is a container for files to organize multiple files on your computer. The home directory is the directory you are working on when you start a new terminal. The current directory is the directory you are currently working on in your terminal. ** **

that's all

Recommended Posts

Directory type
Pass type
Human type
Java type conversion
[Swift] Type type ~ Enumeration type ~
[JAVA] Stream type
Java Optional type
Chart type Ruby
UITextField event type
Java-automatic type conversion
[Swift] Type type ~ Structure ~
java directory creation
Studying Java-Part 3-Type