Beruflich Dokumente
Kultur Dokumente
Snapshots
Introduction to UNIX
Applications of UNIX
History of UNIX
Features of UNIX
Introductory Commands
date cal
banner write
mesg
who
1.1
passwd
Introduction to UNIX
Objectives
1.2
Introduction to UNIX
Operating System
Provides the
development
foundation
1.3
for
applications
Introduction to UNIX
Hardware
Operating System
User
1.4
Introduction to UNIX
Schedules Processes
Facilitates Recovery
1.5
Introduction to UNIX
Introduction to UNIX
Application Execution
Introduction to UNIX
Applications of UNIX
Business environment
Word processing
Financial accounting
Database management
Communication
Graphics
Software developments
Office automation
1.7
Introduction to UNIX
History of UNIX
Originator
Motivation
: To transfer programs form
GE645 to PDP-7 machine
Original version
: Single user, for PDP-7 written
in Assembly language (1969)
Transition
language (1971)
Rewritten
System in C (1973)
: As a multi-user Operating
: Ken Thompson
: MULTICS
1.8
Moved
to
PDP-11
in
Introduction to UNIX
Microcomputer version
: 1980
Commercial version
1.9
Introduction to UNIX
System-V
1984 It has additional features to improve
Release 2.0
system performance.
System-V
1986 It has enhancements over shared library.
Release 3.0
System-V
1989 It added support to hardware for
Release 4.0
networking and other facilities
1.10
Introduction to UNIX
Features of UNIX
Modularity
File structure
Security
Portability
Utilities
1.11
Introduction to UNIX
System unit
Console
User terminals
Communication lines
Printer(s)
Modem
1.12
Introduction to UNIX
Communication
Lines
Modem
Printer(s)
System Unit
Remote User Terminals
- Processor
- Disk(s)
- Tape(s)
- Floppy Disk(s)
System
Console
1.13
Introduction to UNIX
The login: prompt appears for the user to enter his / her
user-name
login: priya
password:
1.14
Introduction to UNIX
Introductory Commands
date
banner
who
passwd
cal
write
mesg
1.15
Introduction to UNIX
date
%y
Introduction to UNIX
1.17
Introduction to UNIX
Examples:
$ date
<Enter>
Mon Mar 27 12:44:04 IST 1995 (this is the default
format)
date only shows the Day, Month of the year, Date, Time, Time
standard and the Year
$ date +%D
06/29/95
mm/dd/yy format
<Enter>
The output
$ date +%T
11:56:34
time
<Enter>
Will display the current
1.18
will
be
in
Introduction to UNIX
cal
$ cal [[mm][yyyy]]
where
mm stands for month number from 1 to 12
yyyy stands for year from 1 to 9999
1.19
Introduction to UNIX
Example:
$ cal
1 1985
<Enter>
The above command will display the calendar for January 1985
January
S
M
6
13
20
27
7
14
21
28
1985
Tu
1
8
15
22
29
2
9
16
23
30
Th
3
10
17
24
31
1.20
F
4
11
18
25
Sa
5
12
19
26
Introduction to UNIX
banner
$ banner
welcome to STG
<Enter>
$ banner
"welcome to STG"
<Enter>
write
<Enter>
<Enter>
<Enter>
Introduction to UNIX
mesg
$ mesg n will disable the terminal for write.
$ mesg y will make the terminal write enable.
1.22
Introduction to UNIX
who
$ who <Enter>
rs
supriya
ajay
tty02
tty03
tty01
May 24
May 24
May 24
12:29
12:15
1:10
am i
-T
-H
1.23
Introduction to UNIX
Example:
$ who
<Enter>
rs
supriya
ajay
tty02
tty03
tty01
May 24
May 24
May 24
12:29
12:15
1:10
passwd
$ passwd
Choose Password
1. Pick a Password
2.
Pronounceable password
generated for you
Enter choice (Default is 1)
1.24
will
be
Introduction to UNIX
1.25