Top Banner
Unix/Linux Unix/Linux 프프프프프 프프프프프 인인인인인 인인인인인인 인 인 인 ( 인 인 인 ) Sung, MeeYoung http://marvel.incheon.ac.kr/~mysun g mailto:[email protected]
25

Unix/Linux 프로그래밍

Jan 03, 2016

Download

Documents

callie-garrett

Unix/Linux 프로그래밍. 인천대학교 컴퓨터공학과 성 미 영 ( 成 美 暎 ) Sung, MeeYoung http://marvel.incheon.ac.kr/~mysung mailto:[email protected]. Why Linux ?. Smart phone : http://blog.secmem.org/60 Embedded system Data Base Server OS study 몸값. 수업 목표. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • Unix/Linux ( )Sung, MeeYounghttp://marvel.incheon.ac.kr/~mysung mailto:[email protected]

    Unix/Linux

  • Why Linux ?Smart phone : http://blog.secmem.org/60 Embedded systemData Base ServerOS studyUnix/Linux*

    Unix/Linux

  • Unix/Linux* () Unix/Linux , Unix/Linux

    () Unix/Linux Unix/Linux [] () [ ]

    Unix/Linux

  • [], () () ()()

    [()] [()] [ ( )] [ ( )] [ ( )] Unix/Linux*

    Unix/Linux

  • () () () () ()() 16 () () () ()

    () () () () () () 14

    (). () ( ) ( ) ( )

    Unix/Linux*

    Unix/Linux

  • () () () () () (). ()

    ( ) ( ) ( )

    () Unix/Linux*

    Unix/Linux

  • Unix/Linux* Unix/Linux

    Unix/Linux (C ) ( )

    !

    Unix/Linux

  • [ ] , , 2012

    []UNIX for Programmers and Users, Second Edition (1st edition: UNIX ), Glass and Ables , , , 2003Linux , , , , 2003() Graham Glass and King Ables, UNIX for Programmers and Users, 2nd Ed., Prentice Hall PTR, 1999 : Linux Kernel Programming [ Vol.2] , , , 2009Unix/Linux*

    Unix/Linux

  • Unix/Linux* Unix K. Havilland, D. Gray, B. Salama, Unix System Programming, 2nd Ed., Addison-Wesley, 1998(99) Unix Second Edition, Keith Haviland, Dina Gray and Ben Salama , , , 1999.Richard Stevens, Unix Network Programming, 3rd Ed., Prentice Hall PTR, 2004. Unix Network Programming, 2nd Ed., Stevens , , , , 2002., , , Linux & Unix C , , 2006.W. Richard Stevens and Stephen A. Rage, Advanced Programming in the UNIX Environment, Second Edition,, Addison Wesley, 2005.APUE2 Unix - 2 | Advanced Programming in the UNIX Environment (2/e), , , 2009,.Maurice J. Bach, The Design of the Unix Operating System, Prentice Hall International, Inc., 1986Unix , , , 1991.Stephen Kochan and Patrick Wood , Unix Shell Programming, Third Edition , SAMS, 2003.Evi Nemeth, Garth Snyder, Scott Seebass, Trent R. Hein, Unix System Administration Handbook, 2nd Ed., Prentice Hall PTR, 1995., Unix System administration Handbook, 2nd Ed. Nemeth, Snyder, Seebass, Hein , , , , , 1998.AEleen Frisch, Essential System Administration, 2nd Ed., O'Reilly, 1996. , 2nd Ed., AEleen Frusch , , , 1998.Douglas A. Young, The X Window System Programming and Application with Xt, 2nd Ed., Prentice Hall PTR, 1994. The X Window System Programming and Application with Xt 2, Young , 4 , , 1996.

    Unix/Linux

  • Unix/Linux* Linux M. Welsh and L. Kaufman, Running Linux, O'Reilly, 1999. , , , 2003.Arnold Robbins, Linux Programming by Example , Prentice Hall PTR, 2004./ , , , 2004. , / 500, , 2004. , 9, , 2004., , , Linux & Unix C , , 2003. , , LINUX , , 2000.Linux System & Shell Programming, , , , 2003.Haruhoko Hayashi , New / , , 2001.M Beck, H Bhme, M Dziadzka, U Kunitz, R Magnus, C Schrter, D Verworner, Linux Kernel Programming, Third Edition, Addison Wesley, 2002. Daniel P. Bovet and Marco Cesati, Understanding Linux Kernel, OReilly, 2001.Avi Nemeth, Garth Snyder, Trent R. Hein, Linux Administration Handbook, Prentice-Hall PTR, 2002.

    Unix/Linux

  • Unix/Linux* [ ] Linux Linux: CentOS & Fedora http://www.fedoralinux.or.kr/ Unix: Solaris 10 http://www.oracle.com/us/products/servers-storage/solaris/index.html

    : 30% : 30% : 20% (Homework) (Quiz) : 20% (Bonus) http://exam.ihd.or.kr/examHome/license/license_info03_system1.jsp2 1 (: 10.08 ~ 11.13, 10.09 ~ 11.14)2 2 + 12 1 2 +2LPIC (Linux Professional Institute Certification ) http://lpi-korea.org/wiki/index.php/Lpic_aboutlpicLPIC Level-1 Exam 101 LPIC Level-1 Exam 102 + 1LPIC Level-2 Exam 201 202 + 2LPIC Level-3 Exam 301 302 303 304 + 3

    Unix/Linux

  • () SIS (Specialist for Information Security) OS IT BI (business intelligene) IT IT : CCNA(Cisco Certified Network Associate), CCIE(Cisco Certified Internetwork Expert) : LPIC (Linux Professional Institute Certification ) , RHCE(Red Hat Certified Engineer) : MCITP(Microsoft Certified IT Professional), MCSE(Microsoft CertifiedSystems Engineer), MCTS(Microsoft Certified Technology Specialist), MCPD(Microsoft Certified Professional Developer) : PMP(Project Management Professional) : CISSP(Certified Information Systems Security Professional), CCSA (Check Point Certified Systems Administrator), CCSE(Check Point Certified Security Expert)VM : VCP(VMware Certified Professional)

  • Unix/Linux* 1: 1 / 2: 2 / 3: 3 X & 4: 4 5: 5 6: 6 7: 7 Bash 8: 9: 9 C 10: 10 C 11: 11 12: 12 13: 13 14: 14 ( )15: 16:

    Unix/Linux

  • . . . . . . . (; culture).

    Unix/Linux*

    Unix/Linux

  • Unix/Linux*Why People like LinuxIts free.Its popular.Its powerful.Its of good quality, and runs high-quality software applications.It has full UNIX features.It is small.It is big.Its supported.Its documented.Its sexy.

    Unix/Linux

  • Unix/Linux*Unix/Linux , (spreadsheet), , , C .

    Unix/Linux

  • Unix/Linux*1971 AT&T Bell Lab. Ken ThompsonMIT Multics (Multiplexed Information and Computing Services) Unics UnixPDP-7 1973 C 1970 Ken Thompson B , 1973 Dennis Ritchie C AT&T System V(five) BSD (Berkeley Software Distribution) Linux (http://www.linux.org, http://www.linuxhq.com)Linus Torvalds (Finnish student of Computer Science)http://ko.wikipedia.org/wiki/%EB%A6%AC%EB%88%84%EC%8A%A4_%ED%86%A0%EB%A5%B4%EB%B0%9C%EC%8A%A4 1991 PCSystem V + BSD UnixGNU (http://www.gnu.org/home.html ) : source code is available UI (Unix International) : System V 4.1 : AT&T, SUN OSF (Open Software Foundation) : OSF/1 : IBM, DEC, HPPOSIX (Portable Operating System Interface [for Unix]) (1986, IEEE1000.3)Unix/Linux

    Unix/Linux

  • Unix/Linux*: fedora.incheon.ac.kr (117.16.244.59) Fedora release 15 (Lovelock)multi.incheon.ac.kr (117.16.244.53) Solaris 10 (SunOS 5.10)csmail.incheon.ac.kr (117.16.244.56) Red Hat Linux release 8.0 (Psyche)version : $ uname a $ cat /proc/version VMware Xmanager telnet 117.16.244.59login: stupasswd: stu*** : /

    Unix/Linux

  • *PuTTy http://www.chiark.greenend.org.uk/~sgtatham/putty telnet, ssh

  • Unix/Linux*: datedate^M (carriage return) date^J (line feed, new line)man date stty astty erase^?stty -echostty sane^J^S (stop) [Control-S]^Q (continue) [Control-Q] lsls -lls -alcalbc [Control-D]uptimehostname hostname mysung [root only]

    whowho am ittywrite stu pts/[number] ^Dwall ^Decho helloecho hello > xx > xx echo hellolscat xxcatcat > xx > xx cathello [ ^]/ !^Dcat xx

    ^ (caret)

    Unix/Linux

  • Unix/Linux*Control Characters ^c Value ^c Value ^c Value a, A l, L w, W b, B m, M x, X c, C n, N y, Y c, C n, N y, Y d, D o, O z, Z e, E p, P [ f, F q, Q \ g, G r, R ] h, H s, S ^ i, I t, T _ j, J u, U ? k, K v, V

    ASCII (American Standard Code for Information Interchange) Character Set ANSI (American National Standards Institute) X3.4 1968

    Unix/Linux

  • . . . . . . . . . , . . ., , , . ? . . , .. . . . , . , . date . , . . date , . ^M . ! ^J .

    Unix/Linux*

    Unix/Linux

  • ? ? ! ?? !Poem HardHard Hard Hard .Hard .

  • Unix/Linux* ? !

    ? ? () !

    ? ? ? !

    ? ? ? !

    Unix/Linux

  • . . . .

    ( ) - [ ] () () !

    **