지식

[Linux] 디렉토리 구조

고구마맨 2023. 11. 13. 08:50
반응형

■ 디렉토리(Directory) 구조

 - 운영체제의(OS : Operating System)의 파일 관리 구조인 디렉토리는 사용자가 생성해서 파일을 저장하고 사용할 수 있다. 리눅스를 설치하면 기본으로 생성되는 디렉토리들이 있으며 해당 디렉토리들은 쓰임이 정해져 있다. 모든 디렉토리는 루트(Root ./) 디렉토리를 기반으로 bin, boot, dev, etc, home, lib 등등 여러 디렉토리가 생성된다.

 

 ■ 디렉토리의 종류

 - 기본 디렉토리

 1) bin : Common program, 기본적인 실행파일을 가지고 있다.

 2) boot : Kernel and other boot files, 리눅스 부트 프로그램인 LILO 파일을 가지고 있다.

 3) dev : Device files, 장치 파일 모음

 4) etc : Configuration files, 환경설정에 관련된 파일을 가지고 있다.

 5) home : User's home directory, 사용자 홈 디렉토리

 6) lib : Shared libraries, C 라이브러리

 7) lost+found : Damaged files

 8) mnt : Mounted file systems, 임시 마운트용 디렉토리

 9) proc : Directories and files that report systems status, 시스템 정보를 가진 가상 디렉토리(실행 중인 리눅스 정보를 가지고 있는 디렉토리로 CPU 및 메모리 사용량, 파티션 정보, 입출력 DMA 등과 같은 정보와 OS 정보를 가지고 있다.)

 10) root : The root user's home directory

 11) sbin : system administration programs, 시스템 관리용 실행파일

 12) tmp : Temporary files, 임시파일 

 13) usr : 어플리케이션이 설치되는 디렉토리

 14) var : Log file, spool files, and other dynamic files, 시스템에서 운영되는 임시파일 및 로그파일

 

 

반응형