Week 01 B
Week 01 B
Graphics Terminal:
It can display everything that can be drawn on a screen
using small dots: pictures, geometric shapes, and so on.
Most graphics terminals have a mouse and are designed to
be used with a graphical user interface.
Console:
A display screen and a keyboard that are part of the host
computer itself.
A Console is just another terminal.
Network Connections
Network
A network refers to two or more computers connected together.
People connect computers into networks in order to share resources.
Backbone
A high-speed link that ties together the smaller LANs into one
large wide area network.
Gateways
Some computers, called gateways, will act as the links between
the campus network and the outside world.
Internet
Around the world, the major wide area networks are connected
to a system known as the Internet. Any computer on the Internet
can connect to any other computer on the Internet.
Client-Server Relationship
Server
In network terminology, any program that offers a resource is
called a server.
A program that provides access to files over the network is
called a file server; A program that coordinates the printing of
data using different printers is called a print server.
Sometimes the name server is used to refer to a real computer
too (i.e., mail server, news server, …).
Client
A program that uses a resource is called a client.
Unix system programmers often talk about the connection
between a client program and a server as the Client-Server
Relationship.
VT-100 Terminal:
A very old terminal made by Digital Equipment Corporation.
ACS-294-001 Unix (Fall Term, 2023-2024) Page 6
TTYs: When the Unix was first developed, the programmers used
Teletype ASR33 terminals. The terminals had letters,
numbers, and a “Control” key. TTY (Teletype) quickly
became a way to refer to any terminal.
tty is a command to display the name of your terminal.
mars% tty
/dev/pts/1
mars%
Examples: appreciate
pwd Print Working Directory
lpr Line Printer
Unix treats the data typed at the keyboard the same as data read
from a file.
When you display data, each newline (^J) is changed by Unix into a
return newline (^M^J) combination.
Q. Can you press ^J instead of <Return> to enter a command at any time?
A. Yes!
ACS-294-001 Unix (Fall Term, 2023-2024) Page 12
mars%
calendar
Unix does have a calendar command, which is different from cal.
The calendar program offers a reminder service based on a file
named calendar in your home directory. The program calendar will
check this file and display all the lines that have today’s and
tomorrow’s date.
Example:
pearl% cat calendar
January 5 Day1
January 6 Day2
January 7 Day3
January 8 Day4
pearl% date
Thu Jan 5 17:13:26 CST 2019
pearl% calendar
Jan 05 Day1
Jan 06 Day2
pearl%
ACS-294-001 Unix (Fall Term, 2023-2024) Page 13
uptime
The uptime command will tell you that how long your particular
computer has been up.
Example:
mars% uptime
15:30:55 up 20 days, 5:49, 3 users, load average: 0.00, 0.01, 0.05
mars%
In this case, mars has been up for 20 day, 5 hour and 49 minutes,
and there are 3 users currently logged in. The last three numbers
show the average number of jobs in the run queue over the last 1, 5
and 15 minutes, respectively.
hostname
The hostname command will display the name of the system you
are using.
Example:
mars% hostname
mars-acs-uwinnipeg-ca
mars%
ACS-294-001 Unix (Fall Term, 2023-2024) Page 14
The Online Manual can be accessed at any time by using the man
command.
Examples:
man cp
man man
man mv lpr ln
Examples:
man kill
will show the description of kill that resides in Section 1 of the
manual;
man –s 2 kill
will show the description of kill that resides in Section 2 of the
manual;
man -s 7 man
will show the description of man in Section 7;
man umask
will show the description of umask that resides in Section 1 of
the manual:
ACS-294-001 Unix (Fall Term, 2023-2024) Page 16
NAME
kill - terminate a process
SYNOPSIS
kill [-s signal|-p] [-q sigval] [-a] [--] pid...
kill -l [signal]
.
.
.
At the end of the kill man pages are the following a few lines, which
tell us there are other pages related to this one:
SEE ALSO
bash(1), tcsh(1), kill(2), sigvec(2), signal(7)
AUTHOR
Taken from BSD 4.4. The ability to translate process names to
process ids was added by Salvatore Valente …
AVAILABILITY
The kill command is part of the util-linux package and is available
from Linux Kernel Archive …