Presentation is loading. Please wait.

Presentation is loading. Please wait.

4장 솔라리스와 디렉토리 뇌를 자극하는 Solaris Bible.

Similar presentations


Presentation on theme: "4장 솔라리스와 디렉토리 뇌를 자극하는 Solaris Bible."— Presentation transcript:

1 4장 솔라리스와 디렉토리 뇌를 자극하는 Solaris Bible

2 학습 내용 디렉토리 트리 파일의 종류 짧게 줄여 쓰는 경로명 디렉토리와 관련된 명령어 뇌를 자극하는 Solaris Bible

3 디렉토리 트리 파일의 효율적인 저장과 검색을 위한 용도로 사용 뇌를 자극하는 Solaris Bible

4 디렉토리 트리 경로명 (pathname) 디렉토리 트리에서 파일과 디렉토리의 위치를 표시 / 기호
경로명을 표시할 때 디렉토리와 하위 디렉토리 또는 디렉토리와 파일의 구분자로 사용 루트 디렉토리를 표시 뇌를 자극하는 Solaris Bible

5 디렉토리 트리 절대 경로명 상대 경로명 경로명이 / 기호로 시작 루트 디렉토리가 기준
경로명이 / 기호가 아닌 다른 글자로 시작 현재 디렉토리가 기준 뇌를 자극하는 Solaris Bible

6 디렉토리 트리 상대 경로명과 절대 경로명의 비교 현재 디렉토리 위치에 따른 상대 경로명의 실제 위치 최종 목적지 현재 디렉토리
/usr/ccs/bin /export/home ../../usr/ccs/bin /usr/ccs bin 현재 디렉토리 상대 경로명 절대 경로명 / bin /bin /usr/openwin /usr/openwin/bin /usr /usr/bin /usr/dt /usr/dt/bin /usr/ccs /usr/ccs/bin /usr/local /usr/local/bin 뇌를 자극하는 Solaris Bible

7 파일의 종류 솔라리스에 존재하는 모든 것은 파일로 존재 파일의 구성 요소 파일 디렉토리 링크 디바이스 파일 소켓 파이프
파일 이름 + i-node + 데이터 블록 뇌를 자극하는 Solaris Bible

8 파일의 종류 일반 파일 뇌를 자극하는 Solaris Bible

9 파일의 종류 디렉토리 뇌를 자극하는 Solaris Bible

10 파일의 종류 디렉토리 절대 경로명의 이동 과정 /usr/ccs/bin/ar 뇌를 자극하는 Solaris Bible

11 파일의 종류 디렉토리 상대 경로명의 이동 과정 ../../../../etc/mail 뇌를 자극하는 Solaris Bible

12 파일의 종류 심볼릭 링크 (소프트 링크) 뇌를 자극하는 Solaris Bible

13 파일의 종류 하드 링크 뇌를 자극하는 Solaris Bible

14 파일의 종류 하드 링크 뇌를 자극하는 Solaris Bible

15 파일의 종류 디바이스 파일 뇌를 자극하는 Solaris Bible

16 파일의 종류 디바이스 파일 뇌를 자극하는 Solaris Bible

17 파일의 종류 파일과 디렉토리 명명 규칙 반드시 지켜야 하는 규칙 지키면 편한 규칙 최대 255자 /기호를 제외한 모든 글자
알파벳, 숫자, 하이픈(-), 밑줄(_), 점(.) 만 사용 공백( ), *, &, |, ", ', `, ~, #, $, (, ), \, ;, <, > 기호는 사용하지 않기 알파벳 소문자만 사용 점(.)으로 시작하지 않기 뇌를 자극하는 Solaris Bible

18 짧게 줄여 쓰는 경로명 와일드 카드 (wild card) 디렉토리나 파일명으로 구성된 경로명을 아주 짧게 표현
한꺼번에 여러 개의 디렉토리나 파일명을 표현 여러 종류의 와일드 카드를 섞어서 사용 뇌를 자극하는 Solaris Bible

19 짧게 줄여 쓰는 경로명 Dot (.) 현재 디렉토리 뇌를 자극하는 Solaris Bible

20 짧게 줄여 쓰는 경로명 Dot dot (..) 상위 디렉토리 (부모 디렉토리) 뇌를 자극하는 Solaris Bible

21 짧게 줄여 쓰는 경로명 Tilde (~) 사용자의 홈 디렉토리 뇌를 자극하는 Solaris Bible

22 짧게 줄여 쓰는 경로명 Asterisk (*) 모든 파일이나 디렉토리 표현 의미 예 * 현재 디렉토리의 모든 파일과 디렉토리
1 2 ab foobar 98_1 a* 이름이 a로 시작하는 모든 파일과 디렉토리 a ab a12 a876 a_92x *a 이름이 a로 끝나는 모든 파일과 디렉토리 a ba 883a 8_9a *a* 이름에 a가 들어 있는 모든 파일과 디렉토리 a ab ba 3a12 *a*b* 이름에 a가 먼저 오고 나중에 b가 오는 모든 파일과 디렉토리 ab a892ba 82a0_bc 뇌를 자극하는 Solaris Bible

23 짧게 줄여 쓰는 경로명 Asterisk (*) 뇌를 자극하는 Solaris Bible

24 짧게 줄여 쓰는 경로명 Asterisk (*) 뇌를 자극하는 Solaris Bible

25 짧게 줄여 쓰는 경로명 Question mark (?) 단 한 개의 글자 표현 의미 예 ?
이름이 한 글자인 모든 파일과 디렉토리 a b _ x a? a로 시작하고, 길이가 두 글자인 모든 파일과 디렉토리 ab ac a1 a9 a_ ?a a로 끝나고, 길이가 두 글자인 모든 파일과 디렉토리 ba ca 1a 9a _a ?a? a가 중간에 있고, 길이가 세 글자인 모든 파일과 디렉토리 bax ca1 9a_ 8a8 ??a??? a 앞에 두 글자, a 뒤에 세 글자가 있는 모든 파일과 디렉토리 12a90_ mzau93 뇌를 자극하는 Solaris Bible

26 짧게 줄여 쓰는 경로명 Question mark (?) 뇌를 자극하는 Solaris Bible

27 짧게 줄여 쓰는 경로명 Question mark (?) 뇌를 자극하는 Solaris Bible

28 짧게 줄여 쓰는 경로명 Question mark (?) 뇌를 자극하는 Solaris Bible

29 짧게 줄여 쓰는 경로명 Square bracket mark ([ ]) 대체할 수 있는 글자 목록을 제한 표현 의미 예
[abc] 이름이 a 또는 b 또는 c인 모든 파일과 디렉토리 a b c [a-c] [0-9]* 숫자로 시작하는 모든 파일과 디렉토리 2018fz 7jnz 9f20z [A-Za-z]* 알파벳으로 시작하는 모든 파일과 디렉토리 abc a9024 ghxz zu82z 뇌를 자극하는 Solaris Bible

30 짧게 줄여 쓰는 경로명 Square bracket mark ([ ]) 뇌를 자극하는 Solaris Bible

31 짧게 줄여 쓰는 경로명 Square bracket mark ([ ]) 뇌를 자극하는 Solaris Bible

32 짧게 줄여 쓰는 경로명 Square bracket mark ([ ]) 뇌를 자극하는 Solaris Bible

33 디렉토리와 관련된 명령어 pwd 명령어 (Print Working Directory)
현재 작업 디렉토리의 절대 경로명을 출력 실행 형식 pwd cd 명령어 (Change Directory) 현재 작업 디렉토리를 다른 디렉토리로 변경 cd [directory_name] 뇌를 자극하는 Solaris Bible

34 디렉토리와 관련된 명령어 pwd 명령어와 cd 명령어 뇌를 자극하는 Solaris Bible

35 디렉토리와 관련된 명령어 ls 명령어 (LiSt) 지정한 디렉토리의 내용인 하위 디렉토리와 파일의 목록을 출력 실행 형식
ls [--color] [-aAhilR] [filenames | directory_names] 아규먼트 의미 현재 작업 디렉토리의 파일과 디렉토리 목록을 출력 Filenames 현재 작업 디렉토리의 파일 중에서 filenames로 지정한 파일만 출력 Directory_names 지정한 디렉토리의 파일과 디렉토리 목록을 출력 뇌를 자극하는 Solaris Bible

36 디렉토리와 관련된 명령어 ls 명령어 (LiSt) 옵션 의미 비고 --color
파일 종류에 따라 파일 이름을 다른 색으로 출력 -a . 기호로 시작하는 파일이나 디렉토리도 모두 출력 All -A . 기호로 시작하는 파일이나 디렉토리 중에서 . 디렉토리, .. 디렉토리는 제외하고 출력 Almost -h 파일의 크기를 G(Giga), M(Mega), K(Kilo) 등으로 표시 Human readable -i 파일의 i-node를 함께 출력 I-node -l 파일의 속성을 함께 출력 Long listing -R 디렉토리의 하위 디렉토리와 파일까지 함께 출력 Recursive 뇌를 자극하는 Solaris Bible

37 디렉토리와 관련된 명령어 ls 명령어 (LiSt) 뇌를 자극하는 Solaris Bible

38 디렉토리와 관련된 명령어 ls 명령어 (LiSt) 뇌를 자극하는 Solaris Bible

39 디렉토리와 관련된 명령어 ls 명령어 (LiSt) 뇌를 자극하는 Solaris Bible

40 디렉토리와 관련된 명령어 mkdir 명령어 (MaKe DIRectory) 새로운 디렉토리 생성 실행 형식
mkdir [-p] directory_names 옵션 의미 비고 -p 계층적인 구조를 가지는 디렉토리 생성 부모 디렉토리를 함께 생성 Parent 뇌를 자극하는 Solaris Bible

41 디렉토리와 관련된 명령어 mkdir 명령어 (MaKe DIRectory) 뇌를 자극하는 Solaris Bible

42 디렉토리와 관련된 명령어 mkdir 명령어 (MaKe DIRectory) 뇌를 자극하는 Solaris Bible

43 디렉토리와 관련된 명령어 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

44 디렉토리와 관련된 명령어 mv 명령어 (MoVe) 뇌를 자극하는 Solaris Bible

45 디렉토리와 관련된 명령어 mv 명령어 (MoVe) 뇌를 자극하는 Solaris Bible

46 디렉토리와 관련된 명령어 cp 명령어 (CoPy) 디렉토리를 다른 디렉토리 밑으로 복사 실행 형식
cp -r [-p] source_directory [source_directories] target_directory 옵션 의미 비고 -r source_directory와 그 밑의 모든 하위 디렉토리와 파일을 복사한다 디렉토리를 복사할 경우 반드시 사용해야 한다 Recursive -p source_directory가 가진 속성도 함께 복사한다. Preserve 뇌를 자극하는 Solaris Bible

47 디렉토리와 관련된 명령어 cp 명령어 (CoPy) 뇌를 자극하는 Solaris Bible

48 디렉토리와 관련된 명령어 rm 명령어 (ReMove) 디렉토리를 삭제 실행 형식
rm -r [-i] directory_name [directory_name] 옵션 의미 비고 -r directory_name과 그 밑의 모든 하위 디렉토리와 파일을 삭제한다 디렉토리를 삭제할 경우 반드시 사용해야 한다 Recursive -i 디렉토리나 파일을 삭제할 때마다 실제로 삭제할 것인지 확인한다. Interactive 뇌를 자극하는 Solaris Bible

49 디렉토리와 관련된 명령어 rm 명령어 (ReMove) 뇌를 자극하는 Solaris Bible

50 디렉토리와 관련된 명령어 rm 명령어 (ReMove) 뇌를 자극하는 Solaris Bible

51 디렉토리와 관련된 명령어 rm 명령어 (ReMove) 뇌를 자극하는 Solaris Bible

52 요점정리 솔라리스는 디렉토리 트리를 이용하여 데이터를 관리한다. 솔라리스에 존재하는 모든 것은 파일로 간주하여 처리된다.
와일드 카드를 사용하면 한꺼번에 여러 개의 파일과 디렉토리를 명시할 수 있다. 디렉토리와 관련된 명령어들 명령어 의미 ls 디렉토리 내용 출력 pwd 현재 작업 디렉토리 경로명 출력 cd 작업 디렉토리 변경 mkdir 새로운 디렉토리 생성 rmdir 디렉토리 삭제 rm 디렉토리와 파일을 한꺼번에 삭제 cp 디렉토리 복사 mv 디렉토리 이름 변경 또는 이동 뇌를 자극하는 Solaris Bible


Download ppt "4장 솔라리스와 디렉토리 뇌를 자극하는 Solaris Bible."

Similar presentations


Ads by Google