1 / 52

솔라리스와 디렉토리

4 장. 솔라리스와 디렉토리. 학습 내용. 디렉토리 트리 파일의 종류 짧게 줄여 쓰는 경로명 디렉토리와 관련된 명령어. 디렉토리 트리. 파일의 효율적인 저장과 검색을 위한 용도로 사용. 디렉토리 트리. 경로명 (pathname) 디렉토리 트리에서 파일과 디렉토리의 위치를 표시 / 기호 경로명을 표시할 때 디렉토리와 하위 디렉토리 또는 디렉토리와 파일의 구분자로 사용 루트 디렉토리를 표시. 디렉토리 트리. 절대 경로명 경로명이 / 기호로 시작 루트 디렉토리가 기준. 상대 경로명

Télécharger la présentation

솔라리스와 디렉토리

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

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

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

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

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

  6. 디렉토리 트리 • 상대 경로명과 절대 경로명의 비교 • 현재 디렉토리 위치에 따른 상대 경로명의 실제 위치 뇌를 자극하는 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 (*) • 모든 파일이나 디렉토리 뇌를 자극하는 Solaris Bible

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

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

  25. 짧게 줄여 쓰는 경로명 • Question mark (?) • 단 한 개의 글자 뇌를 자극하는 Solaris Bible

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

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

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

  29. 짧게 줄여 쓰는 경로명 • Square bracket mark ([ ]) • 대체할 수 있는 글자 목록을 제한 뇌를 자극하는 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] 뇌를 자극하는 Solaris Bible

  36. 디렉토리와 관련된 명령어 • ls 명령어 (LiSt) 뇌를 자극하는 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 뇌를 자극하는 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 뇌를 자극하는 Solaris Bible

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

  48. 디렉토리와 관련된 명령어 • rm 명령어 (ReMove) • 디렉토리를 삭제 • 실행 형식 • rm -r [-i] directory_name [directory_name] 뇌를 자극하는 Solaris Bible

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

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

More Related