club course two - unix
TRANSCRIPT
Introduction of UNIXHistory, Installation, and Basic Usage
shelling / jwhsu
交通大學校園網路策進會Campus Computer Communication Association
CCCA 無限拓展你的視野
Summary
• Unix History
• Installation of Debian GNU/Linux
• Installation of FreeBSD
• Basic Command and Tool
• Goal of Learning
Today’s Lecture
Origin of UNIX
• A.C.1965~1968, GE, AT&T and MIT... GE 645 Machine, multiuser OS (1000 terms, 300 users)
MULTICS (Multiplexed Infomation and Computing System)
CTSS (Compatible Time-Sharing System)
• A.C.1969/3 AT&T Bell Lab leave
• Ken Tompson, Dennis Ritchie DEC PDP-7 $75 Outer Space Game (Star Travel)
Only Two User at once UNICS (Uniplexed Infomation and Computing System)
UNIX
Long, Long Ago.....
Development of UNIX• Version 1/2 (1971)
Assemble Language PDP-11 and VAX
• Version 3/4 (1973) Ken Tompson --- B Dennis Ritchie --- C rewrite UNIX cross hardware
• Version 6 Licence (include source code)
BSD (Berkeley Standard Distribution) plan CSRG 4.4 BSD --- BSD’s END
One Step, One Footprint.
Sparkle of UNIX
• Version 7 (1979) USG (UNIX Support Group, 1978)
No Source any more
• Version 8/9/10 Distributed OS --- Plan 9 Few University
• System III (1982)
• System V Release 1 () Release IV (1982) --- Novell
Seed Spread Around The World
Fork and FusionSo Many Many Descendent...= =|||
System V
BSD}Sun --- SunOS, Solaris
IBM --- AIX
HP --- HP-UX
DEC --- OSF/1
SGI --- IRIX
Minix
apple --- A/UX, Mac OS X
4.4 BSDSCO UNIX
386BSD
Plan 9
Xenix
Roadmap and TimelineMain Fork in History
www.levenez.com/unixVersion I ~ VI
Version VII ~ X1.0BSDSystem III
HP-UXSystem V
AIX
Xenix SCOPlan 9
OSF/1 SunOS 4.4BSDIRIX
Some Note
• X/OPEN Consortium (Standard Definition Group)
• Open Gourp (X/OPEN and OSF/1)
1985 IEEE 1003 OS API POSIX (Portable Operating System Interface of UNIX)
• Santa Cruz Operation (Source Code)
• Caldera Systems (A Linux Company)
• SCO (rename)
The Direction of Disappearance
Linux
• A.C. 1984, Minix(Andrew Tanenbaum)
GNU(Richard Mathew Stallman), GNU Not Unix, GCC, Emacs, Bash
• A.C. 1991, Linus Torvalds Intel i386, version 0.02 1992.6 SLS (Softlanding Linux System)
1993.7.16 Slackware 1993.8.16 Debian
• A.C. 1994, Version 1 1994.11 RedHat 1.0
Death and Birth
Linux Distribution• Linux Top 10
from DistroWatch
• slackware
• Debian
• Fedora Core
• SUSE
• Ubuntu
Xuck..., So Many Descendent Again.
Start to Use
login:shellingpassword:
Welcome to the Pure World
shelling@machine:~$ su -password:root@machine:~#
Start to Use
login:shellingpassword:
Welcome to the Pure World
shelling@machine:~$ su -password:root@machine:~#
Start to Use
login:shellingpassword:
Welcome to the Pure World
shelling@machine:~$ su -password:root@machine:~#
Start to Use
login:shellingpassword:
Welcome to the Pure World
shelling@machine:~$ su -password:root@machine:~# sudo su -
Start to Use
login:shellingpassword:
Welcome to the Pure World
shelling@machine:~$ su -password:root@machine:~# sudo su -password:
Start to Use
login:shellingpassword:
Welcome to the Pure World
shelling@machine:~$ su -password:root@machine:~# sudo su -password:root@machine:~#
Start to Use
login:shellingpassword:
Welcome to the Pure World
shelling@machine:~$ su -password:root@machine:~# sudo su -password:root@machine:~#
Start to Use
login:shellingpassword:
Welcome to the Pure World
shelling@machine:~$ su -password:root@machine:~# sudo su -password:root@machine:~#
• shell Bourne shell C shell Korn shell Bourne Again shell TENEX C shell Z shell
• tab auto complete command or file name
• cd direcotry change direcotry
How to Use User
Shell
OS
Command [option] [filename]
Directory Architect/
/usr /tmp /dev /home/etc /boot/sbin/bin /lib
/local/bin /sbin /shelling/guest
/sbin/bin /etc
First Command
• ls list file or directory in present work directory
• -a include all hidden file
• -l display in long format
• -h be readable for human
OK, I know it is not “hello, world!”
Common Command
• pwd : present work directory
• file : the file type --- text, executable, binary
• df : disk format and situation
• du : disk usage
• cat, more, less : text reader
• tar : file packager
Don’t Try to bear all command in mind
Tools
• screen and irssi multi-terminal manager and irc client
• mutt mail software
• bmon and sniffer network packet operating tool
• lftp and rTorrent good tool for doing bad thing...XD
Do Bad Thing is the Source of Advancing --- slzzp/ 吳建豪
rTorrent
• return --- choose .torrent file
• ^Q --- exit
• control download bandwidth A S D (1 5 50 up) Z X C (1 5 50 down)
• control upload bandwidth a s d (1 5 50 up) z x c (1 5 50 down)
I know this is what you interesting in, so...let’s see in detail
Other
• file list format
• file manager cp, touch, rm, mkdir, rmdir, chown, chgrp, chmod.
• shell symbol > < | >> << 2&>1
• grep
• ps and kill
• man
What you should know
Reference• http://blog.xychen.org/archives/2007/01/28/unix-history/
• http://jc.finaleden.com/2005September/2005-09-13/203233.html
• ftp://ftp.stratus.com/pub/vos/multics/multics.html
• http://tech.ccidnet.com/art/302/20060619/583329_1.html
• http://linux.vbird.org/
• http://www.twbsd.org/
• http://www.debian.org/
• http://www.debian.org/doc/manuals/debian-reference/index.zh-tw.html
• http://www.freebsd.org/
• http://www.freebsd.org/doc/zh_TW/books/handbook/
Do it by yourself