코딩과로그

TIL> 리눅스 디렉토리 구조 본문

Devops/TIL

TIL> 리눅스 디렉토리 구조

피리음 2023. 3. 9. 13:25

이미지 참조: https://coding-factory.tistory.com/499

리눅스의 구조에 대해서 찾아보았다.

아래와 같이 내용이 나왔으며, 

더보기

The Linux directory structure is hierarchical, and it starts at the root directory, which is represented by a forward slash (/). The following are the main directories and their subdirectories:

  1. /bin - Contains essential binary files, such as system utilities like ls, cp, mv, etc.
  2. /boot - Contains files required for booting the system, such as the kernel, initramfs, and boot loader files.
  3. /dev - Contains device files for all the hardware devices connected to the system, such as hard drives, USB devices, and network interfaces.
  4. /etc - Contains configuration files for the system and applications.
  5. /home - Contains the user's home directories.
  6. /lib - Contains shared library files that are used by the system and applications.
  7. /media - Contains mount points for removable media, such as CDs, DVDs, and USB drives.
  8. /mnt - Contains mount points for temporary filesystems, such as network shares or mounted filesystems.
  9. /opt - Contains optional software packages that are installed on the system.
  10. /proc - A virtual file system that provides information about the running processes and system resources.
  11. /root - The home directory of the root user.
  12. /run - Contains runtime data for system services.
  13. /sbin - Contains essential system binaries that are generally only used by the system administrator.
  14. /srv - Contains data files for services provided by the system.
  15. /sys - A virtual file system that provides information about the system's hardware devices and their drivers.
  16. /tmp - Contains temporary files that are created by the system and applications.
  17. /usr - Contains non-essential binaries, libraries, and documentation.
  18. /var - Contains variable data files, such as log files, mail spools, and databases.

/dev 와 /boot 가 눈에 띄었다. 내 컴퓨터는 우분투인데, 내 disk 설정을 보면 다음과 같이 /dev 와 /boot가 있었다.

 

/dev 와 /boot 폴더의 역할이 이제 좀 이해가 되었다.