......

Size: px
Start display at page:

Download "......"

Transcription

1

2

3

4

5

6 01 02

7

8 06 07

9 08 09

10

11 13 14

12 Unix / Linux 01

13 Unix / Linux 01 (Unix) 1970 AT&T (Ken Thompson) (Dennis Ritchie) PC 1990 (Linus Torbalds)PC (Linux) (Apple) (Mac) OS X PC OS X ios (Android) PC MIT (Multics) (simplicity) (portability) C

14 01 C C 1.1

15 1. (Android) OS 2. ios 3. (Mac) OS X 4. (Linux) 5. BSD (Unix) 6. V 7. Sun (Solaris) 8. IBM AIX 9. HP HP-UX 10. Cray (Unicos) 1.2 (super-user)

16 01 ftptelnetwww

17 CPU (Memory) (Disk) (Peripherals) 1.3 (kernel) 1.4

18 01 (Process management) CPU (File management) (Memory management) (Communication management) (Device management) (system call) (shell)

19 GNU GNU 1970 AT&T 1969 (Ken Thompson) 1972 (Dennis Ritchie) C C C V(System V) BSD 1.5 AT&T (System V) V V IBM AIXSun SolarisHP UP-UX

20 01 AT&T (Univ. of California, Berkeley) (Berkeley Software Distribution) BSD TCP/IP (Socket) BSD BSD 4.3 BSD OS(Sun OS) OS(Mac OS)

21 (Solaris) (Sun) (Sparc) CPU 1.6 (Linux) PC 1991 (Linus Torvalds) PC GNU (RedHat) (Ubuntu) (Debian) (Fedora)CentOS 1.4

22 01 (Mac OS) 1984 GUI 2002 NeXTSTEP BSD OS X 1.7OS X (Android) PC 1.8

23 ios OS X API iphoneipadipod 1.9 ios CentOS CentOS (Ubuntu)

24 01 PC CD/DVD USB MS (Unity) 1.10

25 (Debian) (Debian Project) apt (Debian) (Ian Murdock) (Debra) USB CD/DVD (Fedora) RPM USB CD/DVD

26 01 (Community ENTerprise Operating System) CentOS CentOS CD/DVD CentOS CD/DVD CentOS-6.x-i386-bin-DVD.iso CentOS-6.x-i386-minimal.iso CentOS-6.x-i386-netinstall.iso gcc (S/W Development Workstation) CentOS GNOME 1.11

27 1.6 X-(X window) X X- CentOS X-

28 CentOS 1.10 X MS PC

29 telnet cs 1.14 C:\> telnet cs.sookmyung.ac.kr PuTTY PuTTY ~sgtatham/putty ssh 1.15 ssh (cs2.sookmyung.ac.kr) 1.16

30 01 X GNOME PuTTY exit logout $ exit $ logout

31 2 (superuser) root root root root root su root root $ su useradd root 1.1 # useradd

32 01 -c -d /home/ -e -s -u uid ID -g ID agape # useradd agape cs12 agape # useradd -g cs12 agape passwd agape # passwd agape agape : : passwd:

33 /etc/passwd agape:x:501:502::/home/agape:/bin/bash /etc/shadow agape:$6$2m53.be.$pgob0x.g8bfhxfn2b5h58.kmcudxvimblh8euqvcb9qap.v0thbx J8WJsocYIesxLV9Sb3sWQIBnlWoZWS.Yw1:15432:0:99999:7::: /home/ # ls -asl /home/agape 32 4 drwx agape cs :19. 4 drwxr-xr-x. 5 root root : rw-r--r--. 1 agape cs :58.bash_logout 4 -rw-r--r--. 1 agape cs :58.bash_profile 4 -rw-r--r--. 1 agape cs :58.bashrc 4 -rw-r--r--. 1 agape cs :40.emacs 4 drwxr-xr-x. 2 agape cs :54.gnome2 4 drwxr-xr-x. 4 agape cs :18.mozilla userdel -r # userdel [-r] GNOME

34 01 groupadd -g ID # groupadd [-g gid] cs12 # groupadd cs12 /etc/group groupdel # groupdel

35 PC PuTTy PC

36 Unix / Linux 02

37 Unix / Linux 02 date $ date hostname uname $ hostname cs $ uname SunOS who $ who brain pts/ :46 ( )

38 02 chang pts/ :40 ( )... ls $ ls Desktop invite.csh README clear $ clear passwd $ passwd passwd: chang : : : passwd: (chang ). man date man $ man date User Commands NAME date - write the date and time... date(1)

39 DESCRIPTION The date utility writes the date and time to standard output... (ordinary file) (directory) (folder) (device) (special file) ( stdin)( stdout) (root) 2.1

40 02 /bin /sbin /etc /kernel /dev /home /export /lib /var /tmp /usr NFS /usr/bin /usr/include /usr/lib /usr/local "include"

41 /usr/man 2.2 (home directory) $HOME (current working directory)

42 02 pwd pwd $ pwd /home/chang mkdir $ mkdir test $ mkdir test cd [ ] $ cd test $ cd test $ pwd /home/chang/test ls cs1.txt

43 $ ls cs1.txt ls -s(size) $ ls -s 6 6 cs1.txt ls. -a(all)... $ ls -a... cs1.txt -l(long) rw-r--r :37 $ ls -l 6 -rw-r--r-- 1 chang faculty :37 cs1.txt

44 02 $ ls -asl 10 2 drwxr-xr-x 2 chang faculty :37. 2 drwxr-xr-x 3 chang faculty : rw-r--r-- 1 chang faculty :37 cs1.txt ls * 0 $ ls ls /tmp $ ls /tmp cs1.txt $ ls cs1.txt (pathname) (absolute pathname) 2.3 test cs1.txt /home/chang/test/cs1.txt

45 (relative path name) test cs1.txt ~ :. :.. : cd.. cd ~ 2.1

46 02 ls ls -a ls -asl mkdir cd cd cd ~ cd.. pwd (cat, more, head, tail, wc ) $ (more ) 0 * $ more + $ more +

47 (vi, gedit ) cat (2.5 ) cs1.txt cs1.txt ^D(Ctrl-D) $ cat > cs1.txt... ^D cs1.txt cat cs1.txt (1 ) $ cat cs1.txt cat $ cat... ^D more

48 02 $ more + [space-bar] q $ more cs1.txt Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs, including Ken Thompson, Dennis Ritchie, Brian Kernighan, Douglas McIlroy, and Joe Ossanna. The Unix operating system was first developed in assembly language, but by 1973 had been almost entirely recoded in C, greatly facilitating its further development and porting to other hardware. Today's Unix system evolution is split into various branches, developed over time by AT&T as well as various commercial vendors, universities (such as University of California, Berkeley's BSD), and non-profit organizations. The Open Group, an industry standards consortium, owns the UNIX trademark. Only systems fully compliant with and certified according to the Single UNIX Specification are qualified to use the trademark; others might be called Unix system-like or Unix-like, although the Open Group disapproves[1] of this term. However, the term Unix is often used informally to denote any operating system that closely resembles the trademarked system. During the late 1970s and early 1980s, the influence of Unix in academic circles led to large-scale adoption of Unix(particularly of the BSD variant, ----(59%) head (10 ) $ head cs1.txt

49 Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs, including Ken Thompson, Dennis Ritchie, Brian Kernighan, Douglas McIlroy, and Joe Ossanna. The Unix operating system was first developed in assembly language, but by 1973 had been almost entirely recoded in C, greatly facilitating its further development and porting to other hardware. Today's Unix system evolution is split into various branches, developed over time by AT&T as well as various commercial vendors, (5) $ head -5 cs1.txt Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs, including Ken Thompson, Dennis Ritchie, Brian Kernighan, Douglas McIlroy, and Joe Ossanna. tail (10 ) $ tail cs1.txt Linux, which is used to power data centers, desktops, mobile phones, and embedded devices such as routers, set-top boxes or e-book readers. Today, in addition to certified Unix systems such as those already mentioned, Unix-like operating systems such as MINIX, Linux, Android, and BSD descendants (FreeBSD, NetBSD, OpenBSD, and DragonFly BSD) are commonly encountered. The term traditional Unix may be used to describe a Unix or an operating system that has the characteristics of either Version 7 Unix or UNIX System V. (5)

50 02 $ tail -5 cs1.txt wc cs1.txt $ wc cs1.txt cs1.txt (-l) (-w) (-c) $ wc -l cs1.txt 38 cs1.txt cp $ cp 1 2 cs1.txt cs2.txt cs1.txt cs2.txt $ cp cs1.txt cs2.txt ls -l cs1.txt cs2.txt

51 $ ls -l cs1.txt cs2.txt -rw-r--r-- 1 chang faculty :37 cs1.txt -rw-r--r-- 1 chang faculty :45 cs2.txt $ cp cs1.txt /tmp $ cp cs1.txt /tmp ls -l cs1.txt /tmp/cs1.txt $ ls -l /tmp/cs1.txt -rw-r--r-- 1 chang faculty :31 /tmp/cs1.txt mv $ mv 1 2 cs2.txt cs3.txt cs2.txt $ mv cs2.txt cs3.txt ls cs2.txt cs3.txt

52 02 $ ls -l -rw-r--r-- 1 chang faculty :37 cs1.txt -rw-r--r-- 1 chang faculty :56 cs3.txt $ mv cs3.txt /tmp $ mv cs3.txt /tmp ls -l cs3.txt /tmp/cs3.txt $ ls -l /tmp/cs3.txt -rw-r--r-- 1 chang faculty :56 /tmp/cs3.txt rm $ rm + cs1.txt $ rm cs1.txt rmdir $ rmdir +

53 test $ rmdir test rm -r $ rm -r 2.2 cat * more + head * tail * wc * cp 1 2 mv 1 2 rm + rmdir + grep

54 02 (file attribute) cs1.txt $ ls -sl cs1.txt 6 -rw-r--r-- 1 chang faculty :37 cs1.txt - d rw-r--r : (-) (d) (l) (p) (s) (b c)

55 ID( ) root (permission mode) (r) (w) (x) 2.4 r w w (owner) (group) (others) rw-r--r-- rw- r-- r--

56 02 X GNOME chmod -R $ chmod $ chmod [-R]

57 rw- r-- r cs1.txt 664 rw- rw- r cs1.txt $ chmod 664 cs1.txt $ ls -l cs1.txt -rw-rw-r-- 1 chang faculty :37 cs1.txt [u g o a] + [+ - =][r w x] + u(user), g(group), o(other), a(all) : +(), -(), =() : r(), w(), x() cs1.txt cs1.txt w $ chmod g+w cs1.txt

58 02 chown chown -R $ chown $ chown [-R] chgrp -R $ chgrp $ chgrp [-R] (output redirection) 2.6 > $ >

59 who names.txt $ who > names.txt cat cat list1.txt list2.txt $ cat > list1.txt Hi! This is the first list. ^D $ cat > list2.txt Hello! This is the second list. ^D

60 02 $ cat list1.txt list2.txt > list3.txt list3.txt $ cat list3.txt Hi! This is the first list. Hello! This is the second list. (append) >> $ >> list1.txt $ cat >> list1.txt Bye! This is the end of the first list. ^D list1.txt $ cat list1.txt Hi! This is the first list. Bye! This is the end of the first list.

61 (input redirection) 2.7 < $ < wc list1.txt $ wc < list1.txt list1.txt wc list1.txt $ wc... ^D

62 02 (here document) << << $ <<... end wc $ wc << end hello! word count end $ who > names.txt $ sort < names.txt (pipe) 2.8

63 $ 1 2 $ who sort brain pts/ :23 ( ) chang pts/ :28 ( ) kimch pts/ :35 ( ) wc $ who wc -l 3 2.5

64 02 > >> < 1 2 cat 1 2 > Ctrl-C $ ^C Ctrl-Z $ ^Z () fg

65 $ fg 2.9 & $ & 100 done test.c $ (sleep 100; echo done) & [1] 8320 $ find. -name test.c -print & [2] 8325

66 02 jobs $ jobs [1] + Running ( sleep 100; echo done ) [2] - Running find. -name test.c -print fg $ fg % 1 $ fg %1 ( sleep 100; echo done ) $ find. -name test.c -print > find.txt & $ find. -name test.c -print mail chang & $ wc < inputfile & (process)

67 PID ps $ ps PID TTY TIME CMD 8695 pts/3 00:00:00 csh 8720 pts/3 00:00:00 ps ps u $ ps u USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND chang pts/3 Ss 11:12 0:00 -csh chang pts/3 R+ 11:15 0:00 ps u ps aux $ ps aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root ? Ss :27 init [5] root ? S< :01 [migration/0] root ? SN :00 [ksoftirqd/0] root ? S< :00 [watchdog/0]... root ? Ss 11:12 0:00 sshd: chang [pr chang ? R 11:12 0:00 sshd: chang@pts chang pts/3 Ss 11:12 0:00 -csh chang pts/3 R+ 11:24 0:00 ps aux

68 02 kill $ kill $ kill % 1 ( 8320) $ kill 8320 $ kill %1 [1] Terminated ( sleep 100; echo done ) 2.6 & ^C ^Z bg jobs fg %1 kill %1 ps kill

69 vi vi 5.5 X GUI gedit kwrite gedit X GNOME gedit GNOME [gedit ] $ gedit [ ] & gedit MS 2.10

70 02 kwrite KDE gedit 2.11

71

72 02 (1) (2) Lab02 (3) Lab02 (4) Lab02 (5) Lab02 (6) $ ls $ ls -a $ ls -l $ ls -al $ ls -d $ ls -F $ ls -u $ ls /tmp $ ls /etc

73 $ ls /etc/passwd $ ls -asl /etc/passwd $ mkdir unix $ cd unix $ cp /etc/motd test.txt $ ls $ cp /etc/motd. $ mkdir Temp $ cp test.txt Temp $ cp Temp Tmp // $ ls $ cp -r Temp Tmp $ ls Temp $ ls Tmp $ cd unix $ ls -l $ chmod 644 test.txt $ ls -l $ chmod 666 test.txt $ ls -l $ chmod 400 test.txt $ ls -l $ cd Tmp $ ls $ rm -i test.txt $ cd.. $ ls Tmp

74 02 $ rmdir Tmp $ rm -r Temp $ ls gedit kwrite (intro) $ cat intro $ cat -n intro $ more intro $ tail intro $ tail -5 intro $ tail +5 intro $ tail -f intro cp 8 (1) rwxr-xr-x (2) rw-r--r-- (3) rw-rw---- (4) r-xr--r--

75 Unix / Linux 03

76 Unix / Linux 03 X X (GUI) 1984 MIT 1987 X X X X X11R6 X 2004 X.org ( X11R7 3 X 1. 2.

77 X X X X xdmgdmkdm X (X display manager) X 3.1 (CentOS) X 3.2

78 X $ % X $ startx $ xinit X X (window manager) MS OS X X 3

79 03 X X X TWMMWMFVWM (Window Maker) (After Step) (Enlightenment) TWM(Timeless Window Manager) X X FVWM(F Virtual Window Manager) TWM (Window Maker) GUI

80 (After Step) FVWM GUI (Enlightenment) GNOMEKDE (Desktop Environment) MS GNOME KDE(K Desktop Environment) CDE(Common Desktop Environment)Xfce CDE GNOME KDE GNOME KDE X X GNOME KDE

81 03 GNOME(GNU Network Object Model Environment) X GNOME BSD GNOME GNOME GNOME GNOME GNOME

82

83 GNOME DVD-ROM 3.8 DVD-ROM DVD-ROM (arag and drop) 3.7 [Open in Terminal]

84 (file manager) 3.8 (Nautilus)

85 03 GNOME (Firfox)

86 KDE(K Desktop Environment) X KDE KDE KDE HP-UXBSD KDE 3.10 KDE 4

87

88 KDE URL Dophin Dolphin

89 KDE (file manager) (Dolphin) MS 3.17

90 KDE NTA(Network Transparent Access) Network URL ftp URL

91 KDE 3.19

92 X GUI X GUI X (X protocol) X X X X X X X X 3.20 X X X X X X X xterm xclock firefox X X X X X

93 03 X X X 3.20 X X X X X X GNOME KDE X X xterm xterm GNOME Terminal konsole xclock X xclock $ xclock & [1] X X X X X X DB

94 3.21 xclock X X X X X $ x -display :0 & cs2.sookmyung.ac.kr konsole 3.22 linux.sookmyung. ac.kr $ konsole -display linux.sookmyung.ac.kr:0 & # cs2

95 03 X X X SSH X X X X xhost $ xhost +[] linux.sookmyung.ac.kr cs2 $ xhost +cs2.sookmyung.ac.kr

96 + - $ xhost - MS X MS X X X X X X X X X X MS PC PCX MS X XmanagerXming MS Xmanager Xming Xmanager XDMCP(X Display Manager Control Protocol) X Xmanager 3.23 Xbrowser Xbrowser 3.24

97 03 Xbrowser (Address Bar) IP Xbrowser IP 3.25 (CentOS) 3.26

98

99 03 X (1) X X 5 (2) X (3) xhost GNOME KDE KDE GNOME X X (window manager) (file manager) MS X

100 Unix / Linux 04

101 Unix / Linux 04 (Local Area Network) LAN 4.1 (Ethernet) PARC LAN 48 MAC LAN LAN

102 04 (router) 4.2 (Gateway) 4.3 LAN (protocol)

103 (wireless access point, WAP) (Internet) TCP/IP (protocol) TCP/IP IP(Internet Protocol) IP IP IP IP TCP(Transport Control Protocol) IP HTTPFTPSMTP IP TCP TCP/IP

104 04 (hostname) IP (domain name) IP 4.1 cs.sookmyung.ac.kr cs.kaist.ac.kr cs.berkeley.edu IP IP IP IP DNS(Domain Name System) DNS nslookup(name server lookup) (domain name server)

105 $ nslookup IP $ nslookup cs.sookmyung.ac.kr Server: Address: #53 Name: cs.sookmyung.ac.kr Address: finger $ finger Login Name TTY Idle When Where chang Byeong-Mo Chang pts/5 Tue 12: $ finger chang $ finger chang Login name: chang In real life: Byeong-Mo Chang Directory: /user/faculty/chang Shell: /bin/csh On since Feb 12 21:07:26 on pts/5 from No unread mail No Plan.

106 04 wrtie $ write Ctrl-D brain $ write brain who write $ who brain pts/ :36 ( ) brain pts/ :46 ( )... $ write brain pts7 wall(write all) (shutdown) $ wall

107 $ wall System will be shut down in 5 minutes. Please logout quickly. ^D wall tty $ cat /etc/group... tty::7:root,tty,adm... mesg (y) (n) $ mesg [y n] mesg is y is n $ mesg is y write $ mesg n $ mesg y

108 04 $ ftp ftp (File Transfer Protocol, FTP) FTP FTP FTP ftp FTP FTP ftp sftp(secure ftp) sftp ftp

109 $ ftp -n $ sftp -n cs2.sookmyung.ac.kr ftp sftp $ ftp cs2.sookmyung.ac.kr Connected to cs2.sookmyung.ac.kr. 220 (vsftpd 2.0.5) Name (cs2.sookmyung.ac.kr:chang): 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> $ sftp cs2.sookmyung.ac.kr Connecting to cs2.sookmyung.ac.kr... chang@cs2.sookmyung.ac.kr's password: sftp > ftp get put ftp> get ftp> put // // cs2.sookmyung.ac.kr README ls get ftp> ls 200 PORT command successful. Consider using PASV.

110 Here comes the directory listing. Desktop README Directory send OK. 29 bytes received in seconds (3.25 Kbytes/s) ftp> get README 200 PORT command successful. Consider using PASV. 150 Opening BINARY mode data connection for README (1673 bytes). 226 File send OK. local: README remote: README 1673 bytes received in seconds (38.71 Kbytes/s) ftp> quit README $ ls -sl README 4 -rw-r--r-- 1 chang faculty :48 README mgetmput ftp 4.2!command lcd path cd path get mget * put mput * help

111 ls [path] pwd quit ascii bin (ascii mode) (binary mode) telnet ssh telnet (local host) (remote host) telnet $ telnet IP cs telnet $ telnet cs.sookmyung.ac.kr Trying Connected to cs. Escape character is '^]'.

112 04 SunOS 5.9 login: 2 telnet 4.4 cs C:\> telnet cs.sookmyung.ac.kr telnet (secure shel) ssh rshrlogintelnet ssh

113 $ $ ssh -l cs2.sookmyung.ac.kr chang $ ssh chang@cs2.sookmyung.ac.kr chang@cs2.sookmyung.ac.kr's password: $ ssh ssh who cs2.sookmyung.ac.kr $ ssh cs2.sookmyung.ac.kr who chang@cs2.sookmyung.ac.kr's password: root : :48 chang pts/ :53 2 MS ssh PuTTY PuTTY PuTTY

114 telnet ssh ssh ssh 4.6 ssh cs2 ping IP

115 $ ping eecs.mit.edu $ ping eecs.mit.edu PING EECS.mit.edu ( ) 56(84) bytes of data. 64 bytes from EECS.MIT.EDU ( ): icmp_seq=0 ttl=239 time=229 ms 64 bytes from EECS.MIT.EDU ( ): icmp_seq=1 ttl=239 time=228 ms... (CERN) (Tim Berners Lee) (World Wide Web, WWW, W3 (Web) HTTP HTML 1993 (hypertext) HTML(Hyper Text Markup Language) (Hyper Text Transfer Protocol)

116 04 HTTP (Uniform Resource Locator) '//' URL (Firefox) (web browser) WWW URL Gmail 1993 (Mosaic) 1994 (Netscape) 1995 (Internet Explorer) (Mozilla) (Firefox) (Safari) (Chrome)

117

118

119 4.9

120 04

121 telnet ssh (1) IP (2) (3) ftp sftp ftp C IP

122 Unix / Linux 05

123 Unix / Linux 05 AWKvi grep $ grep * grep you.txt grep you.txt When I am down and, oh my soul, so weary When troubles come and my heart burdened be Then, I am still and wait here in the silence Until you come and sit awhile with me

124 05 You raise me up, so I can stand on mountains You raise me up, to walk on stormy seas I am strong, when I am on your shoulders You raise me up, to more than I can be There is no life - no life without its hunger; Each restless heart beats so imperfectly; But when you come and I am filled with wonder, Sometimes, I think I glimpse eternity $ grep with you.txt Until you come and sit awhile with me There is no life - no life without its hunger; But when you come and I am filled with wonder, grep you.txt with without grep -w (word) without with $ grep -w with you.txt Until you come and sit awhile with me But when you come and I am filled with wonder, -n $ grep -n with you.txt 4:Until you come and sit awhile with me 15:There is no life - no life without its hunger; 17:But when you come and I am filled with wonder, -i (ignore)

125 $ grep -i when you.txt When I am down and, oh my soul, so weary When troubles come and my heart burdened be I am strong, when I am on your shoulders But when you come and I am filled with wonder, -v (reverse) $ grep -v raise you.txt When I am down and, oh my soul, so weary When troubles come and my heart burdened be Then, I am still and wait here in the silence Until you come and sit awhile with me I am strong, when I am on your shoulders There is no life - no life without its hunger; Each restless heart beats so imperfectly; But when you come and I am filled with wonder, Sometimes, I think I glimpse eternity (regular expression). : * : 0 a*b babaabaaab... a.* a [ ] : [ ] - [abc]d adbdcd [a-z] a z [1-9] 1 9 [^...] : [^ ] [^abc]d adbdcd edfd [^a-z]

126 05 ^, $ : 'st.*' stillstandstormystrong st 'w.*t' wait without w t $ grep -w 'st.*' you.txt Then, I am still and wait here in the silence You raise me up, so I can stand on mountains You raise me up, to walk on stormy seas I am strong, when I am on your shoulders $ grep -w 'w.*t' you.txt Then, I am still and wait here in the silence There is no life - no life without its hunger; grep egrep fgrep egrep grep -E-F grep sort $ sort [-] *

127 -r 0 -o -tc c you.txt sort $ sort you.txt But when you come and I am filled with wonder, Each restless heart beats so imperfectly; I am strong, when I am on your shoulders Sometimes, I think I glimpse eternity Then, I am still and wait here in the silence There is no life - no life without its hunger; Until you come and sit awhile with me When I am down and, oh my soul, so weary When troubles come and my heart burdened be You raise me up, so I can stand on mountains You raise me up, to more than I can be You raise me up, to walk on stormy seas 0 $ sort +2-3 you.txt Then, I am still and wait here in the silence When I am down and, oh my soul, so weary Until you come and sit awhile with me

128 05 When troubles come and my heart burdened be Each restless heart beats so imperfectly; You raise me up, so I can stand on mountains You raise me up, to more than I can be You raise me up, to walk on stormy seas There is no life - no life without its hunger; I am strong, when I am on your shoulders Sometimes, I think I glimpse eternity But when you come and I am filled with wonder, split $ split [-] [ ] -l n 1000 aa zz xaaxab... split you.txt 10 ls xaa xab $ split -l 10 you.txt $ ls -l -rw-r--r-- 1 chang faculty :36 xaa -rw-r--r-- 1 chang faculty :36 xab -rw-r--r-- 1 chang faculty :33 you.txt

129 cmp $ cmp 1 2 you.txt me.txt me.txt When I am down and, oh my soul, so weary When troubles come and my heart burdened be Then, I am still and wait here in the silence Until you come and sit awhile with me You raise me up, so I can stand on mountains You raise me up, to walk on stormy seas I am strong, when I am on your shoulders You raise me up, to more than I can be You raise me up, so I can stand on mountains You raise me up, to walk on stormy seas I am strong, when I am on your shoulders There is no life - no life without its hunger; Each restless heart beats so imperfectly; But when you come and I am filled with wonder, Sometimes, I think I glimpse eternity $ cmp you.txt me.txt you.txt me.txt : 340, 10 diff -i

130 05 $ diff 1 2 diff 9 10 ~ 13 $ diff you.txt me.txt 9a10,13 > > You raise me up, so I can stand on mountains > You raise me up, to walk on stormy seas > I am strong, when I am on your shoulders n1n2 n3n4 (a) n1 n3 n4 n1 a n3,n4 > (d) n1 n2 n3 n1,n2 d n3 <

131 (c) n1 n2 n3 n4 n1,n2 c n3,n4 < -- > (link) (-s ) ln $ ln [-s] 1 [2] $ ln [-s] + (hard link) hi.txt hello.txt $ ln hello.txt hi.txt ls -l hello.txt hi.txt $ ls -l -rw chang faculty :31 hello.txt -rw chang faculty :31 hi.txt (symbolic link) C

132 05 $ ln -s hello.txt hi.txt hi.txt hello.txt ls -l $ ls -l -rw chang faculty :31 hello.txt lrwxrwxrwx 1 chang faculty :56 hi.txt -> hello.txt find $ find [-]

133 -name -atime +n -atime -n -mtime +n -mtime -n -perm nnn -type x -size n -links n -user -group -print -exec cmd {}; n n n n nnn x n n cmd find $ find /usr -name *.c -print /usr.c. $ find. -name ping -ls ping ls. $ find. -type d -print (d). $ find. -perm 700 -ls 700 ls. $ find. -size print

134 $ find. -name core -size ls core 2048 ls. $ find. -user chang -print chang. $ find. -atime +30 -print 30. $ find. -mtime -7 -print 7. $ find. -name core -exec rm -i {} ; core rm. $ find. -name *.c -atime +30 -exec ls -l {} ; 30 *.c ls -l. cron crontab cron crontab cron crontab crontab $ crontab crontab cron. crontab

135 $ crontab -l [] crontab. $ crontab -e [] crontab. $ crontab -r [] crontab. crontab 7 6 (*) - (,) 0=1=2=3=4= 5=6= crontab cron 6:30 /home/chang/tmp chang.cron * * * rm /home/chang/tmp/* $ crontab chang.cron crontab 20 1 * * * root find /tmp -atime +3 -exec rm -f () ';' /tmp * 2,4,6,8,10, /usr/bin/wall /var/tmp/message

136 wall. at at cron at at $ at [-] sort Ctrl-D <EOT> $ at 1145 jan 31 at> sort infile > outfile at> <EOT> -f atq at at atq $ atq Rank Execution Date Owner Job Queue Job Name 1st Jan 31, :45 chang a a stdin -r $ at -r $ at -r a

137 df $ df * $ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda % / /dev/sda % /home /dev/sdb % /home1 /dev/sda % /boot tmpfs % /dev/shm du $ du [-s] * $ du 12./htdocs/graphics 258./htdocs/images 42./htdocs/lecture/math 2582./htdocs/lecture/sp/lab /htdocs/lecture/sp...

138 05 -s $ du -s tar(tape archive) tar tar tar c(create)v(verbose)x(extract)t(table of contents) f(file) tar -cvf.tar $ tar -cvf + -xvf $ tar -xvf -tvf $ tar -tvf src.tar

139 $ tar -cvf src.tar * $ tar -tvf src.tar $ tar -xvf src.tar compress Z uncompress $ compress * $ uncompress.z* gzip ZIP.gz -d $ gzip * $ gzip -d.gz* compress gzip

140 05 gzip src.tar.gz $ tar -cvf src.tar * $ gzip src.tar gzip -d src.tar tar -xvf $ gzip -d src.tar.gz $ tar -xvf src.tar AWK AWK Alfred Aho, Peter Weinberger, Brian Kernighan AWK awk awk -f awk -F c $ awk [-Fc] * $ awk [-Fc] [-f ] * awk [ ] [ { } ]

141 awk NF(Number of Fields) $0 you.txt $ awk { print NF, $0 } you.txt 10 When I am down and, oh my soul, so weary 8 When troubles come and my heart burdened be 10 Then, I am still and wait here in the silence 8 Until you come and sit awhile with me 0 10 You raise me up, so I can stand on mountains 9 You raise me up, to walk on stormy seas 9 I am strong, when I am on your shoulders 10 You raise me up, to more than I can be 0 10 There is no life - no life without its hunger; 6 Each restless heart beats so imperfectly; 10 But when you come and I am filled with wonder, 6 Sometimes, I think I glimpse eternity NF $NF $ awk { print $1, $3, $NF } you.txt When am weary When come be Then, am silence Until come me You me mountains

142 05 You me seas I strong, shoulders You me be There no hunger; Each heart imperfectly; But you wonder, Sometimes, think eternity NR 1 4 $ awk NR > 1 && NR < 4 { print NR, $1, $3, $NF } you.txt 2 When come be 3 Then, am silence grep BEGIN // END // // // 1, 2 // 1 2 (action) C if () [else ] while () for ( ; ; ) break continue =

143 print [ ] printf [, ] next // exit // { } awk ex1.awk BEGIN { print " :", FILENAME } { print $1, $NF } END { print " " } ex1.awk you.txt -f $ awk -f ex1.awk you.txt : you.txt When weary When be Then, silence Until me You mountains You seas I shoulders You be There hunger; Each imperfectly; But wonder,

144 05 Sometimes, eternity ex2.awk BEGIN { print " " } { printf "line %d: %d \n", NR, NF; line++; word + = NF } END { printf " = %d, = %d\n", line, word } $ awk -f ex2.awk you.txt line 1: 10 line 2: 8 line 3: 10 line 4: 8 line 5: 0 line 6: 10 line 7: 9 line 8: 9 line 9: 10 line 10: 0 line 11: 10 line 12: 6 line 13: 10 line 14: 6 = 14, = 106

145 ex3.awk { for (I = 1; I <= NF; I += 2) printf "%s ", $I printf " \n" } $ awk -f ex3.awk you.txt When am and, my so When come my burdened Then, am and here the Until come sit with You me so can on You me to on seas I strong, I on shoulders You me to than can There no - life its Each heart so But you and am with Sometimes, think glimpse st e ex4.awk /st.*e/ {print $0 } $ awk -f ex4.awk you.txt Then, I am still and wait here in the silence You raise me up, to walk on stormy seas

146 05 I am strong, when I am on your shoulders Each restless heart beats so imperfectly; strong heart ex4.awk /strong/, /heart/ { print $0 } $ awk -f ex5.awk you.txt I am strong, when I am on your shoulders You raise me up, to more than I can be There is no life - no life without its hunger; Each restless heart beats so imperfectly; vi vi $ vi * vi 5.1

147 you.txt5.2 vi (command mode)(input mode) vi vi GUI vi vi

148 05 iiooaa ESC ZZ :wq (ZZ ) :q :q!

149 vi 5 (1) (2) (3) (4) (5) h, j, k, l, BACKSPACE SPACE -

150 05 + RETURN 0 $ ^ w b ^F ^B ^D ^U ng n 1G G :n n /? /? /?

151 i a I A o O ESC r ESC r R s C cc cw s s :s// :n,m s// (n m)

152 05 :n s// (n) (.) 3, ,$., ,$ think THINK 1,$ s/think/think/g u (Undo) U. (Redo) x X D dd :n,m d n m

153 ny :n,m y n n m p P (write) :w. :w. :wq. ZZ. :e. :e!. :e#. :set number :se nu :set nonumber

154 05 :se non vi :! Enter vi :!ls :!cat test.c ls. cat test.c.

155 (1) tar (2) tar (3) ftp (4) tar (5) tar vi M M M F M F F 2

156 05 2 awk.txt linux.txt. /etc/passwd C.txt *.h (1) (*) awk (2) awk

157 (3) awk C 8

158 Unix / Linux 06

159 Unix / Linux 06 (shell) (Shell) (command processor)

160 C Bash tcsh /bin/sh /bin/ksh /bin/csh /bin/bash /bin/tcsh 2 (Bourne shell) AT&T (Stephen Bourne) (Korn shell) 6.2 (Bourne again shell) GNU OS X Bash Bash (Bill Joy) C (C shell) BSD

161 (login shell) /etc/passwd /etc/passwd /etc/passwd... root:x:0:1:super-user:/:/bin/csh... chang:x:109:101:byeong-mo Chang:/user/faculty/chang:/bin/csh C C C $ C % $ csh %... % exit $

162 06 chsh $ chsh Changing login shell for chang Old shell : /bin/sh New shell : /bin/csh $ logout login : chang passwd: % 3

163 3 6.3

164 06 (start-up file) /etc/profile ~/.profile /etc/profile /etc/bashrc ~/.bash_profile ~/.bashrc /etc/.login ~/.login ~/.cshrc

165 7 8 Bash C $ = TERM $ TERM=xterm $TERM TERM $ $ echo $TERM xterm export $ export TERM env set $ env HOSTNAME=CS2

166 06 HOST=CS2 TERM=xterm SHELL=/bin/sh GROUP=faculty USER=chang... /etc/profile.profile ~/.profile.profile PATH=$PATH:/usr/local/bin:/etc TERM=vt100 export PATH TERM stty erase ^.profile (.).profile $..profile

167 (built-in command) echocd $ echo -n * $ cd (utility program) PATH PATH PATH =.:/bin:/usr/bin:/usr/local/bin:/etc ls /bin/ls $ ls 2

168 06 $ > (append) $ >> $ < (here document) $ << $ 1 2

169 (command sequence) $ 1; ; n $ date; who; pwd (command group) $ (1; ; n) pwd out1.txt out2.txt $ date; who; pwd > out1.txt $ (date; who; pwd) > out2.txt (conditional command sequence) && $ 1 && 2

170 06 a.out $ gcc myprog.c && a.out $ 2 $ gcc myprog.c echo (wildcard character) *? [..] *.c C.c C $ gcc *.c.c (a.c, b.c, c.c)

171 $ gcc a.c b.c c.c.txt $ ls *.txt a c $ ls [ac]* (command substitution) (`) `date` date $ echo `date` `ls wc -w` echo $ echo : `ls wc -w` : 32 3

172 06 3 * 4 = * $ echo 3 * 4 = 12 3 cat.csh count.csh grade.csh invite.csh menu.csh test.sh = 12 $ echo "3 * 4 = 12" 3 * 4 = 12 $ echo '3 * 4 = 12' 3 * 4 = 12 echo echo $name `date` $ name= $ echo ' $name `date`' $name `date` $ echo " $name `date`" (') 2. (") 3.

173 (Shell script) 1. #! #!/bin/csh #!/bin/ksh #!/bin/bash #!/bin/sh 2. # C 3. (1)

174 06 test.sh echo datewhouptime test.sh #!/bin/sh echo : date echo : who echo : uptime (2) chmod $ chmod +x test.sh (3) $ test.sh : : brain pts/ :25 chang pts/ :40... : , 18:55, 5 users, : 0.00, 0.00, Bash C

175 (process) (job) ps ps CPU $ ps PID TTY TIME CMD pts/3 00:00:00 csh pts/3 00:00:00 ps $ ps [-] BSD V (man) BSD psps -aps -aux -a: -u: -x: V psps -ef -e:

176 06 -f: sleep $ sleep sleep 5 $ (echo ; sleep 5; echo ) kill $ kill [-] SIGTERM kill kill -9 SIGKILL 1230 $ (echo ; sleep 5; echo ) & 1230 $ kill 1230 wait

177 $ wait [] $ (sleep 10; echo 1 ) & 1231 $ echo 2 ; wait 1231; echo $ (sleep 10; echo 1 ) & $ (sleep 10; echo 2 ) & $ echo 3 ; wait; echo exit (exit code) $exit [] nohup nohup

178 06 $ nohup [ & nohup.out nice id batch ID ID 6.2 cdecho evalexec shiht eval `echo x=5 ` x=5 x 5 $ eval `echo x=5` $ echo $x 5 exec

179 date exec 12 $ exec date shift shift $2... $n $1... $n-1 shift shift.sh #!/bin/sh echo $1, $* shift echo $1, $* $ shift.sh a b c d a, a b c d b, b c d

180 06.profile echo Hello Shell! PATH=$PATH:/usr/local/bin:. TERM=vt100 export PATH TERM stty erase ^H $..profile $ echo $PATH C ps C $ echo $SHELL /bin/sh $ ps $ csh % ps... % exit $ ps

181 ($1) $ date; who; pwd > out1.txt $ (date; who; pwd) > out2.txt $ ps -aux $ ps -ef $ id $ echo $SHELL #!/bin/sh echo $1, $* shift echo $1, $* shift echo $1, $* chsh

182 06 C C /tmp.txt $ ls -l * > list

183 Unix / Linux 07

184 Unix / Linux 07 (Borune-again shell) GNU (Brian Fox) 1989 OS X Bash Bash Bash Bash.bash_history Bash Bash (ksh) C (csh) Bash Bash (stdout) (stderr) Bash Bash (start-up file) /etc/profile

185 07 /etc/bashrc ~/.bash_profile ~/.bashrc 7.1 /etc/profile.bash_profile.bashrc.bash_profile /etc/profile #.bash_profile if [ -f ~/.bashrc ] then. ~/.bashrc

186 fi # PATH=$PATH:$HOME/bin BASH_ENV=$HOME/.bashrc USERNAME="root" export USERNAME BASH_ENV PATH 7.1 if bashrc.bash_profile.bashrc PATH BASH_ENV USERNAME export PATH ':' $PATH $HOME/bin.bashrc.bash_profile (alias) /etc/bashrc ~/.bash_profile ~/.bashrc /etc/bashrc #.bashrc # alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' alias ll='ls -al --color=yes'

187 07 # if [ -f /etc/bashrc ] then. /etc/bashrc fi Bash alias $ alias = ls -af dir $ alias dir=ls -af $ dir $ alias h=history $ alias list=ls -l

188 $ alias # dir ls -af h history list ls -l unalias $ unalias Bash $ history [-rh] [] history $ history 1 ls 2 who 3 env 4 vi test.sh 5 chmod +x test.sh 6 test.sh 7 ls 8 gcc test.c 9 history... HISTSIZE $ HISTSIZE=100

189 07 HISTFIESIZE.bash_history $ HISTFIESIZE=100 Bash 7.1!!!n n!!? $!! # $!20 # 20 $!gcc # gcc $!?test.c # test.c

190 = (simple variable) $ = city seoul $ city=seoul $ city $ echo $city seoul city city pusan city seoul pusan $ city=pusan country korea city seoul $ country=korea city=seoul

191 07 $ country= city= $ echo $country $city $ address=" " (list variable) $ =( ) cities $ cities=( ) $ 7.2

192 ${name[i]} ${name[*]} ${#name[*]} name i name name $ echo ${cities[*]} $ echo ${cities[1]} $ echo ${#cities[*]} # 3 $ echo ${cities[4]} cities cities $ cities=(${cities[*] )

193 07 $ echo ${cities[4]} read $ read 1,..., n $ read x y Merry Christmas! $ echo $x Merry $ echo $y Christmas! $ read x Merry Christmas! $ echo $x Merry Christmas!

194 (environment variable) (local variable) 7.2 export country

195 07 city $ country= city= $ export country $ echo $country $city $ sh $ echo $country $city $ ^D $ echo $country $city (predefined environment variable) $USER $TERM $PATH $HOME $SHELL $MAIL $HOSTNAME 7.3

196 $ echo = $HOME = $USER = $SHELL = /user/faculty/chang = chang = /bin/csh $ echo = $TERM = $PATH = vt100 = /bin:/usr/bin:/usr/local/bin 7.4 (predefined local variable) $$ $0 $1 ~ $9 $* $# #!/bin/bash # builtin.bash echo : $0 echo : $1 echo : $* echo : $$ $ builtin.bash hello shell : builtin.sh : hello

197 07 : hello shell : Bash (1) Bash 7.4 state.bash echodatewhouptime #!/bin/bash # state.bash echo -n : date echo : who echo : uptime (2) chmod $ chmod +x state.bash $ state.bash : : chang pts/ :40 ( ) brain pts/ :12 ( )

198 ... : , 12, 4 users, : 0.01, 0.01, 0.01 Bash Bash ifcaseforwhile if-then if then fi Bash test [ ] if `test $# -eq 1` if [ $# -ne 1 ]

199 07 [ ] 7.5 wc if-then 1 wc #!/bin/bash # : wc1.bash # wc. if [ $# -ne 1 ] then echo : $0 exit 1 fi file=$1 wc $file $ wc1.bash : wc1.bash $ wc1.bash cs1.txt cs1.txt if-then-else if then else fi

200 7.6 if-then-else #!/bin/bash # : count1.bash [ ] #. if [ $# -eq 0 ] then dir="." else dir=$1 fi echo -n $dir : ls $dir wc -l $ count1.bash. : 17 Bash ($#)

201 07 1 -eq 2 1 -ne 2 1 -gt 2 1 -ge 2 1 -lt 2 1 -le == 2 1!= 2 -n null -z null 7.7 #!/bin/bash # : reply.bash #. echo -n "?" read reply if [ $reply == " " ]

202 then echo elif [ $reply == "" ] then echo fi $ reply.bash? Bash (file-oriented operator) 7.7 -a -e -r -w -x -O -z 0 -f -d

203 wc $file wc if [ -e $file ] then wc $file else echo "! " fi # $file # $file 7.2 $dir if [ -d $dir ] then echo -n $dir : ls $dir wc -l else echo $dir\: fi (Boolean operators)! (negation) && (logical and) (logical or) uptime if [ -f $file ] && [ -w $file ]

204 then fi uptime > $file # $file if [! -e $file ] then # $file echo $file : fi if [! -d $file ] then # $dir echo $file : fi Bash $ a=2+3 "2+3" expr expr a $ a=`expr 2 + 3`

205 07 Bash let let $ let = $ let a=2*3 $ echo $a 6 $ let a=$a+2 $ echo $a 8 C $ let a*=10 $ let a++ Bash C 7.8 -! * / % + - << >> <= >= < > ==!= && & ^ and xor or

206 Bash (()) #!/bin/bash # : wc2.bash # wc. if (( $#!= 1 )) then echo : $0 exit 1 fi file=$1 wc $1 Bash declare typeset declare bash 2 declare 7.9

207 07 declare -r declare -i declare -a declare -f declare -f declare -x export let $ declare -i a # a $ a=12 $ a=a+1 # let $ echo $a $ a=12.3 # bash: 12.3: syntax error in expression (error token is ".3") $ declare -r b=23.4 # b $ b=23.5 # bash: b: readonly variable Bash ifswitchforwhile

208 if if then fi if then else fi if then elif then else fi if 7.9 #!/bin/bash # : score1.bash #.

209 07 echo -n ' : ' read score if (( $score >= 90 )) then echo A elif (( $score >= 80 )) then echo B elif (( $score >= 70 )) then echo C else echo fi $score1.bash : 85 B if case case in 1) ;; 2) ;;... *) ;; esac 7.9 case 7.10 score 10 grade case "10" "9" grade 10 9 echo A

210 #!/bin/bash # : score2.bash #. echo -n ' : ' read score let grade=$score/10 case $grade in "10" "9") echo A;; "8") echo B;; "7") echo C;; *) echo ;; esac for for in do done 7.11 person list echo echo \ #!/bin/bash # : invite.bash #.

211 07 invitee=(lee kim choi) for person in $invitee do echo " :." \ mail "${person}@gmail.com" done for $* for file in $* do... done 7.12 ls -l cut #!/bin/bash # : perm1.bash * #. if [ $# -eq 0 ] then echo : $0 * exit 1 fi echo " for file in $* do "

212 if [ -f $file ] then fileinfo=`ls -l $file` perm=`echo "$fileinfo" cut -d' ' -f1` echo "$perm $file" fi done $ perm1.bash cs1.txt cs2.txt -rw-rw-r-- cs1.txt -rw-rw-r-- cs2.txt while while do done 2 n 7.13 $j 10 while 2 ^ 1 = 2 i 2 j 1 2 ^ 1 = 2 2 ^ 10 = 1024 #!/bin/bash # : power.bash # let i=2 let j=1 while (( $j <= 10 )) do

213 07 echo '2 ^' $j = $i let i*=2 let j++ done $ power.bash 2 ^ 1 = 2 2 ^ 2 = 4 2 ^ 3 = 8 2 ^ 4 = 16 2 ^ 5 = 32 2 ^ 6 = 64 2 ^ 7 = ^ 8 = ^ 9 = ^ 10 = 1024 casewhile 7.14 case while q #!/bin/bash # : menu.bash #. echo stop=0 while (($stop == 0)) do cat << MENU d : l : w :

214 q : MENU echo -n '? ' read reply case $reply in "d") date;; "l") ls;; "w") who;; "q") stop=1;; *) echo ;; esac done $ menu.bash d : l : w : q :? d d : l : w : q :? q Bash () { }

215 07 $1,..., $n 7.15 lshead() /tmp 3 #!/bin/bash # : lshead.bash lshead() { echo ", $1" date echo " $1 3 " ls -l $1 head -4 } echo "" lshead /tmp exit 0 $lshead.bash, /tmp /tmp rw chang faculty Ex rw chang faculty Ex rw root other Ex02504

216 Bash $ bash -vx [ ] -v -x menu.bash -v $ bash -v menu.bash #!/bin/bash echo stop=0 while (($stop == 0)) do cat << MENU echo -n '? ' read reply case $reply in "d") date;; "l") ls;; "w") who;; "q") stop=1;; *) echo ;; esac done d : l : w :

217 07 q :? d d : l : w : q :? q shift shift [] for while while shift $1 #!/bin/bash # : perm2.bash * #. if [ $# -eq 0 ] then echo : $0 exit 1 fi echo " while [ $# -gt 0 ] "

218 do file=$1 if [ -f $file ] then fileinfo=`ls -l $file` perm=`echo "$fileinfo" cut -d' ' -f1` echo "$perm $file" fi shift done for * * cd $dir for file in * do... done 7.17 ($#) ($1) for file in * 1 #!/bin/bash

219 07 # : count2.bash [ ] #,,. if [ $# -eq 0 ] then dir="." else dir=$1 fi if [! -d $dir ] then echo $0\: $dir exit 1 fi let fcount=0 let dcount=0 let others=0 echo $dir\: cd $dir for file in * do if [ -f $file ] then let fcount++ elif [ -d $file ] then let dcount++ else let others++ fi done echo : $fcount : $dcount : $others $ count2.bash /user/faculty/chang: : 4 : 45 : 0

220 C (recursion) Bash Bash (head) 7.18 head rhead.bash /home/ faculty/chang/bash/rhead.bash #!/bin/bash # rhead.bash [ ] #. cd $1 for file in * do if [ -f $file ] then echo "========== $file ===========" head $file fi if [ -d $file ]

221 07 then /home/faculty/chang/bash/rhead.bash $file fi done while for $ for f in * > do > echo $f > done $ let i=2 $ let j=1 $ while (( $j <= 10 )) > do > echo '2 ^' $j = $i > let i*=2 > let j++ > done 2 ^ 1 = 2 2 ^ 2 = 4 2 ^ 3 = 8 2 ^ 4 = 16 2 ^ 5 = 32 2 ^ 6 = 64 2 ^ 7 = ^ 8 = ^ 9 = ^ 10 = 1024

222 Bash (1) : (2) [... ] (3) 2 (4) 3

223 07 (5) 4 (6) 5 Bash : listexe [ ] del del Bash -p -l : trash [-pl] * while Bash Bash #!/bin/bash let i=2 let j=1 while (( $j <= 10 )) do echo '2 *' $j = $i let i+=2 let j++ done

224 Bash : listdir [ ] yes Bash : delete [ ] 7.18 #!/bin/bash date > $1.$$ ls $1.$$ #!/bin/bash mail $1 << ENDOFTEXT - $USER ENDOFTEXT echo $1

225 Unix / Linux 08

226 Unix / Linux 08 1 C (Bill Joy) C C C C C 6 C C C OS X C tcsh 8.1 C

227 08 C C ~/.cshrc /etc/.login, ~/.login 1 ~/.cshrc 2 /etc/.login 3 ~/.login.login TERMPATH.login echo Hello, $USER! echo Welcome to UNIX

228 echo -n "Today is "; date set term = vt100 set path=(. /bin /usr/bin /usr/local/bin) set history = 40 set prompt = '\! % ' stty erase ^H.cshrc.cshrc alias h history alias dir ls -af alias ll ls -l alias m more alias x chmod +x alias % alias # ls -af dir

229 08 % alias dir ls -af % dir % alias h history % alias list ls -l % alias # dir ls -af h history list ls -l unalias % unalias C $ history [-rh] [] history % history 1 ls 2 who 3 set 4 vi test.sh 5 chmod +x test.sh 6 test.sh

230 7 ls 8 gcc test.c 9 history... history % set history = 40 savehist % set savehist = 32 \! % set prompt = '\! % ' C 8.2!!!n no!!?

231 08 %!! # %!20 # 20 %!gcc # gcc %!?test.c # test.c % > % gcc a.c > errors >& % >& errors % gcc a.c >& errors 1 2

232 % ( > 1) >& 2 out errors % (gcc a.c > out) >& errors 1 2 % 1 2 % gcc a.c wc & % 1 & 2 wc % gcc a.c & wc 1 2

233 08 % (1 > ) & 2 out wc % (gcc a.c > out) & wc C C set (simple variable) % set = city seoul % set city = seoul $ city % echo $city seoul city city pusan city seoul pusan

234 % set city = pusan % set color % set color country korea color city seoul % set country = korea color city = seoul % set country = city = % echo $country $city % set address = " "

235 08 (list variable) set % set cities % set cities = ( ) $ 8.3 $name[i] ${name[i]} $#name ${#name} name i name % echo $cities % echo $cities[1]

236 % echo $cities[2-3] # % echo $#cities # 3 % echo $cities[4] cities cities % set cities = ($cities ) % echo $cities[4]

237 08 (environment variable) (local variable) C set setenv setenv

238 = % setenv LANG ko % setenv LANG ko C (predefined local variables) 8.4 $< $argv $argv[1] = $1 $cwd $history $home $$, $n, $* $prompt $shell $path $term $< % set input = $< hello C shell! % echo $input

239 08 hello C shell! C #!/bin/csh # local.csh echo : $argv[0] echo : $argv[1] echo : $#argv echo : $home echo : $cwd echo : $shell $ local.csh hello csh : : hello : 2 : /user/faculty/chang : /user/faculty/chang/unix/csh : /bin/csh C (predefined environment variable) $HOME$USER$TERM$PATH$PWD 8.5 $HOME $USER $TERM $PATH $PWD $home $user $term $path $cwd

240 $TERMCAP $LD_LIBRARY_PATH $LOGNAME ld(linkage editor) C C (1) C 8.2 state.csh echodatewhouptime #!/bin/csh # state.csh echo -n : date echo : who echo : uptime (2) chmod % chmod +x test1.csh (3) C % state.csh

241 08 : : chang pts/ :40 ( ) brain pts/ :12 ( )... : , 12, 4 users, : 0.01, 0.01, 0.01 C C ifswitchforeachwhile if if () "yes" echo set input = $< if ( $input == "yes") echo hello world! if-then if () then endif 8.3

242 wc if-then 1 #!/bin/csh # : wc.csh # wc. if ($#argv!= 1) then echo : $argv[0] exit 1 endif set file = $argv[1] wc $file $ wc.csh : wc.csh $ wc.csh cs1.txt cs1.txt if-then-else if () then else endif 8.4 if-then-else

243 08 #!/bin/csh # : count1.csh [ ] #. if ($#argv == 0) then set dir = "." else set dir = $argv[1] endif echo -n $dir : ls $dir wc -l $ count1.csh. : 17 C 8.6 =~!~ *? ==!= =~ ==!~!=

244 8.5 #!/bin/csh # : reply.csh #. echo -n "?" set reply = $< if ($reply == " ") then echo else if ($reply =~ *) then echo endif $ reply.csh? C 8.7 (file-oriented operator)

245 08 -e -r -w -x -o -z 0 -f -d 8.3 wc $file wc if (-e $file) then # $file wc $file else # $file echo "! " endif 8.4 $dir if (-d $dir) then echo -n $dir : ls $dir wc -l else echo $dir\: endif

246 (Boolean operator)! (negation) && (logical and) (logical or) uptime if (-f $file && -w $file) then uptime > $file endif # $file if (! -e $file) then endif echo $file : # $file if (! -d $file) then endif echo $file : # $dir C % set a = 2 * 3 set

247 @ = a = 2 * 3 % echo $a 6 a = $a + 2 % echo $a 8 C a *= 10 (associativity)c C C 5 * i = 20 / 5 * 2 % echo $i 2

248 i = % echo $i 3 C C 8.8 -! * / % + - << >> <= >= < > ==!= && & ^ and xor or C ifswitchforeachwhile

249 08 if if () if () then endif if () then else endif if () then else if () then else endif if 8.6 if

250 #!/bin/csh # : score1.csh #. echo -n ' : ' set score = $< if ($score >= 90) then echo A else if ($score >= 80) then echo B else if ($score >= 70) then echo C else echo endif $score1.csh : 85 B if switch switch () case 1: breaksw case 2: breaksw... default: breaksw endsw

251 switch 8.7 score 10 grade switch case "10" case "9" breaksw grade 10 9 echo A #!/bin/csh # : score2.csh #. echo -n ' : ' set score = grade = $score / 10 switch ($grade) case "10" : case "9": echo A breaksw case "8": echo B breaksw case "7": echo C breaksw default: echo endsw foreach foreach ()

252 end 8.8 person list echo echo \ #!/bin/csh # : invite.csh #. set list = (lee kim choi) foreach $person ($list) echo :. \ mail "${person}@gmail.com" end foreach $argv foreach file ($argv)... end 8.9 ls -l 6 #!/bin/csh # : filesize1.csh * #.

253 08 if ($#argv == 0) then echo : $0 * exit 1 endif echo " ()" foreach file ($argv) if (-f $file) then set fileinfo = `ls -l $file` set size = $fileinfo[5] echo "$file $size" endif end $ filesize1.csh cs1.txt cs2.txt () cs1.txt 2088 cs2.txt 1247 while while () end 2 n 8.10 $j 10 while 2 ^ 1 = 2 i 2 j 1 2 ^ 1 = 2 2 ^ 10 = 1024 #!/bin/csh # : power.csh #

254 set i = 2 set j = 1 while ( $j <= 10 ) echo '2 ^' $j = i *= j++ end $ power.csh 2 ^ 1 = 2 2 ^ 2 = 4 2 ^ 3 = 8 2 ^ 4 = 16 2 ^ 5 = 32 2 ^ 6 = 64 2 ^ 7 = ^ 8 = ^ 9 = ^ 10 = 1024 switchwhile 8.11 switch while q #!/bin/csh # : menu.csh #. echo set stop = 0 while ($stop == 0) cat << MENU d :

255 08 l : w : q : MENU echo -n '? ' set reply = $< switch ($reply) case "d" : date breaksw case "l": ls breaksw case "w": who breaksw case "q": set stop = 1 breaksw default: echo endsw end $ menu.csh d : l : w : q :? d d : l : w : q :? q

256 C C C C % csh -vx [] -v -x -vx menu.csh -v % csh -v menu.csh echo set stop = 0 while ( $stop == 0 ) cat << MENU d : l : w : q : echo -n '? '? set reply = $< d switch ( $reply )

257 08 date breaksw end echo -n '? '? set reply = $< q switch ( $reply ) set stop = 1 breaksw end while ( $stop == 0 ) -x % csh -x menu.csh echo set stop = 0 while ( 0 == 0 ) cat d : l : w : q : echo -n?? d set reply = d switch ( d ) date breaksw end while ( 0 == 0 ) cat

258 d : l : w : q : echo -n?? q set reply = q switch ( q ) set stop = 1 breaksw end while ( 1 == 0 ) shift shift [] shift argv[2]... argv[n] argv[1]... argv[n-1] foreach while while shift argv[1]

259 08 #!/bin/csh # : filesize2.csh * #. if ($#argv == 0) then echo : $0 * exit 1 endif echo " ()" while ($#argv) set file = $argv[1] if (-f $file) then set fileinfo = `ls -l $file` set size = $fileinfo[5] echo "$file $size" endif shift end foreach * * cd $dir foreach file (*)... end ($#argv)

260 ($argv[1]) foreach file (*) 1 #!/bin/csh #,,. #: count2.csh [ ] if ($#argv == 0) then set dir = "." else set dir = $argv[1] endif if (! -d $dir) then echo $0\: $dir exit 1 fcount = dcount = others = 0 echo $dir\: cd $dir foreach file (*) if (-f $file) fcount++ else if (-d $file) dcount++ others++ endif end

261 08 echo : $fcount : $dcount : $others $ count2.csh ~ /user/faculty/chang: : 4 : 46 : 0 C C (recursion) C (head) 8.14 foreach file (*) head rhead.csh /home/faculty/chang/csh/rhead.csh #!/bin/csh # rhead.csh [ ] #. cd $argv[1]

262 foreach file (*) if (-f $file) then echo "========== $file ===========" head $file endif if (-d $file) then /home/faculty/chang/csh/rhead.csh $file endif end while foreach % foreach f (*)? if (-d $f) echo $f? end % set i = 2 % set j = 1 % while ($j <= 10)? echo '2 ^' $j = i *= j++? end 2 ^ 1 = 2 2 ^ 2 = 4 2 ^ 3 = 8 2 ^ 4 = 16 2 ^ 5 = 32 2 ^ 6 = 64

263 08 2 ^ 7 = ^ 8 = ^ 9 = ^ 10 = 1024

264 C (1) : (2) [... ] (3) 2 (4) 3

265 08 (5) 4 (6) 5 C listexe [ ] del del C -p -l trash [-pl] * while C C #!/bin/csh set i = 2 set j = 1 while ( $j <= 10 ) echo '2 *' $j = i += j++ end

266 listdir [ ] yes C delete [ ] 8.14 #!/bin/csh date > $argv[1].$$ ls $argv[1].$$ #!/bin/csh mail $argv[1] << ENDOFTEXT. - $USER ENDOFTEXT echo $argv[1].

267 Unix / Linux 09

268 Unix / Linux 09 C C C C C C (cc) C gcc(gnu cc) gcc C 9.1 longest[] longest.c #include <stdio.h> #define MAXLINE 100

chap2

chap2 Lecture 02: 리눅스사용 상지대학교컴퓨터공학과고광만 kkman@sangji.ac.kr http://compiler.sangji.ac.kr 2018 2.1 기본명령어 간단한명령어사용 $ date $ hostname $ uname $ who $ ls $ clear $ passwd 3 2.2 파일및디렉터리 파일의종류 l 일반파일 (ordinary file)

More information

제2장 유닉스 사용

제2장 유닉스 사용 1 제 2 장유닉스사용 2 2.1 기본명령어 간단한명령어사용 $ date : 현재날짜및시간을확인 $ hostname : 사용하고있는호스트이름을확인 $ uname : 현재사용하고있는운영체제를확인 $ who : 현재로그인한사용자를확인 $ ls : 현재디렉터리내의파일목록을확인 $ clear : 화면을깨끗이하고화면의첫째줄에프롬프트를표시 $ passwd : 패스워드를변경

More information

6주차.key

6주차.key 6, Process concept A program in execution Program code PCB (process control block) Program counter, registers, etc. Stack Heap Data section => global variable Process in memory Process state New Running

More information

<C0CCBCBCBFB52DC1A4B4EBBFF82DBCAEBBE7B3EDB9AE2D313939392D382E687770>

<C0CCBCBCBFB52DC1A4B4EBBFF82DBCAEBBE7B3EDB9AE2D313939392D382E687770> i ii iii iv v vi 1 2 3 4 가상대학 시스템의 국내외 현황 조사 가상대학 플랫폼 개발 이상적인 가상대학시스템의 미래상 제안 5 웹-기반 가상대학 시스템 전통적인 교수 방법 시간/공간 제약을 극복한 학습동기 부여 교수의 일방적인 내용전달 교수와 학생간의 상호작용 동료 학생들 간의 상호작용 가상대학 운영 공지사항,강의록 자료실, 메모 질의응답,

More information

Microsoft PowerPoint - comp_prac_081223_2.pptx

Microsoft PowerPoint - comp_prac_081223_2.pptx Computer Programming Practice (2008 Winter) Practice 2 기본 Unix/Linux 명령어숙지 2008. 12. 23 Contents Linux commands Basic commands File and Directory User Data Filtering Process Etc Conclusion & Recommended

More information

휠세미나3 ver0.4

휠세미나3 ver0.4 andromeda@sparcs:/$ ls -al dev/sda* brw-rw---- 1 root disk 8, 0 2014-06-09 18:43 dev/sda brw-rw---- 1 root disk 8, 1 2014-06-09 18:43 dev/sda1 brw-rw---- 1 root disk 8, 2 2014-06-09 18:43 dev/sda2 andromeda@sparcs:/$

More information

Sena Technologies, Inc. HelloDevice Super 1.1.0

Sena Technologies, Inc. HelloDevice Super 1.1.0 HelloDevice Super 110 Copyright 1998-2005, All rights reserved HelloDevice 210 ()137-130 Tel: (02) 573-5422 Fax: (02) 573-7710 E-Mail: support@senacom Website: http://wwwsenacom Revision history Revision

More information

본문서는 초급자들을 대상으로 최대한 쉽게 작성하였습니다. 본문서에서는 설치방법만 기술했으며 자세한 설정방법은 검색을 통하시기 바랍니다. 1. 설치개요 워드프레스는 블로그 형태의 홈페이지를 빠르게 만들수 있게 해 주는 프로그램입니다. 다양한 기능을 하는 플러그인과 디자인

본문서는 초급자들을 대상으로 최대한 쉽게 작성하였습니다. 본문서에서는 설치방법만 기술했으며 자세한 설정방법은 검색을 통하시기 바랍니다. 1. 설치개요 워드프레스는 블로그 형태의 홈페이지를 빠르게 만들수 있게 해 주는 프로그램입니다. 다양한 기능을 하는 플러그인과 디자인 스마일서브 CLOUD_Virtual 워드프레스 설치 (WORDPRESS INSTALL) 스마일서브 가상화사업본부 Update. 2012. 09. 04. 본문서는 초급자들을 대상으로 최대한 쉽게 작성하였습니다. 본문서에서는 설치방법만 기술했으며 자세한 설정방법은 검색을 통하시기 바랍니다. 1. 설치개요 워드프레스는 블로그 형태의 홈페이지를 빠르게 만들수 있게

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 (Host) set up : Linux Backend RS-232, Ethernet, parallel(jtag) Host terminal Target terminal : monitor (Minicom) JTAG Cross compiler Boot loader Pentium Redhat 9.0 Serial port Serial cross cable Ethernet

More information

MySQL-Ch10

MySQL-Ch10 10 Chapter.,,.,, MySQL. MySQL mysqld MySQL.,. MySQL. MySQL....,.,..,,.,. UNIX, MySQL. mysqladm mysqlgrp. MySQL 608 MySQL(2/e) Chapter 10 MySQL. 10.1 (,, ). UNIX MySQL, /usr/local/mysql/var, /usr/local/mysql/data,

More information

제2장 리눅스 사용

제2장 리눅스 사용 제 2 장리눅스사용 리눅스시스템프로그래밍 청주대학교전자공학과 한철수 목차 기본명령어 파일및디렉터리 파일속성 입출력재지정및파이프 후면처리및프로세스 문서편집기 2 2.1 절 기본명령어 $ date // 날짜및시간을출력함. $ hostname // 호스트명을출력함. $ uname // 시스템정보를출력함. $ who // 현재로그인한사용자정보를출력함. $ ls //

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 BASIC COMMANDS Jo, Heeseung ITER 서버 iterx.jbnu.ac.kr (X: 1,2) Dell PowerEdge R415 AMD Opteron(tm) Processor 4180-6 core x 2ea Memory: 32 GB HDD: SCSI 450 GB 주의사항 자료백업없음 동영상등의불필요파일업로드금지 2 LINUX 접속 Client

More information

28 THE ASIAN JOURNAL OF TEX [2] ko.tex [5]

28 THE ASIAN JOURNAL OF TEX [2] ko.tex [5] The Asian Journal of TEX, Volume 3, No. 1, June 2009 Article revision 2009/5/7 KTS THE KOREAN TEX SOCIETY SINCE 2007 2008 ko.tex Installing TEX Live 2008 and ko.tex under Ubuntu Linux Kihwang Lee * kihwang.lee@ktug.or.kr

More information

chapter4

chapter4 Basic Netw rk 1. ก ก ก 2. 3. ก ก 4. ก 2 1. 2. 3. 4. ก 5. ก 6. ก ก 7. ก 3 ก ก ก ก (Mainframe) ก ก ก ก (Terminal) ก ก ก ก ก ก ก ก 4 ก (Dumb Terminal) ก ก ก ก Mainframe ก CPU ก ก ก ก 5 ก ก ก ก ก ก ก ก ก ก

More information

10X56_NWG_KOR.indd

10X56_NWG_KOR.indd 디지털 프로젝터 X56 네트워크 가이드 이 제품을 구입해 주셔서 감사합니다. 본 설명서는 네트워크 기능 만을 설명하기 위한 것입니다. 본 제품을 올바르게 사 용하려면 이 취급절명저와 본 제품의 다른 취급절명저를 참조하시기 바랍니다. 중요한 주의사항 이 제품을 사용하기 전에 먼저 이 제품에 대한 모든 설명서를 잘 읽어 보십시오. 읽은 뒤에는 나중에 필요할 때

More information

Copyright 2004 Sun Microsystems, Inc Network Circle, Santa Clara, CA U.S.A..,,. Sun. Sun. Berkeley BSD. UNIX X/Open Company, Ltd.. Sun, Su

Copyright 2004 Sun Microsystems, Inc Network Circle, Santa Clara, CA U.S.A..,,. Sun. Sun. Berkeley BSD. UNIX X/Open Company, Ltd.. Sun, Su Java Desktop System 2 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054 U.S.A. : 817 7757 10 2004 9 Copyright 2004 Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, CA 95054 U.S.A..,,.

More information

강의10

강의10 Computer Programming gdb and awk 12 th Lecture 김현철컴퓨터공학부서울대학교 순서 C Compiler and Linker 보충 Static vs Shared Libraries ( 계속 ) gdb awk Q&A Shared vs Static Libraries ( 계속 ) Advantage of Using Libraries Reduced

More information

Assign an IP Address and Access the Video Stream - Installation Guide

Assign an IP Address and Access the Video Stream - Installation Guide 설치 안내서 IP 주소 할당 및 비디오 스트림에 액세스 책임 본 문서는 최대한 주의를 기울여 작성되었습니다. 잘못되거나 누락된 정보가 있는 경우 엑시스 지사로 알려 주시기 바랍니다. Axis Communications AB는 기술적 또는 인쇄상의 오류에 대해 책 임을 지지 않으며 사전 통지 없이 제품 및 설명서를 변경할 수 있습니다. Axis Communications

More information

Remote UI Guide

Remote UI Guide Remote UI KOR Remote UI Remote UI PDF Adobe Reader/Adobe Acrobat Reader. Adobe Reader/Adobe Acrobat Reader Adobe Systems Incorporated.. Canon. Remote UI GIF Adobe Systems Incorporated Photoshop. ..........................................................

More information

LXR 설치 및 사용법.doc

LXR 설치 및 사용법.doc Installation of LXR (Linux Cross-Reference) for Source Code Reference Code Reference LXR : 2002512( ), : 1/1 1 3 2 LXR 3 21 LXR 3 22 LXR 221 LXR 3 222 LXR 3 3 23 LXR lxrconf 4 24 241 httpdconf 6 242 htaccess

More information

PCServerMgmt7

PCServerMgmt7 Web Windows NT/2000 Server DP&NM Lab 1 Contents 2 Windows NT Service Provider Management Application Web UI 3 . PC,, Client/Server Network 4 (1),,, PC Mainframe PC Backbone Server TCP/IP DCS PLC Network

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 BASIC COMMANDS Jo, Heeseung ITER 서버 iterx.jbnu.ac.kr (X: 1,2) Dell PowerEdge R415 AMD Opteron(tm) Processor 4180-6 core x 2ea Memory: 32 GB HDD: SCSI 450 GB 주의사항 자료백업없음 동영상등의불필요파일업로드금지 2 LINUX 접속 Client

More information

초보자를 위한 C++

초보자를 위한 C++ C++. 24,,,,, C++ C++.,..,., ( ). /. ( 4 ) ( ).. C++., C++ C++. C++., 24 C++. C? C++ C C, C++ (Stroustrup) C++, C C++. C. C 24.,. C. C+ +?. X C++.. COBOL COBOL COBOL., C++. Java C# C++, C++. C++. Java C#

More information

Copyright 2012, Oracle and/or its affiliates. All rights reserved.,.,,,,,,,,,,,,.,...,. U.S. GOVERNMENT END USERS. Oracle programs, including any oper

Copyright 2012, Oracle and/or its affiliates. All rights reserved.,.,,,,,,,,,,,,.,...,. U.S. GOVERNMENT END USERS. Oracle programs, including any oper Windows Netra Blade X3-2B( Sun Netra X6270 M3 Blade) : E37790 01 2012 9 Copyright 2012, Oracle and/or its affiliates. All rights reserved.,.,,,,,,,,,,,,.,...,. U.S. GOVERNMENT END USERS. Oracle programs,

More information

Network seminar.key

Network seminar.key Intro to Network .. 2 4 ( ) ( ). ?!? ~! This is ~ ( ) /,,,???? TCP/IP Application Layer Transfer Layer Internet Layer Data Link Layer Physical Layer OSI 7 TCP/IP Application Layer Transfer Layer 3 4 Network

More information

Solaris Express Developer Edition

Solaris Express Developer Edition Solaris Express Developer Edition : 2008 1 Solaris TM Express Developer Edition Solaris OS. Sun / Solaris, Java, Web 2.0,,. Developer Solaris Express Developer Edition System Requirements. 768MB. SPARC

More information

<4D6963726F736F667420506F776572506F696E74202D2030342E20C0CEC5CDB3DD20C0C0BFEB20B9D720BCADBAF1BDBA20B1E2BCFA2831292E70707478>

<4D6963726F736F667420506F776572506F696E74202D2030342E20C0CEC5CDB3DD20C0C0BFEB20B9D720BCADBAF1BDBA20B1E2BCFA2831292E70707478> 웹과 인터넷 활용 및실습 () (Part I) 문양세 강원대학교 IT대학 컴퓨터과학전공 강의 내용 전자우편(e-mail) 인스턴트 메신저(instant messenger) FTP (file transfer protocol) WWW (world wide web) 인터넷 검색 홈네트워크 (home network) Web 2.0 개인 미니홈페이지 블로그 (blog)

More information

01Àå

01Àå CHAPTER 01 1 Fedora Fedora Linux Toolbox 2003 Fedora Core( ) http://fedoraproject.org www.redhat.com 2 CHAPTER Fedora RHEL GNU public license www.centos.org www.yellowdoglinux.com www. lineox.net www.

More information

Backup Exec

Backup Exec (sjin.kim@veritas.com) www.veritas veritas.co..co.kr ? 24 X 7 X 365 Global Data Access.. 100% Storage Used Terabytes 9 8 7 6 5 4 3 2 1 0 2000 2001 2002 2003 IDC (TB) 93%. 199693,000 TB 2000831,000 TB.

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 UNIX 및실습 5 장. Bash 활용하기 학습목표 5 장. Bash 활용하기 Bash 쉘이제공하는다양한기능을이해하고활용한다. 환경변수를이용해작업의효율을높이는환경을설정하는방법을익힌다. 환경설정파일을이용해자신만의환경을설정하는방법을익힌다. Section 01 기본사용법익히기 쉘? 사용자와커널사이의중간역할 사용자가입력한명령을처리하고실행결과를알려줌 쉘의종류 Bourne

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 오픈소스소프트웨어개발입문 (CP33992) Linux 명령어사용법 부산대학교공과대학정보컴퓨터공학부 학습목표 리눅스시스템에서프로그래밍을개발하는데유용한다양한유닉스 쉘명령어사용법을알수있다. 2 C 프로그래밍기초연습 아래의프로그램을 vi 로작성하시오 $ vi myprog.c #include int main() { printf( Hello Linux\n

More information

USB USB DV25 DV25 REC SRN-475S REC SRN-475S LAN POWER LAN POWER Quick Network Setup Guide xdsl/cable Modem PC DVR 1~3 1.. DVR DVR IP xdsl Cable xdsl C

USB USB DV25 DV25 REC SRN-475S REC SRN-475S LAN POWER LAN POWER Quick Network Setup Guide xdsl/cable Modem PC DVR 1~3 1.. DVR DVR IP xdsl Cable xdsl C USB USB DV25 DV25 REC SRN-475S REC SRN-475S LAN POWER LAN POWER Quick Network Setup Guide xdsl/cable Modem PC DVR 1~3 1.. DVR DVR IP xdsl Cable xdsl Cable PC PC Step 1~5. Step, PC, DVR Step 1. Cable Step

More information

소개 TeraStation 을 구입해 주셔서 감사합니다! 이 사용 설명서는 TeraStation 구성 정보를 제공합니다. 제품은 계속 업데이트되므로, 이 설명서의 이미지 및 텍스트는 사용자가 보유 중인 TeraStation 에 표시 된 이미지 및 텍스트와 약간 다를 수

소개 TeraStation 을 구입해 주셔서 감사합니다! 이 사용 설명서는 TeraStation 구성 정보를 제공합니다. 제품은 계속 업데이트되므로, 이 설명서의 이미지 및 텍스트는 사용자가 보유 중인 TeraStation 에 표시 된 이미지 및 텍스트와 약간 다를 수 사용 설명서 TeraStation Pro II TS-HTGL/R5 패키지 내용물: 본체 (TeraStation) 이더넷 케이블 전원 케이블 TeraNavigator 설치 CD 사용 설명서 (이 설명서) 제품 보증서 www.buffalotech.com 소개 TeraStation 을 구입해 주셔서 감사합니다! 이 사용 설명서는 TeraStation 구성 정보를

More information

Copyright 2012, Oracle and/or its affiliates. All rights reserved.,,,,,,,,,,,,,.,..., U.S. GOVERNMENT END USERS. Oracle programs, including any operat

Copyright 2012, Oracle and/or its affiliates. All rights reserved.,,,,,,,,,,,,,.,..., U.S. GOVERNMENT END USERS. Oracle programs, including any operat Sun Server X3-2( Sun Fire X4170 M3) Oracle Solaris : E35482 01 2012 9 Copyright 2012, Oracle and/or its affiliates. All rights reserved.,,,,,,,,,,,,,.,..., U.S. GOVERNMENT END USERS. Oracle programs, including

More information

APOGEE Insight_KR_Base_3P11

APOGEE Insight_KR_Base_3P11 Technical Specification Sheet Document No. 149-332P25 September, 2010 Insight 3.11 Base Workstation 그림 1. Insight Base 메인메뉴 Insight Base Insight Insight Base, Insight Base Insight Base Insight Windows

More information

Microsoft PowerPoint - ch02_인터넷 이해와 활용.ppt

Microsoft PowerPoint - ch02_인터넷 이해와 활용.ppt 컴퓨터 활용과 실습 원리를 알면 IT가 맛있다 chapter 2. 윈도우XP, 한글25, 엑셀23, 파워포인트23 인터넷 이해와 활용 www.hanb.co.kr -1- 학습목표 목차 통신과 네트워크의 개념 통신과 네트워크 컴퓨터 통신망 인터넷정의및역사 인터넷주소체계 인터넷 정의와 역사 인터넷 주소 웹서비스의정의및특징 웹 서비스 웹 브라우저의 기능 웹 브라우저

More information

슬라이드 1

슬라이드 1 / 유닉스시스템개요 / 파일 / 프로세스 01 File Descriptor file file descriptor file type unix 에서의파일은단지바이트들의나열임 operating system 은파일에어떤포맷도부과하지않음 파일의내용은바이트단위로주소를줄수있음 file descriptor 는 0 이나양수임 file 은 open 이나 creat 로 file

More information

1217 WebTrafMon II

1217 WebTrafMon II (1/28) (2/28) (10 Mbps ) Video, Audio. (3/28) 10 ~ 15 ( : telnet, ftp ),, (4/28) UDP/TCP (5/28) centralized environment packet header information analysis network traffic data, capture presentation network

More information

PWR PWR HDD HDD USB USB Quick Network Setup Guide xdsl/cable Modem PC DVR 1~3 1.. DVR DVR IP xdsl Cable xdsl Cable PC PC DDNS (

PWR PWR HDD HDD USB USB Quick Network Setup Guide xdsl/cable Modem PC DVR 1~3 1.. DVR DVR IP xdsl Cable xdsl Cable PC PC DDNS ( PWR PWR HDD HDD USB USB Quick Network Setup Guide xdsl/cable Modem PC DVR 1~3 1.. DVR DVR IP xdsl Cable xdsl Cable PC PC DDNS (http://ddns.hanwha-security.com) Step 1~5. Step, PC, DVR Step 1. Cable Step

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 Install the PDI on CentOS 2013.04 G L O B E P O I N T 1 Ⅰ linux 구성 II Pentaho Install 2013, Globepoint Inc. All Rights Reserved. 2 I. Linux 구성 2013, Globepoint Inc. All Rights Reserved. 3 IP 설정 1. 설정파일

More information

What is Unix? A multi-task and multi-user Operating System Developed in 1969 at AT&T s Bell Labs by Ken Thompson (Unix) Dennis Ritchie (C) Douglas Mcl

What is Unix? A multi-task and multi-user Operating System Developed in 1969 at AT&T s Bell Labs by Ken Thompson (Unix) Dennis Ritchie (C) Douglas Mcl Linux Taesoo Kwon Dept. of Compupter Science Hanyang University What is Unix? A multi-task and multi-user Operating System Developed in 1969 at AT&T s Bell Labs by Ken Thompson (Unix) Dennis Ritchie (C)

More information

untitled

untitled Push... 2 Push... 4 Push... 5 Push... 13 Push... 15 1 FORCS Co., LTD A Leader of Enterprise e-business Solution Push (Daemon ), Push Push Observer. Push., Observer. Session. Thread Thread. Observer ID.

More information

/chroot/lib/ /chroot/etc/

/chroot/lib/ /chroot/etc/ 구축 환경 VirtualBox - Fedora 15 (kernel : 2.6.40.4-5.fc15.i686.PAE) 작동 원리 chroot유저 ssh 접속 -> 접속유저의 홈디렉토리 밑.ssh의 rc 파일 실행 -> daemonstart실행 -> daemon 작동 -> 접속 유저만의 Jail 디렉토리 생성 -> 접속 유저의.bashrc 의 chroot 명령어

More information

6강.hwp

6강.hwp ----------------6강 정보통신과 인터넷(1)------------- **주요 키워드 ** (1) 인터넷 서비스 (2) 도메인네임, IP 주소 (3) 인터넷 익스플로러 (4) 정보검색 (5) 인터넷 용어 (1) 인터넷 서비스******************************* [08/4][08/2] 1. 다음 중 인터넷 서비스에 대한 설명으로

More information

목 차 Ⅰ. 일반사항 1 Ⅱ. 특기사항 3 Ⅲ. 물품내역 및 세부규격 8 Ⅳ. 주의사항 11-2 -

목 차 Ⅰ. 일반사항 1 Ⅱ. 특기사항 3 Ⅲ. 물품내역 및 세부규격 8 Ⅳ. 주의사항 11-2 - 대전마케팅공사 경영정보포털 구축 사업 패키지 소프트웨어 2식 구매 설치 시방서 (소프트웨어 2식) 2016. 06. 대전마케팅공사 경 영 지 원 파 트 목 차 Ⅰ. 일반사항 1 Ⅱ. 특기사항 3 Ⅲ. 물품내역 및 세부규격 8 Ⅳ. 주의사항 11-2 - Ⅰ. 일반사항 1. 목적 본 시방서는 대전마케팅공사가 추진하고 있는 경영정보포털 사업의 패키지 소프트웨어 도입을

More information

Mango220 Android How to compile and Transfer image to Target

Mango220 Android How to compile and Transfer image to Target Mango220 Android How to compile and Transfer image to Target http://www.mangoboard.com/ http://cafe.naver.com/embeddedcrazyboys Crazy Embedded Laboratory www.mangoboard.com cafe.naver.com/embeddedcrazyboys

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 UNIX 및실습 10 장. 인터넷과통신명령 익히기 1 10 장. 인터넷과통신명령익히기 학습목표 유닉스에서사용자간직접통신하는명령의사용방법을익힌다. 호스트명과도메인명, 개인정보를확인하는방법을익힌다. 전자메일을사용하는방법을익힌다. 파일을송수신하는명령의사용방법을익힌다. 2 Section 01 사용자간직접통신 write [1/4] write 로그인 ID [ 단말기명

More information

SRC PLUS 제어기 MANUAL

SRC PLUS 제어기 MANUAL ,,,, DE FIN E I N T R E A L L O C E N D SU B E N D S U B M O TIO

More information

ORANGE FOR ORACLE V4.0 INSTALLATION GUIDE (Online Upgrade) ORANGE CONFIGURATION ADMIN O

ORANGE FOR ORACLE V4.0 INSTALLATION GUIDE (Online Upgrade) ORANGE CONFIGURATION ADMIN O Orange for ORACLE V4.0 Installation Guide ORANGE FOR ORACLE V4.0 INSTALLATION GUIDE...1 1....2 1.1...2 1.2...2 1.2.1...2 1.2.2 (Online Upgrade)...11 1.3 ORANGE CONFIGURATION ADMIN...12 1.3.1 Orange Configuration

More information

Sun Java System Messaging Server 63 64

Sun Java System Messaging Server 63 64 Sun Java System Messaging Server 6.3 64 Sun Java TM System Communications Suite Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054 U.S.A. : 820 2868 2007 7 Copyright 2007 Sun Microsystems,

More information

SMB_ICMP_UDP(huichang).PDF

SMB_ICMP_UDP(huichang).PDF SMB(Server Message Block) UDP(User Datagram Protocol) ICMP(Internet Control Message Protocol) SMB (Server Message Block) SMB? : Microsoft IBM, Intel,. Unix NFS. SMB client/server. Client server request

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 Chapter 12. 원격접속과 FTP 00. 개요 01. 텔넷과 SSH 02. VNC 03. 파일송수신 텔넷서버를설치하고설정할수있다. 수퍼데몬 (xinetd) 의역할을이해하고설정할수있다. 텔넷클라이언트를이용해원격에서리눅스시스템에접속하여작업할수있다. SSH로원격에서접속하여작업할수있다. VNC를설치하고설정하여윈도에서 VNC로접속할수있다. FTP 서버를설치하고설정할수있다.

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 UNIX 및실습 8 장. 프로세스와사용자 명령익히기 1 학습목표 유닉스에서프로세스가무엇인지그개념을이해한다. 프로세스와관련된유닉스명령의사용방법을익힌다. 포그라운드처리와백그라운드처리의차이를이해한다. 사용자정보를보는명령의사용방법을익힌다. 2 01. 프로세스의개념과종류 프로세스 (process) 현재시스템에서실행중인프로그램 프로세스는고유번호를가진다. Process

More information

歯J2000-04.PDF

歯J2000-04.PDF - - I. / 1 II. / 3 III. / 14 IV. / 23 I. (openness), (Modulization). (Internet Protocol) (Linux) (open source technology).. - Windows95, 98, (proprietary system). ( ). - (free).,. 1),.,,,. 1). IBM,. IBM

More information

VZ94-한글매뉴얼

VZ94-한글매뉴얼 KOREAN / KOREAN VZ9-4 #1 #2 #3 IR #4 #5 #6 #7 ( ) #8 #9 #10 #11 IR ( ) #12 #13 IR ( ) #14 ( ) #15 #16 #17 (#6) #18 HDMI #19 RGB #20 HDMI-1 #21 HDMI-2 #22 #23 #24 USB (WLAN ) #25 USB ( ) #26 USB ( ) #27

More information

manual pdfÃÖÁ¾

manual pdfÃÖÁ¾ www.oracom.co.kr 1 2 Plug & Play Windows 98SE Windows, Linux, Mac 3 4 5 6 Quick Guide Windows 2000 / ME / XP USB USB MP3, WMA HOLD Windows 98SE "Windows 98SE device driver 7 8 9 10 EQ FM LCD SCN(SCAN)

More information

untitled

untitled GUI Programming in Embedded Linux Embedded System Lab. II GUI 1:1 Embedded System Lab. II 2 Qt QT trolltech cross GUI QT ( ),, Mac, Linux, *nix C++ Qt X11 C++ GUI. (, ). Qt. Embedded System Lab. II 3 Qt/Embedded

More information

C 프로그래밍 언어 입문 C 프로그래밍 언어 입문 김명호저 숭실대학교 출판국 머리말..... C, C++, Java, Fortran, Python, Ruby,.. C. C 1972. 40 C.. C. 1999 C99. C99. C. C. C., kmh ssu.ac.kr.. ,. 2013 12 Contents 1장 프로그래밍 시작 1.1 C 10 1.2 12

More information

1. exit logout 하는 command 는아주간단하다. exit 을커맨드에서입력하고 return 키를누르면 logout 된다. 2. ls & command option 현재 directory 에서 file 의 list 를보는명령어, 즉 DOS 에서의 dir 에해

1. exit logout 하는 command 는아주간단하다. exit 을커맨드에서입력하고 return 키를누르면 logout 된다. 2. ls & command option 현재 directory 에서 file 의 list 를보는명령어, 즉 DOS 에서의 dir 에해 1. exit logout 하는 command 는아주간단하다. exit 을커맨드에서입력하고 return 키를누르면 logout 된다. 2. ls & command option 현재 directory 에서 file 의 list 를보는명령어, 즉 DOS 에서의 dir 에해당하는명령어로는 'ls' 가있다. (list 의약어.) ls 커맨드를실행시키면다음과같이표시된다.

More information

<32B1B3BDC32E687770>

<32B1B3BDC32E687770> 008년도 상반기 제회 한 국 어 능 력 시 험 The th Test of Proficiency in Korean 일반 한국어(S-TOPIK 중급(Intermediate A 교시 이해 ( 듣기, 읽기 수험번호(Registration No. 이 름 (Name 한국어(Korean 영 어(English 유 의 사 항 Information. 시험 시작 지시가 있을

More information

User Guide

User Guide HP Pocket Playlist 사용 설명서 부품 번호: 699916-AD2 제 2 판: 2013 년 1 월, 초판: 2012 년 12 월 Copyright 2012, 2013 Hewlett-Packard Development Company, L.P. Microsoft, Windows 및 Windows Vista 는 Microsoft Corporation

More information

품질검증분야 Stack 통합 Test 결과보고서 [ The Bug Genie ]

품질검증분야 Stack 통합 Test 결과보고서 [ The Bug Genie ] 품질검증분야 Stack 통합 Test 결과보고서 [ The Bug Genie ] 2014. 10. 목 차 I. Stack 통합테스트개요 1 1. 목적 1 II. 테스트대상소개 2 1. The Bug Genie 소개 2 2. The Bug Genie 주요기능 3 3. The Bug Genie 시스템요구사항및주의사항 5 III. Stack 통합테스트 7 1. 테스트환경

More information

chap7.key

chap7.key 1 7 C 2 7.1 C (System Calls) Unix UNIX man Section 2 C. C (Library Functions) C 1975 Dennis Ritchie ANSI C Standard Library 3 (system call). 4 C?... 5 C (text file), C. (binary file). 6 C 1. : fopen( )

More information

GNU/Linux 1, GNU/Linux MS-DOS LOADLIN DOS-MBR LILO DOS-MBR LILO... 6

GNU/Linux 1, GNU/Linux MS-DOS LOADLIN DOS-MBR LILO DOS-MBR LILO... 6 GNU/ 1, qkim@pecetrirekr GNU/ 1 1 2 2 3 4 31 MS-DOS 5 32 LOADLIN 5 33 DOS- LILO 6 34 DOS- 6 35 LILO 6 4 7 41 BIOS 7 42 8 43 8 44 8 45 9 46 9 47 2 9 5 X86 GNU/LINUX 10 1 GNU/, GNU/ 2, 3, 1 : V 11, 2001

More information

본교재는수업용으로제작된게시물입니다. 영리목적으로사용할경우저작권법제 30 조항에의거법적처벌을받을수있습니다. [ 실습 ] 스위치장비초기화 1. NVRAM 에저장되어있는 'startup-config' 파일이있다면, 삭제를실시한다. SWx>enable SWx#erase sta

본교재는수업용으로제작된게시물입니다. 영리목적으로사용할경우저작권법제 30 조항에의거법적처벌을받을수있습니다. [ 실습 ] 스위치장비초기화 1. NVRAM 에저장되어있는 'startup-config' 파일이있다면, 삭제를실시한다. SWx>enable SWx#erase sta [ 실습 ] 스위치장비초기화 1. NVRAM 에저장되어있는 'startup-config' 파일이있다면, 삭제를실시한다. SWx>enable SWx#erase startup-config Erasing the nvram filesystem will remove all configuration files Continue? [confirm] ( 엔터 ) [OK] Erase

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 UNIX 및실습 10 장. 인터넷과통신명령 익히기 1 10 장. 인터넷과통신명령익히기 학습목표 유닉스에서사용자간직접통신하는명령의사용방법을익힌다. 호스트명과도메인명, 개인정보를확인하는방법을익힌다. 전자메일을사용하는방법을익힌다. 파일을송수신하는명령의사용방법을익힌다. 2 Section 01 사용자간직접통신 write [1/4] 사용자에게메시지를보낸다. 메시지를작성하면

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 오픈소스소프트웨어개발입문 (CP33992) Linux 명령어사용법 - 계속 부산대학교공과대학정보컴퓨터공학부 파일비교 cmp diff 두파일의동일성을검사하여, 차이가생기는첫번째바이트를보여줌 두파일을비교하여한파일을다른파일로전환하는편집변경을행할때에필요한동작목록을보여줌 2 [ 실습 ] 파일비교 : diff (1) $ vi Hello1.c #include

More information

Microsoft PowerPoint 통신 및 압축 명령어.ppt

Microsoft PowerPoint 통신 및 압축 명령어.ppt 컴퓨터특강 () 2006 년봄학기 문양세강원대학교컴퓨터과학과 PING 원격지컴퓨터의상태 (accessible 여부 ) 를확인 $ ping host-name // alive or dead check $ ping s host-name // packet 송수신확인 Page 2 1 TELNET (1/4) telnet 은원격지에있는상대방컴퓨터에자신의컴퓨터를접속하여,

More information

Microsoft PowerPoint - chap9 [호환 모드]

Microsoft PowerPoint - chap9 [호환 모드] 제 9 장프로세스관계 숙대창병모 1 Contents 1. Logins 2. Process Groups 3. Sessions 4. Controlling Terminal 5. Job Control 숙대창병모 2 로그인 숙대창병모 3 터미널로그인 /etc/ttys: 1 line per terminal device getty: opens terminal device

More information

cam_IG.book

cam_IG.book 설치 안내서 AXIS P3301 고정형 돔 네트워크 카메라 AXIS P3301-V 고정형 돔 네트워크 카메라 한국어 AXIS P3304 고정형 돔 네트워크 카메라 AXIS P3304-V 고정형 돔 네트워크 카메라 문서 정보 본 문서에는 사용자 네트워크에 AXIS P3301/P3304 고정형 돔 네트워크 카메라를 설치하는 방법에 대 한 지침이 포함되어 있습니다.

More information

vm-웨어-01장

vm-웨어-01장 Chapter 16 21 (Agenda). (Green),., 2010. IT IT. IT 2007 3.1% 2030 11.1%, IT 2007 1.1.% 2030 4.7%, 2020 4 IT. 1 IT, IT. (Virtualization),. 2009 /IT 2010 10 2. 6 2008. 1970 MIT IBM (Mainframe), x86 1. (http

More information

hd1300_k_v1r2_Final_.PDF

hd1300_k_v1r2_Final_.PDF Starter's Kit for HelloDevice 1300 Version 11 1 2 1 2 3 31 32 33 34 35 36 4 41 42 43 5 51 52 6 61 62 Appendix A (cross-over) IP 3 Starter's Kit for HelloDevice 1300 1 HelloDevice 1300 Starter's Kit HelloDevice

More information

DocsPin_Korean.pages

DocsPin_Korean.pages Unity Localize Script Service, Page 1 Unity Localize Script Service Introduction Application Game. Unity. Google Drive Unity.. Application Game. -? ( ) -? -?.. 준비사항 Google Drive. Google Drive.,.. - Google

More information

Microsoft PowerPoint - u5.pptx

Microsoft PowerPoint - u5.pptx 5.1 셸의기능과종류 5. 셸 (shell) 셸 (shell) 사용자와 OS 사이의인터페이스프로그램 셸의기본기능 명령어해독기 (command interpreter) 역할수행 셸의종료 ^D( 입력끝 ), exit 명령어, 또는 logout ( 로그인셸만해당 ) 셸의추가기능 셸프로그램처리기능 shell script 표준입출력방향전환, 파이프등의다양한기능 shell의종류

More information

2-11Àå

2-11Àå Chapter 11 script kiddies.... 24.., script kiddies..,... 215 1 TCP/IP., TCP/IP. IP IP..,. IP. TCP/IP TCP( UDP).. 0 65535.., IP, IP,,. (, ). 216 Chapter 11 IP. IP.... 1024 (0 1023 ).... A B. B IP, A. IP,

More information

침입방지솔루션도입검토보고서

침입방지솔루션도입검토보고서 IT 2005. 06. 02. IT IT Windows 3503 4463 4178 64% Solaris 142 56 36 Digital UX 37 24 9 Tru64 30 20 26 Server & DeskTop UNIX HP-UX 27 IRIX 19 FreeBSD 12 7 15 8 5 17 9 2% AIX 5 3 3 Linux 348 400 516 8% Apple

More information

K7VT2_QIG_v3

K7VT2_QIG_v3 1......... 2 3..\ 4 5 [R] : Enter Raid setup utility 6 Press[A]keytocreateRAID RAID Type: JBOD RAID 0 RAID 1: 2 7 " RAID 0 Auto Create Manual Create: 2 RAID 0 Block Size: 16K 32K

More information

<4D F736F F F696E74202D20BFEEBFB5C3BCC1A6BDC7BDC D31C7D0B1E229202D20BDA92E BC8A3C8AF20B8F0B5E55D>

<4D F736F F F696E74202D20BFEEBFB5C3BCC1A6BDC7BDC D31C7D0B1E229202D20BDA92E BC8A3C8AF20B8F0B5E55D> 쉘 (Shell) 환경 운영체제실습 목차 Ⅴ. 쉘 (shell) 환경 5.1 쉘 (shell) 이란? 5.2 쉘 (shell) 기능 5.3 쉘 (shell) 변수 5.4 기타기능 5.5 쉘 (shell) 프로그래밍 5.1 쉘 (shell) 이란? 쉘 (Shell) 사용자가입력한명령어를해석해주는명령어해석기 (Command interpreter) 사용자와운영체제

More information

PRO1_02E [읽기 전용]

PRO1_02E [읽기 전용] Siemens AG 1999 All rights reserved File: PRO1_02E1 Information and 2 STEP 7 3 4 5 6 STEP 7 7 / 8 9 10 S7 11 IS7 12 STEP 7 13 STEP 7 14 15 : 16 : S7 17 : S7 18 : CPU 19 1 OB1 FB21 I10 I11 Q40 Siemens AG

More information

10.

10. 10. 10.1 10.2 Library Routine: void perror (char* str) perror( ) str Error 0 10.3 10.3 int fd; /* */ fd = open (filename, ) /*, */ if (fd = = -1) { /* */ } fcnt1 (fd, ); /* */ read (fd, ); /* */ write

More information

untitled

untitled Step Motor Device Driver Embedded System Lab. II Step Motor Step Motor Step Motor source Embedded System Lab. II 2 open loop, : : Pulse, 1 Pulse,, -, 1 +5%, step Step Motor (2),, Embedded System Lab. II

More information

Sena Device Server Serial/IP TM Version

Sena Device Server Serial/IP TM Version Sena Device Server Serial/IP TM Version 1.0.0 2005. 3. 7. Release Note Revision Date Name Description V1.0.0 2005-03-7 HJ Jeon Serial/IP 4.3.2 ( ) 210 137-130, : (02) 573-5422 : (02) 573-7710 email: support@sena.com

More information

슬라이드 제목 없음

슬라이드 제목 없음 < > Target cross compiler Target code Target Software Development Kit (SDK) T-Appl T-Appl T-VM Cross downloader Cross debugger Case 1) Serial line Case 2) LAN line LAN line T-OS Target debugger Host System

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 LINUX EXERCISE Jo, Heeseung 실습 : VMWARE 설치 실습목표 Vmware 를설치 결과화면 2 가상머신의겉모양 가상머신이생성된화면 3 실습 : 가상머신생성 실습목표 앞으로계속사용할가상머신을생성 가상머신이생성된결과화면 네트워크는반드시 "Vmnet8(NAT)" 로지정 4 실습 : LINUX ISO 파일다운로드 실습목표 인터넷에서 Linux

More information

HTML5가 웹 환경에 미치는 영향 고 있어 웹 플랫폼 환경과는 차이가 있다. HTML5는 기존 HTML 기반 웹 브라우저와의 호환성을 유지하면서도, 구조적인 마크업(mark-up) 및 편리한 웹 폼(web form) 기능을 제공하고, 리치웹 애플리케이 션(RIA)을

HTML5가 웹 환경에 미치는 영향 고 있어 웹 플랫폼 환경과는 차이가 있다. HTML5는 기존 HTML 기반 웹 브라우저와의 호환성을 유지하면서도, 구조적인 마크업(mark-up) 및 편리한 웹 폼(web form) 기능을 제공하고, 리치웹 애플리케이 션(RIA)을 동 향 제 23 권 5호 통권 504호 HTML5가 웹 환경에 미치는 영향 이 은 민 * 16) 1. 개 요 구글(Google)은 2010년 5월 구글 I/O 개발자 컨퍼런스에서 HTML5를 통해 플러 그인의 사용이 줄어들고 프로그램 다운로드 및 설치가 필요 없는 브라우저 기반 웹 플랫폼 환경이 점차 구현되고 있다고 강조했다. 그리고 애플(Apple)은 2010년

More information

Microsoft PowerPoint - 02-Shell-Programming

Microsoft PowerPoint - 02-Shell-Programming 2. 쉘프로그래밍 상명대학교소프트웨어학부 쉘 (Shell) 쉘 : 명령어해석기 단말기나파일로부터입력된명령을해석하여적절한명령을실행 시스템환경변경, 명령어입력편의를제공 쉘의종류 Bourne Shell(sh) /bin/sh Korn Shell(ksh) /bin/ksh C Shell(csh) /bin/csh Bourne Again Shell(bash) /bin/bash

More information

제1장 Unix란 무엇인가?

제1장  Unix란 무엇인가? 1 1 장유닉스 / 리눅스소개 강의목적및내용 강의목적 유닉스 / 리눅스시스템의체계적이해 시스템프로그래밍능력향상 강의내용 리눅스시스템프로그래밍 시스템호출을이용한 C 프로그래밍 주요프로그래밍주제 파일 프로세스 메모리 프로세스사이의통신 2 3 1.1 왜리눅스인가? 동기 유닉스 / 리눅스운영체제 1970 년대초에 AT&T 벨연구소에서개발된이후로지속적으로발전 스마트폰,

More information

PRO1_09E [읽기 전용]

PRO1_09E [읽기 전용] Siemens AG 1999 All rights reserved File: PRO1_09E1 Information and - ( ) 2 3 4 5 Monitor/Modify Variables" 6 7 8 9 10 11 CPU 12 Stop 13 (Forcing) 14 (1) 15 (2) 16 : 17 : Stop 18 : 19 : (Forcing) 20 :

More information

목차 BUG offline replicator 에서유효하지않은로그를읽을경우비정상종료할수있다... 3 BUG 각 partition 이서로다른 tablespace 를가지고, column type 이 CLOB 이며, 해당 table 을 truncate

목차 BUG offline replicator 에서유효하지않은로그를읽을경우비정상종료할수있다... 3 BUG 각 partition 이서로다른 tablespace 를가지고, column type 이 CLOB 이며, 해당 table 을 truncate ALTIBASE HDB 6.1.1.5.6 Patch Notes 목차 BUG-39240 offline replicator 에서유효하지않은로그를읽을경우비정상종료할수있다... 3 BUG-41443 각 partition 이서로다른 tablespace 를가지고, column type 이 CLOB 이며, 해당 table 을 truncate 한뒤, hash partition

More information

제20회_해킹방지워크샵_(이재석)

제20회_해킹방지워크샵_(이재석) IoT DDoS DNS (jaeseog@sherpain.net) (www.sherpain.net) DDoS DNS DDoS / DDoS(Distributed DoS)? B Asia Broadband B Bots connect to a C&C to create an overlay network (botnet) C&C Provider JP Corp. Bye Bye!

More information

°í¼®ÁÖ Ãâ·Â

°í¼®ÁÖ Ãâ·Â Performance Optimization of SCTP in Wireless Internet Environments The existing works on Stream Control Transmission Protocol (SCTP) was focused on the fixed network environment. However, the number of

More information

다. 최신 버전의 rpm 패키지 버전을 다운로드해 다음과 같이 설 치한다. 단 debuginfo의 rpm 패키지는 설치할 필요가 없다. 하기 위한 옵션이고, init는 저장소를 초기화하기 위한 cvs 명령 어이다. - 새로 설치한 경우 : rpm -ivh cvs* -

다. 최신 버전의 rpm 패키지 버전을 다운로드해 다음과 같이 설 치한다. 단 debuginfo의 rpm 패키지는 설치할 필요가 없다. 하기 위한 옵션이고, init는 저장소를 초기화하기 위한 cvs 명령 어이다. - 새로 설치한 경우 : rpm -ivh cvs* - 개발자를 위한 리눅스 유틸리티 활용법 CVS를 이용한 프로젝트 관리 연재의 마지막 시간에는 리눅스의 소스 버전 관리를 위한 툴을 소개한다. 이 툴은 흔히 형상 관리 시스템, 버전 관리 시스템이라고 일컬어진다. 윈도우나 리눅스 시스템 환경에는 여러 가지 형상 관 리 시스템이 존재하는데 여기서는 현재 오픈소스로 널리 알려진 CVS에 대해 살펴본다. 4 연 재 순

More information

Voice Portal using Oracle 9i AS Wireless

Voice Portal using Oracle 9i AS Wireless Voice Portal Platform using Oracle9iAS Wireless 20020829 Oracle Technology Day 1 Contents Introduction Voice Portal Voice Web Voice XML Voice Portal Platform using Oracle9iAS Wireless Voice Portal Video

More information

Windows 네트워크 사용 설명서

Windows 네트워크 사용 설명서 Windows 네트워크 사용 설명서 (Wireless Manager mobile edition 5.5) 그림의 예로 사용된 프로젝터는 PT-FW300NTEA 입니다. 한국어 TQBH0205-5 (K) 목차 소프트웨어 라이센스 계약 3 무선 연결 사용 시 참고 사항 4 보안 관련 참고 사항 6 소프트웨어 요구 사항 12 시스템 요구 사항 12 Wireless

More information

untitled

untitled 1... 2 System... 3... 3.1... 3.2... 3.3... 4... 4.1... 5... 5.1... 5.2... 5.2.1... 5.3... 5.3.1 Modbus-TCP... 5.3.2 Modbus-RTU... 5.3.3 LS485... 5.4... 5.5... 5.5.1... 5.5.2... 5.6... 5.6.1... 5.6.2...

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 Chapter 06. 프로세스관리하기 00. 개요 01. 프로세스의개념 02. 프로세스관리명령 03. 포그라운드, 백그라운드프로세스와작업제어 04. 작업예약 프로세스가무엇인지설명할수있다. 프로세스목록을확인하고특정프로세스를검색할수있다. 프로세스를강제로종료할수있다. 프로세스관리도구로전체프로세스의상태를확인할수있다. 포그라운드와백그라운드작업의차이를설명할수있다. 백그라운드로작업을실행하고포그라운드로변환할수있다.

More information

untitled

untitled CAN BUS RS232 Line Ethernet CAN H/W FIFO RS232 FIFO IP ARP CAN S/W FIFO TERMINAL Emulator COMMAND Interpreter ICMP TCP UDP PROTOCOL Converter TELNET DHCP C2E SW1 CAN RS232 RJ45 Power

More information

인켈(국문)pdf.pdf

인켈(국문)pdf.pdf M F - 2 5 0 Portable Digital Music Player FM PRESET STEREOMONO FM FM FM FM EQ PC Install Disc MP3/FM Program U S B P C Firmware Upgrade General Repeat Mode FM Band Sleep Time Power Off Time Resume Load

More information

ARMBOOT 1

ARMBOOT 1 100% 2003222 : : : () PGPnet 1 (Sniffer) 1, 2,,, (Sniffer), (Sniffer),, (Expert) 3, (Dashboard), (Host Table), (Matrix), (ART, Application Response Time), (History), (Protocol Distribution), 1 (Select

More information

1. efolder 시스템구성 A. DB B. apache - mod-perl - PHP C. SphinxSearch ( 검색서비스 ) D. File Storage 2. efolder 설치순서 A. DB (MySQL) B. efolder Service - efolder

1. efolder 시스템구성 A. DB B. apache - mod-perl - PHP C. SphinxSearch ( 검색서비스 ) D. File Storage 2. efolder 설치순서 A. DB (MySQL) B. efolder Service - efolder Embian efolder 설치가이드 efolder 시스템구성 efolder 설치순서 Installation commands 1. efolder 시스템구성 A. DB B. apache - mod-perl - PHP C. SphinxSearch ( 검색서비스 ) D. File Storage 2. efolder 설치순서 A. DB (MySQL) B. efolder

More information