29
UNIX/LINUX 프프프프프 프프 프프 프프프프프 프프프프프프 프 프 프 ( 프 프 프 ) SUNG, MeeYoung 032 835 8496 http://marvel.incheon.ac.kr/ mailto:[email protected]

UNIX/LINUX 프로그래밍 수업 소개

  • Upload
    abra

  • View
    221

  • Download
    1

Embed Size (px)

DESCRIPTION

UNIX/LINUX 프로그래밍 수업 소개. 인천대학교 컴퓨터공학과 성 미 영 ( 成 美 暎 ) SUNG, MeeYoung 032 835 8496 http://marvel.incheon.ac.kr/ mailto:[email protected]. 주별 학습 주제. Why Unix/Linux?. 몸값 반만 배우면 리눅스마스터 국가공인자격증 땀 OS study Embedded system Smart phone http://blog.secmem.org/60 - PowerPoint PPT Presentation

Citation preview

Unix 1

UNIX/LINUX ( )SUNG, MeeYoung032 835 8496http://marvel.incheon.ac.kr/ mailto:[email protected] Unix/Linux2 11 / 2 3 CentOS 42 / vi /53 X X /64 /75 /86 /97 Bash Bash /10119 C /1210 C /1311 /1412 /1513 14 ( ) /16Why Unix/Linux? OS studyEmbedded systemSmart phone http://blog.secmem.org/60 Web Server, DataBase Server LAMPUnix/Linux33What is LAMP?LAMP Linux( );Apache( );MySQL ( );PHP,Perl, Python . ( ) . WAMPWIMPMAMPSAMPBSDFreeBSDFAMP

Unix/Linux4 () Unix/Linux , Unix/Linux

() Unix/Linux Unix/Linux [] [ ] Unix/Linux5 [], () () ()()

[()] [()] [ ( )] [ ( )] [ ( )]

Unix/Linux6 () () ()() () () () ()() 16 () () () ()

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

(). () ( ) ( ) ( )

Unix/Linux7() () () () () (). ()

( ) ( ) ( )

() Unix/Linux8Unix/Linux9 Unix/Linux

Unix/Linux (C ) X ( )

[ ] , , 2012

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

[ ] http://wiki.kldp.org/wiki.phpUnix/Linux10Unix/Linux11 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.

11Unix/Linux12 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/Linux13 [ ] , , , 2012415 PC CentOS Linux Linux (CentOS) : 117.16.244.171 http://www.centos.org Unix (Solaris 11) : 117.16.244.157 http://www.oracle.com/us/products/servers-storage/solaris/index.html http://cyber.incheon.ac.kr

! QuizUnix/Linux14 : 25% : 25% : 20% : 20%Quiz : 10%Bonus : () (Linux Master) http://exam.ihd.or.kr/() LPIC (Linux Professional Institute Certification )http://lpi-korea.org/wiki/index.php/Lpic_aboutlpic() (OS )https://kisq.or.kr/ () Hacker School http://www.hackerschool.org/ 14() IT BI (business intelligence) 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)VMware : VCP(VMware Certified Professional) . . . . . . . (; culture).

Unix/Linux16Unix/Linux17Why People like LinuxRunning Linux, 2nd Edition, Matt Welsh and Lar Kaufman, OReilly, 1996, Preface.Its free.Its popular.Its powerful.Its of good quality.It has full UNIX features.It is small.Its highly compatible.It is big.Its supported.Its documented.You can use Linux. You will like it.Unix/Linux18Unix/Linux , (spreadsheet), , , C . Unix/Linux191971 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

3-2 IBM Korea , 2013 2 3 IT , . Standard Unix IBM Unix OS , IBM AIX Administration . IBM AIX(Advanced Interactive eXecutive) IBM Korea IBM Korea IBM Korea IBM Korea

Unix/Linux20 - , pp127 Unix/Linux21: (telnet) 415 PC CentOS Linuxcentos.incheon.ac.kr (117.16.244.171) CentOS Linux release 6.0 (Final) version 2.6.32-71fedora.incheon.ac.kr (117.16.244.172) Fedora release 15 (Lovelock) version 2.6.43.8-1multi.incheon.ac.kr (117.16.244.157) Solaris 11 (SunOS 5.11)version : $ uname a $ cat /proc/version

telnet 117.16.244.171login: stupasswd: stu*** : / VMware Xmanager : (PuTTy)22PuTTy http://kldp.net/projects/iputty/downloadhttp://www.chiark.greenend.org.uk/~sgtatham/putty/download.htmltelnet, ssh

22Unix/Linux23: date[Enter]date^M (carriage return) date^J (line feed, new line)man date[Enter][Space] q[Enter] stty astty erase 0stty -echostty sane^J^S (stop) [Control-S]^Q (continue) [Control-Q] lsls -lls -alcal ycal 10 2014bc [Control-D]uptimeUname -ahostname hostname mysung [root only]

whowho am ittywrite stu pts/[number] [Enter] ^Dwall [Enter] ^Dmkdir 1234567cd 1234567echo helloecho hello > xx ( > xx echo hello)lscat xxcat [Enter] ^Dcat > xx ( > xx cat)cat >> xx ( >> xx cat)hello / !^Dcat xx

^ (caret) Contol-key Unix/Linux24Control 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 1986 http://en.wikipedia.org/wiki/ASCII#ASCII_control_code_chart . . . . . . . . . , . . ., , , . ? . . , .. . . . , . , . date . , . . date , . ^M . ! ^J .

Unix/Linux25Unix/Linux26 ? ! ? ? () !

? ? ? !

? ? ? !Hard Hard Hard .Hard .

() () ! - [ ]

. . . . .

( )

.

( ) - [ ]

. . . . . . . . . . ? . ? . ? . ? . ? . ? . ? . ? .

.

( M. )

. . . .

( )