CSCI 330 The Unix System: Dr. Reva Freedman Department of Computer Science Northern Illinois University Spring 2009
CSCI 330 The Unix System: Dr. Reva Freedman Department of Computer Science Northern Illinois University Spring 2009
CSCI 330 The Unix System: Dr. Reva Freedman Department of Computer Science Northern Illinois University Spring 2009
Dr. Reva Freedman Department of Computer Science Northern Illinois University Spring 2009
INTRODUCTION
What is an OS and what is it good for? Where to get Linux Basic commands Getting help
Software
that manages (allocates and deallocates) system resources in an efficient and secure manner
System Resources
CSCI 330 - The UNIX System
Hardware
Software
allow
only one user at a time on the computer system user can execute/run only one process at a time Examples: DOS, Windows 3.1
a single user to use the computer system user can run multiple processes at the same time Example: OS/2
multiple users to use the computer system simultaneously Each user can run multiple processes at the same time Examples: UNIX, Windows NT (2000, XP, Vista)
UNIX is a multi-user, multi-process operating system UNIX is designed to facilitate programming, text processing and communication
USES OF UNIX
Unix as server
Web
turing.cs.niu.edu or hopper.cs.niu.edu
secure
login via ssh from another Linux machine or Putty from Windows Homework must run on these!
Other
Cygwin:
Unix utilities on Windows Windows Services For Unix (for some versions of Windows) MacOS 10 is Unix under the hood
HISTORY OF UNIX
Invented by Ken Thompson at AT&T in 1969 First version written in assembly language
single
Unix evolution:
Bell
Labs, USL, Novell, SCO BSD, FreeBSD, Mach, OS X AIX (IBM), Ultrix, Irix, Solaris (Sun), Linux: Linus Torvalds
10
COMPONENTS OF UNIX
11
LINUX DISTRIBUTIONS
Base distributions:
Redhat
CSCI 330 - The UNIX System
Debian Suse
Derived distributions:
Fedora Ubuntu
www.distrowatch.com
12
UNIX SHELL
traditional user interface = the command line
Features:
Interpret
and execute commands Command history and editing Command scripting Job control
13
UNIX SHELLS
sh
Bourne
shell: Steve Bourne, 1978 Almquist shell (ash): BSD sh replacement Bourne-Again shell (bash): GNU/Linux
csh
C
tcsh
Tenex
[-options]
[arguments]
CSCI 330 - The UNIX System
Command prompt
UNIX is case sensitive Must be a space between the command, options and arguments No space between the plus or minus sign and the option letter Fields enclosed in [ ] are optional
15
Command argument
Command name
Command option
16
CORRECTING MISTAKES
17
Certain emacs cmds can be used on the command line Key Pressed Result
Go to beginning of line Go to end of line Go forward one word Go back one word Delete word (from cursor to end of word) Delete character at cursor Delete from cursor to end of line
18
19
22
SUMMARY
UNIX is
multi-user multi-process
OS
23