1 / 10

Shell Programming

Shell Programming . Shell Basic - 김 혜 란 -. What Is a Command?. 포인터로 클릭하여 프로그램을 실행하는 MacOS 나 Windows 와는 달리 이름을 입력하여 원하는 프로그램을 실행 . Simple Command. What Is a Command?. Complex Command user name : root logged in to the terminal : tty1 logged date : 2011-09-19 18: 56

wilma-beard
Télécharger la présentation

Shell Programming

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. Shell Programming Shell Basic - 김 혜 란-

  2. What Is a Command? • 포인터로 클릭하여 프로그램을 실행하는 MacOS나Windows 와는 달리 이름을 입력하여 원하는 프로그램을 실행. • Simple Command

  3. What Is a Command? • Complex Command • user name : root • logged in to the terminal : tty1 • logged date : 2011-09-19 18: 56 • Command argument1 ..argument N

  4. What Is a Command ? • Compound Commands • Simple Command + Complex Command • Simple Command ; Complex Command ; • Date -> Mon Sep 19 20:42:11 kst 2011 • Who am I -> root tty1 2011-09-19 18:56 • Command1 ; command2; …command N;

  5. What Is the Shell? • Shell is.. • 사용자와 Unix시스템 간의 interface역할을 해주는 프로그램. • 사용자가 입력한 명령어를 해석하여 그 명령이 실행 가능하도록 해준다. • The Shell Prompt • Prompt가 보여지는 동안에는 명령어를 입력할 수 있다. • 사용자가 입력한 명령어에 의해 원하는 프로그램을 실행할 수 있다. • 공백 및 탭 단위로 워드를 구분하며 워드 단위로 문자를 읽어 들인다.

  6. What Is the Shell? • Different Types of Shells • The Bourne shell : 일반사용자 계정 ->$ 관리자 계정 -> # • Bourne shell(sh) • Korn Shell(ksh) • Bourne Again Shell(bash) • POSIX Shell (sh) • The C shell : hostname% • C Shell(csh) • TENEX/TOPS C Shell(tcsh)

  7. What Is the Shell? • The Original Bourne shell • AT&T벨 연구소의 Steve Bourne이 개발 • AT&T기반의 시스템에 제공된 오리지널 UNIX Shell • /bin/sh

  8. What Is the Shell? • C shell • C 언어를 기본으로 만들어진 shell • 기능 • History : 과거 사용한 명령어 재사용 또는 수정 • Alias: 긴 명령어를 짧은 명령어로 대체 • File Name : File Name 자동완성 기능 • Job Control : 프로세스 상에 작업 우선순위 제어 • TENEX/TOPS C Shell • C shell 기능 + 새로운 기능

  9. What Is the Shell? • The Korn Shell • Bourne Shell + C Shell • 기능 • History 사용 및 대체 명령 • 별명 과 기능 명령 • File name 완성 • 정렬

  10. What Is the Shell? • The Bourne Again Shell • C Shell 이나 Korn Shell에 추가된 유용한 특성을 Bourne Shell에 추가하여 개선시킨 Shell • 기능 • 변수이름, 사용자 이름, host이름 , 명령, file이름 완성 • cd 명령에서 경로명에 대한 맞춤법 정정 • 무제한 크기의 배열 • 2~64사이 integer 연산

More Related