1 / 15

프로그래밍의 기본 - UNIX 와 통신

프로그래밍의 기본 - UNIX 와 통신. 1 장 . UNIX 다루기 정보통신공학과 박기현. 1.1.2 로그인 (P14). 1.1.3 명령어 (P16). 1. 쉘의 프롬프트 출력 2. 사용자 명령어의 입력 3. 입력된 명령어의 실행 4. 실행 결과의 출력 % ls CommHistory   backup        passwd         source add-user       local          shadow % pwd /export/prof/info/park

fineen
Download Presentation

프로그래밍의 기본 - UNIX 와 통신

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. 프로그래밍의 기본- UNIX와 통신 1장. UNIX 다루기 정보통신공학과 박기현

  2. 1.1.2 로그인 (P14)

  3. 1.1.3 명령어 (P16) 1. 쉘의 프롬프트 출력 2. 사용자 명령어의 입력 3. 입력된 명령어의 실행 4. 실행 결과의 출력 % ls CommHistory   backup        passwd         source add-user       local          shadow % pwd /export/prof/info/park % cd .. % pwd /export/prof/info %

  4. 1.1.3 명령어 (P17) • 중단(Interrupt) • % cat • ^C% • 일시정지(Suspend) / 재시작(Resume) • % cat • ^Z • 중단됨 (사용자) • % • 마지막(EOF: End of File) • Ctrl-D

  5. 1.2.1 개요 (P19) % ls -li 총 20 98396 -rwxr-xr-x  1  park  staff   7192   1월 18일  11:33 a.out 107766 drwxr-xr-x  2  park  staff    512   1월 18일  11:47 done 98398 -rw-r--r--  1  park  other      0   1월 30일  15:59 ls.out

  6. 1.2.2 디렉토리 (P20) % pwd /export/prof/info/park % mkdir test % cd test % pwd /export/prof/info/park/test

  7. 1.2.3 파일 (P21) % mkdir dd % cp /etc/motd f1 % cp /etc/motd dd/f2 % ls -l 총 4 drwxr-xr-x   2 park   other        512  8월 26일  14:24 dd -rw-r--r--   1 park   other        660  8월 26일  14:24 f1 % ls -l dd 총 2 -rw-r--r--   1 park   other        660  8월 26일  14:24 f2 % rm f1 % rm dd rm: dd은(는) 디렉토리입니다 % rm -r dd % ls -l 총 0

  8. 1.2.4 특성 정보 (P22) % ls -l -rw-------    1 park   other         84  8월 27일  10:51 a1 -rw-r--r--   1 park   other         27  8월 27일  10:29 f1 drwxr-xr-x   2 park   other        512  8월 27일  10:50 test a1:  rw- --- ---      (2진수: 110 000 000,       8진수: 6 0 0) f1:  rw- r-- r--       (2진수: 110 100 100,       8진수: 6 4 4) test: rwx r-x r-x     (2진수: 111 101 101,       8진수: 7 5 5) % chmod 640 a1 % chmod 660 f1 % chmod 700 test % ls -l -rw-r-----   1 park   other         84  8월 27일  10:51 a1 -rw-rw----   1 park   other         27  8월 27일  10:29 f1 drwx------   2 park   other        512  8월 27일  10:50 test

  9. 1.3.1 개요 (P24)

  10. 1.3.1 개요 (P25)

  11. 1.3.2 명령어 (P26)

  12. 1.3.2 명령어 (P27)

  13. 1.4.1 검색 기능 (P28) % ls Hello.c  Hi.c % cat Hello.c # include <stdio.h> main() {         printf ("Hello, World\n"); } % grep World Hello.c         printf ("Hello, World\n"); % grep world Hello.c % grep -i world Hello.c         printf ("Hello, World\n"); % grep -ni world Hello.c 4:      printf ("Hello, World\n");

  14. 1.4.1 검색 기능 (P29) % cat Hi.c # include <stdio.h> main() {         printf ("Hi, UNIX\n"); } % grep printf Hello.c Hi.c Hello.c:        printf ("Hello, World\n"); Hi.c:   printf ("Hi, UNIX\n"); % grep World Hello.c Hi.c Hello.c:        printf ("Hello, World\n"); % grep UNIX Hello.c Hi.c Hi.c:   printf ("Hi, UNIX\n");

  15. 1.4.2 비교 기능 (P29) % cat Hello.c /* Hello.c */ # include <stdio.h> main() {         printf ("Hello, World\n"); } % cat 1.c # include <stdio.h> main() {         printf ("Hello, World\n"); } % diff Hello.c 1.c 1d0 < /* Hello.c */

More Related