** 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".
** Directories are hierarchical, so one directory belongs to another. The root directory is the directory at the top of the hierarchy. ** **
** 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 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.
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.
** 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. ** **
Recommended Posts