Part I: Introduction - Michigan Technological University

Download Report

Transcript Part I: Introduction - Michigan Technological University

Unix Introduction
A little history
 Manual – man pages

1
1969, New Jersey

1969 AT&T Lab


AT&T out of Multics project
OS hackers floating in a void: Ken Thomson,
Dennis Ritchie, J.F. Ossanna and M. D. McIlroy


Ken’s cool file system
Unix on PDP-7
 Use it in the patent writing department

Use C to rewrite portable OS to PDP-11
 Ken mailed magnetic tapes with the Unix source code
and utilities to his friends
 mid 1970s, professor in Australia’s teach UNIX using
the source codes
2
New Jersey

AT&T Bell Lab

Unix versions





V1
V4
V6
V7
1971
1973
1975 * 1.xBSD was derived from this version
1979 last true Unix
Unix license
3
Berkeley

Late 1970’s UC Berkeley




A licensee of the Unix source code
1976-1977 Ken Thompson took sabbatical to
teach in UCB
Use UNIX extensively for research projects
Berkeley Systems Distribution (BSD)


TCP/IP and the socket model for network
programming
BSD source code is available publicly
4
Berkeley


Bell Labs notices that their source code was
practically being given away
Two lawsuits



Bell lab sued Computer System Research Group
(CSRG) for BSD
UC Berkeley sued various companies for not giving
credit to UCB.
The development of last BSD distribution 4.4
BSD


Unencumbered and the only legal release of BSD
Many modern operating system are based on 4.4BSD
 FreeBSD, NetBSD, OpenBSD and BSDI
5
GNU project

MIT - Richard Stallman

Find a way to preserve the freedom




Portable
Licensed in such as way that it would always be the
property of free development community
GNU project ( GNU’s Not Unix) begins in 1983
GPL (GNU General Public License)


EMACS, GDB, GCC, … utilities
Linux Torvald filled the last gap the kernel.
6
Unix History









1969 The beginning in AT&T Bell Labs
1975 Version 6
1977
1984
1985
1993
Berkeley BSD, derived from V6
BSD 4.2
BSD 4.3
BSD 4.4
1979 Version 7
1982 Unix Support Group ( Unix System
Laboratories) System III
1983 System V
7
Unix History

UNIX “standard” operating system?




http://www.levenez.com/unix/
http://www.unix.org/what_is_unix/history_tim
eline.html
Book "Life with Unix" by Don Libes and Sandy
Ressler
Unix varieties: mixture feature of



BSD version
System V
Vendor specific extension
8
Unix Versions

Some Unix versions:

SCO UNIX


Sun OS


System V variant + features of OSF/1
Digital Unix/Tru64 Unix


Sun’s System V.4 implementation
HP-UX


Best known BSD-based operating System, NFS
Solaris


Implementation of System V.3.2.5, Runs on PC
OSF/1 implementation
AIX

IBM’s system V-based operating system
9
1991, Finland

Linus Torvalds, a student





Minix: a teaching tool
Insufficiencies if Minix
In ablility of get a free modem line
Wrote the kernel in C with his colleague
and posted on the net under GPL
10
Linux
Free UNIX-like operating system for all
sort of platforms
 BSD-like
 Written from scratch
 Kernel was written by Linus Torvalds

11
Linux Distributions
Red Hat Enterprise
 CentOS
 Fedora
 Debian
 Ubuntu
 Gentoo

Oracle Enterprise
Linux
 SUSE Linux
Enterprise
 OpenSUSE
 Slackware
See
www.linux.org/dist
for more

12
What we use in this lab
Fedora 15
 Oracle Solaris 10
 Windows

13
Manuals

Unix has two types

Man pages




Individual commands
Routines/functions
Files
Supplemental documents




Printed
online from Internet
DVD/CDROM
RFCs (Request for Comments) for protocols,
standards used on the Internet
14
Manuals

Organization of the man pages
Solaris Linu
/HP-UX x
Contents
1
1
User-level commands and applications
2
2
System calls and kernel error codes
3
3
Library calls
4
5
Standard file formats
5
7
Miscellaneous files and documents
6
6
Games and demonstrations
7
4
Device drivers and network protocols
1m
8
System administration commands
9
9
Obscure kernel specs and interfaces
15
Manuals

Man pages are kept




Under /usr/man/man# or
/usr/share/man/man#
Format (troff, SGML)
Compressed (compress or gzip)
read manual pages: man

$man title


Example: $man ls
$man section title


Example: $man 4 tty
Solaris Example: $man –s 4 tty
16
Manuals

More about reading manual pages: man

MANPATH


/etc/man.config
Add new man pages besides the system ones.
Example:
MANPATH=/home/share/localman:/usr/share/man
export MANPATH

Keyword search in synopsis


Keyword database “whatis”
$man –k keyword
Example: $man –k mount
17
Online Resource

Fedora 13


http://docs.fedoraproject.org/enUS/index.html
Solaris 10

http://docs.sun.com/app/docs/prod/solaris.10?
l=en&a=view
18
Join forums

SAGE


Solaris OS forum


http://www.sage.org/
http://forums.sun.com/category.jspa?category
ID=65
Fedora forum

http://fedoraforum.org/forum/
19
Administrative GUI tools

Administration tools

Good



Downside






Quick start to system administration
Easy: combine several steps
Take more steps than typing the command directly
sometimes
Not all commands available through menu
Slow down the learning process
Do not help much in tracking down and fixing the problem
May not always be available when system breaks, remote
working…
In this class, manual configuration is strongly
encouraged.
20