2000 1 UNIX 2000 4 14
1 UNIX? 2 1.1 UNIX OS....................................... 2 1.2.................................................... 2 1.3 UNIX...................................... 2 1.4 Windows Linux.......................................... 3 1.5 UNIX Window.......................................... 3 1.6...................................................... 4 2 ssh 5 2.1 ssh......................................... 5 2.2...................................... 5 2.3....................... 7 3 8 3.1................................................. 8 3.2............................................... 8 3.2.1........................................ 8 3.2.2 mikilab....................................... 9 3.2.3......................................... 9 3.3............................................... 10 3.3.1......................................... 10 3.3.2................................. 10 3.3.3...................................... 11 3.3.4...................................... 11 3.4................................................ 11 3.4.1......................................... 11 3.4.2........................................ 14 3.5................................................. 15 3.5.1........................................... 15 3.5.2........................................ 15 3.5.3............................................ 15 3.5.4 /....................................... 15 3.5.5......................................... 16 3.6............................................... 16 3.6.1 logout................................................. 16 3.6.2 passwd................................................ 16 3.6.3 find.................................................. 18 3.6.4 man.................................................. 18 3.6.5 (............................................... 18 1
1 UNIX? UNIX Windows Macintosh OS Windows Macintosh UNIX Windows UNIX UNIX UNIX Linux 1 1.1 UNIX OS UNIX 2 UNIX Windows Macintosh OS 3 Windows98 Windows Internet Explorer 4 Windows Linux 80386,16MB Windows 1.2 UNIX Linux Windows CD-ROM OS 5 Visual C++ Borland C++ GNU 6 gcc make OS 7 gcc make 8 gcc 1.3 UNIX UNIX UNIX Windows UNIX 1 Linus B Torvalds UNIX OS UNIX 2 Sun Solaris 3 Linux OPENSOURCE 4 5 6 Freeware Software Foundation GNU is not Unix. 7 GNU Debian Linux 8 Windows gcc POSIX Windows cygnus cygwin32 http://sourceware.cygnus.com/cygwin/ 2
1.1: Windows Linux Windows Linux OS CPU OS GUI( ) CUI( ) GUI 12 OS UNIX Windows UNIX 9 10 UNIX Word 11 ( ) 1.4 Windows Linux Windows Linux 1.1 Windows GA Linux Windows UNIX UNIX 1.5 UNIX Window UNIX UNIX X Window X Window 1. OS GUI UNIX X Window Windows OS GUI 2. & 1 X Window X Window 9 tar gzip 10 11 dpnote Word97 12 1.5 3
1 Windows GUI 1 1 3. Window X Window OS Xwindow Windows Explorer 1.6 UNIX Windows Windows2000 WindowsNT Linux Window 4
2 ssh 2.1 ssh UNIX ssh telnet X-Window 1 ssh Windows 2 Tera Term Pro 3 Tera Term Pro ssh http://www.zip.com.au/~roca/ttssh.html Robert O Callahan Tera Term Pro TTSSH ssh ttinst file://aardvark/inst/net/teraterm/ttinst/ttinst.exe 4 ttinst.exe 2.1 OK Tera Term Pro 2.2 2.2 2.1 ssh ssh 2.4 C ontinue cosmos 5 2.5 known_hosts 2.6 User n ame P assphrase 6 [Use pl ain password to log in] OK Enter 2.1: 1 2 ( ) ssh telnet X Window xterm kterm 3 http://www.vector.co.jp 4 http://192.168.6.13/telnet/index.html 5 known hosts RSA 2.4 2.4 6 5
2.2: passwd 2.3 mikilab 3 2.3 "(current) UNIX password:" 2 3 2.3 "Enter new UNIX password:" "Retype new UNIX password:" 2.3 4 5 6 8 7 14 Ctrl + d ssh mikilab 2.3: 2.4: 7 passwd 6
2.5: 2.6: SSH 2.3 slogin 2.1 ssh windows ssh slogin slogin [-l ] [ ] [ ] zodiac mikilab 2.7 2.7: slogin 7
3 3.1 Telnet,ssh,X-Window 1 3.2.1 3.3 3.4 3.5 3.6 3.2 3.2.1 UNIX UNIX 2 3 3.4 UNIX / / 3.1, 1 KD103 KD201 KD302 3-102 3-201 3-202 3.1: 1 MS-Windows 2 MS-Windows 3 8
/ home bin usr home1 www.mililab tamachan takeshi msano public_html cdlist.bashrc public_html index_html images aboutme_html images 3.2: mikilab KD103 KD201 KD302 3-102 3-201 3-202 KD103 KD201 KD302 3.2.2 mikilab mikilab 3.2 4 / mikilab home home1 bin usr 4 msano home1 public_html tamachan home cdlist public_html 3.2.3 UNIX tamachan msano /home1/msano 4 9
3.1: pwd cd [dir] [dir] ls [option] [names] -a. -l mkdir [dir] rmdir [dir]../../home1/msano../ tamaki../ home public html /home/tamachan/public_html tamachan public_html WWWmikilab../tamachan/public_html 3.3 3.3.1 3.2.1 3.3.2 3.1 UNIX UNIX mikilab home home1 tamachan msano tamachan msano 3.3.2 pwd pwd tamachan /home/tamachan cd public html cd /home/tamachan/public_html 10
cd public_html 3.3.3 ls ls ls ls -la ls /home/tamachan ls /home/tamachan public_html cdlist ls -la /home/tamachan ls -la /home/tamachan drwxr-xr-x 5 tamachan mikilab 1024 Apr 19 03:54. drwxr-xr-x 60 root root 2048 Apr 13 13:24.. drwxr-xr-x 7 tamachan mikilab 1024 Jan 16 02:45 public_html -rw-r--r-- 1 tamachan mikilab 18944 Apr 8 15:03 cdlist d d rwx 3.4 3.3.4 mkdir tamachan tamachan unix mkdir /home/tamachan/unix tamachan 3.3 rmdir tamachan tamachan unix rmdir unix tamachan 3.2 3.4 3.4.1 UNIX ( ) Read/Write/eXecute 3 11
tamachan public_html unix cdlist index_html images 3.3: mkdir unix,,, / / / /, ls -l 3.4 3.4: ls -l 3.4 5 d - r w x 3 3 3 3.4 test1 tyoshida mikilab 5 Linux 1024 4096 1 12
4 (d,r,w,x) 3.4 s Windows r w x 3.2 mikilab 3.2: r ls w x -rw-r----- 1 tsuchiya student 1041 Apr 7 1997 profile.htm drwxr-xr-- 2 tsuchiya student 1024 Dec 1 23:48 seiji profile.htm execute tsuchiya student seiji public_html drwxr-xr-- 2 takeshi mikilab 1041 Apr 7 1997 public_html mikilab 13
drwxr-xr-x 2 takeshi mikilab 1041 Apr 7 1997 public_html drwxrwxrwx 2 takeshi mikilab 1041 Apr 7 1997 public_html 3.4.2 chmod chmod [ ][ ] 2 3.3 test1 3.3: u ) g( ) o( ) a( ) +( ) -( ) =( ) r( ) w( ) x( ) chmod go-r test1 8 chmod 777 filename filename 777 / / 2 rw- 2 110 10 6 3.4 chmod 777 index.html index.html rwx chmod 755 index.html index.html rwx r-x chmod 640 index.html index.html rw- r-- --- chmod 644 chmod 755 14
3.4: chmod 0 4 Read 1 execute 5 Read + execute 2 Write 6 Read + Write 3 Write + execute 7 Read + Write + execute 3.5 3.5.1 3.5.2 cat more cat filename more filename cat more 1 6 3.5.3 rm rm filename 3.5.4 / cp mv cp filename1 filename2 mv filename1 filename2 filename1 / filename2 / 3.5 takeshi javajava star.class public_html cp javajava/star.class public_html 3.6 6 15
cp cdlist cdlist2 3.7 -r cp -r public_html/images javajava 3.8 3.5.5 mv mv [ ] [ ] 3.6 3.6.1 logout UNIX logout 3.6.2 passwd [takeshi@mikilab ~]$ passwd Changing password for tyoshida (current) UNIX password: New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully passwd passwd yppasswd yppasswd ( ) 3.5: cp example 16
3.6: cp file dir 3.7: cp file file 3.8: cp -r dir dir 17
[kawasaki@fraulein hoge]$ yppasswd Changing NIS account information for hoge on fraulein. Please enter old password:ys78kjd Changing NIS password for hoge on fraulein. Please enter new password:test The password must have at least 6 characters. Please enter new password:sample The password must have both upper and lowercase letters, or non-letters. Please enter new password:srtt47he Please retype new password:srtt47he The NIS password has been changed on fraulein. [kawasaki@fraulein kawasaki]$ 3.6.3 find find [ ] -name [ ] -print 3.7 star.class () [takeshi@mikilab ~]$ find ~ -name star.class -print /home/takeshi/javajava/star.class 3.6.4 man UNIX man man [ ] 3.6.5 ( UNIX $ ls -l more ls -l more more UNIX 18