520 likes | 782 Views
4 장. 솔라리스와 디렉토리. 학습 내용. 디렉토리 트리 파일의 종류 짧게 줄여 쓰는 경로명 디렉토리와 관련된 명령어. 디렉토리 트리. 파일의 효율적인 저장과 검색을 위한 용도로 사용. 디렉토리 트리. 경로명 (pathname) 디렉토리 트리에서 파일과 디렉토리의 위치를 표시 / 기호 경로명을 표시할 때 디렉토리와 하위 디렉토리 또는 디렉토리와 파일의 구분자로 사용 루트 디렉토리를 표시. 디렉토리 트리. 절대 경로명 경로명이 / 기호로 시작 루트 디렉토리가 기준. 상대 경로명
E N D
4장 솔라리스와디렉토리 뇌를 자극하는 Solaris Bible
학습 내용 • 디렉토리 트리 • 파일의 종류 • 짧게 줄여 쓰는 경로명 • 디렉토리와 관련된 명령어 뇌를 자극하는 Solaris Bible
디렉토리 트리 뇌를 자극하는 Solaris Bible 파일의 효율적인 저장과 검색을 위한 용도로 사용
디렉토리 트리 • 경로명 (pathname) • 디렉토리 트리에서 파일과 디렉토리의 위치를 표시 • / 기호 • 경로명을 표시할 때 디렉토리와 하위 디렉토리 또는 디렉토리와 파일의 구분자로 사용 • 루트 디렉토리를 표시 뇌를 자극하는 Solaris Bible
디렉토리 트리 • 절대 경로명 • 경로명이 / 기호로 시작 • 루트 디렉토리가 기준 • 상대 경로명 • 경로명이 / 기호가 아닌 다른 글자로 시작 • 현재 디렉토리가 기준 뇌를 자극하는 Solaris Bible
디렉토리 트리 • 상대 경로명과 절대 경로명의 비교 • 현재 디렉토리 위치에 따른 상대 경로명의 실제 위치 뇌를 자극하는 Solaris Bible
파일의 종류 • 솔라리스에 존재하는 모든 것은 파일로 존재 • 파일 • 디렉토리 • 링크 • 디바이스 파일 • 소켓 • 파이프 • 파일의 구성 요소 • 파일 이름 +i-node + 데이터 블록 뇌를 자극하는 Solaris Bible
파일의 종류 • 일반 파일 뇌를 자극하는 Solaris Bible
파일의 종류 • 디렉토리 뇌를 자극하는 Solaris Bible
파일의 종류 • 디렉토리 • 절대 경로명의 이동 과정 • /usr/ccs/bin/ar 뇌를 자극하는 Solaris Bible
파일의 종류 • 디렉토리 • 상대 경로명의 이동 과정 • ../../../../etc/mail 뇌를 자극하는 Solaris Bible
파일의 종류 • 심볼릭 링크 (소프트 링크) 뇌를 자극하는 Solaris Bible
파일의 종류 • 하드 링크 뇌를 자극하는 Solaris Bible
파일의 종류 • 하드 링크 뇌를 자극하는 Solaris Bible
파일의 종류 • 디바이스 파일 뇌를 자극하는 Solaris Bible
파일의 종류 • 디바이스 파일 뇌를 자극하는 Solaris Bible
파일의 종류 • 파일과 디렉토리 명명 규칙 • 반드시 지켜야 하는 규칙 • 최대 255자 • /기호를 제외한 모든 글자 • 지키면 편한 규칙 • 알파벳, 숫자, 하이픈(-), 밑줄(_), 점(.) 만 사용 • 공백(), *,&,|,",', `, ~, #, $, (, ),\, ;, <, > 기호는 사용하지 않기 • 알파벳 소문자만 사용 • 점(.)으로 시작하지 않기 뇌를 자극하는 Solaris Bible
짧게 줄여 쓰는 경로명 • 와일드 카드 (wild card) • 디렉토리나 파일명으로 구성된 경로명을 아주 짧게 표현 • 한꺼번에 여러 개의 디렉토리나 파일명을 표현 • 여러 종류의 와일드 카드를 섞어서 사용 뇌를 자극하는 Solaris Bible
짧게 줄여 쓰는 경로명 • Dot(.) • 현재 디렉토리 뇌를 자극하는 Solaris Bible
짧게 줄여 쓰는 경로명 • Dot dot(..) • 상위 디렉토리 (부모 디렉토리) 뇌를 자극하는 Solaris Bible
짧게 줄여 쓰는 경로명 • Tilde (~) • 사용자의 홈 디렉토리 뇌를 자극하는 Solaris Bible
짧게 줄여 쓰는 경로명 • Asterisk (*) • 모든 파일이나 디렉토리 뇌를 자극하는 Solaris Bible
짧게 줄여 쓰는 경로명 • Asterisk (*) 뇌를 자극하는 Solaris Bible
짧게 줄여 쓰는 경로명 • Asterisk (*) 뇌를 자극하는 Solaris Bible
짧게 줄여 쓰는 경로명 • Question mark (?) • 단 한 개의 글자 뇌를 자극하는 Solaris Bible
짧게 줄여 쓰는 경로명 • Question mark (?) 뇌를 자극하는 Solaris Bible
짧게 줄여 쓰는 경로명 • Question mark (?) 뇌를 자극하는 Solaris Bible
짧게 줄여 쓰는 경로명 • Question mark (?) 뇌를 자극하는 Solaris Bible
짧게 줄여 쓰는 경로명 • Square bracket mark ([ ]) • 대체할 수 있는 글자 목록을 제한 뇌를 자극하는 Solaris Bible
짧게 줄여 쓰는 경로명 • Square bracket mark ([ ]) 뇌를 자극하는 Solaris Bible
짧게 줄여 쓰는 경로명 • Square bracket mark ([ ]) 뇌를 자극하는 Solaris Bible
짧게 줄여 쓰는 경로명 • Square bracket mark ([ ]) 뇌를 자극하는 Solaris Bible
디렉토리와 관련된 명령어 • pwd 명령어 (Print Working Directory) • 현재 작업 디렉토리의 절대 경로명을 출력 • 실행 형식 • pwd • cd 명령어 (Change Directory) • 현재 작업 디렉토리를 다른 디렉토리로 변경 • 실행 형식 • cd [directory_name] 뇌를 자극하는 Solaris Bible
디렉토리와 관련된 명령어 • pwd 명령어와 cd 명령어 뇌를 자극하는 Solaris Bible
디렉토리와 관련된 명령어 • ls 명령어 (LiSt) • 지정한 디렉토리의 내용인 하위 디렉토리와 파일의 목록을 출력 • 실행 형식 • ls [--color] [-aAhilR] [filenames | directory_names] 뇌를 자극하는 Solaris Bible
디렉토리와 관련된 명령어 • ls 명령어 (LiSt) 뇌를 자극하는 Solaris Bible
디렉토리와 관련된 명령어 • ls 명령어 (LiSt) 뇌를 자극하는 Solaris Bible
디렉토리와 관련된 명령어 • ls 명령어 (LiSt) 뇌를 자극하는 Solaris Bible
디렉토리와 관련된 명령어 • ls 명령어 (LiSt) 뇌를 자극하는 Solaris Bible
디렉토리와 관련된 명령어 • mkdir 명령어 (MaKe DIRectory) • 새로운 디렉토리 생성 • 실행 형식 • mkdir [-p] directory_names 뇌를 자극하는 Solaris Bible
디렉토리와 관련된 명령어 • mkdir 명령어 (MaKe DIRectory) 뇌를 자극하는 Solaris Bible
디렉토리와 관련된 명령어 • mkdir 명령어 (MaKe DIRectory) 뇌를 자극하는 Solaris Bible
디렉토리와 관련된 명령어 • mv 명령어 (MoVe) • 디렉토리 이름을 변경하거나 다른 디렉토리 밑으로 이동 • 실행 형식 • mv source_directory [source_directories] target_directory • target_directory 존재 여부에 따라 mv 명령어 실행 결과가 다름 • target_directory가 존재하지 않을 때 • source_directory의 이름을 target_directory로 변경한다. • source_directory를 오직 한 개만 지정 • target_directory가 존재할 때 • source_directory를 target_directory 밑으로 이동한다. • 여러 개의 source_directory를 지정 가능 뇌를 자극하는 Solaris Bible
디렉토리와 관련된 명령어 • mv 명령어 (MoVe) 뇌를 자극하는 Solaris Bible
디렉토리와 관련된 명령어 • mv 명령어 (MoVe) 뇌를 자극하는 Solaris Bible
디렉토리와 관련된 명령어 • cp 명령어 (CoPy) • 디렉토리를 다른 디렉토리 밑으로 복사 • 실행 형식 • cp -r [-p] source_directory [source_directories] target_directory 뇌를 자극하는 Solaris Bible
디렉토리와 관련된 명령어 • cp 명령어 (CoPy) 뇌를 자극하는 Solaris Bible
디렉토리와 관련된 명령어 • rm 명령어 (ReMove) • 디렉토리를 삭제 • 실행 형식 • rm -r [-i] directory_name [directory_name] 뇌를 자극하는 Solaris Bible
디렉토리와 관련된 명령어 • rm 명령어 (ReMove) 뇌를 자극하는 Solaris Bible
디렉토리와 관련된 명령어 • rm 명령어 (ReMove) 뇌를 자극하는 Solaris Bible