리눅스

디렉토리 구조

wintertreey 2025. 6. 4. 18:17

https://opentutorials.org/course/2598/14205

 

 

잘 쓰이는 것 위주로 정리

/ 최상위(루트) 디렉토리
/bin binary(이진 실행파일)의 줄임말. 기본적인 명령어가 모두 여기에 존재.
/etc 설정 파일을 두는 디렉토리.
/var 로그 파일들이 다양하게 생성되고 또 수정(추가)된다. 즉 가변적, 용량이 늘어나는 디렉토리.
보통 /var에 두기 보다는 따로 폴더(디렉토리)를 만들어 관리한다.
/home 사용자들의 홈디렉토리가 있는 곳. 
사용자 추가시 사용자id와 동일한 디렉토리가 자동으로 생성. 예) /home/john

 

 

그 외 참고

/dev 기계 장치 관련 디렉토리. ex) usb, printer
/proc pid 번호 등 커널 관련 정보가 저장
/tmp 임시 파일 저장. 컴퓨터를 껐다 키면 날라감. 

 

 

상대경로

.  현위치

. . 한단계 상위 디렉토리

~ 현 사용자의 디렉토리로 이동

 

 

 

 

 

심볼릭 링크

예시.bin -> usr/bin/

 

 


https://inpa.tistory.com/entry/LINUX-%F0%9F%93%9A-%EB%A6%AC%EB%88%85%EC%8A%A4-%EB%94%94%EB%A0%89%ED%86%A0%EB%A6%AC-%EA%B5%AC%EC%A1%B0

 

🐧 리눅스 디렉토리 구조 한눈에 정리

리눅스 파일의 종류 리눅스는 유닉스 계열을 바탕으로 만들어진 오픈소스 운영체제이다. 그래서 유닉스와 마찬가지로 모든 것들을 파일로 관리한다. 리눅스의 경우 계층구조(트리구조)의 디렉

inpa.tistory.com

https://www.thegeekstuff.com/2010/09/linux-file-system-structure/

 

Linux Directory Structure (File System Structure) Explained with Examples

Linux Directory Structure (File System Structure) Explained with Examples by Ramesh Natarajan on September 8, 2010 Have you wondered why certain programs are located under /bin, or /sbin, or /usr/bin, or /usr/sbin? For example, less command is located unde

www.thegeekstuff.com