Session 2 Introduction To Unix 2023
Session 2 Introduction To Unix 2023
Introduction
Definition and functions of an operating system
History of the Unix (Linux) operating system
Presentation of the Unix system
Unix users
The main functions
Structure of the Unix system
How Linux works
The Shell
Opening and closing a session
Opening a session
Creating/changing a password
Closing a session
1st Year Engineer Computer Science Tlemcen University Octobre 2023 2
Introduction
• Users
• Operating System
• Hardware
• Users
The origins of Unix date back to the late 1960s at Bell Labs.
This laboratory, in collaboration with MIT, was developing an
operating system called "Multics".
In 1969, Ken Thompson, one of the staff at Bell Labs, developed a
game called "Space Travel" on Multics, and then on other operating
systems.
K. Thompson wrote, in collaboration with Dennis Ritchie, a file
management system, a few basic utilities such as cp and rm, and a
shell.
In 1970, Brian Kernighan, another collaborator with Thompson,
suggested the name "UNIX", a pun on "Multics".
UNIX users
There are two types of person on a UNIX system:
the UNIX user
This person uses the system to produce something; the UNIX system is a
tool for them.
This category includes programmers, database users, etc.
UNIX system administrator
This category of people is responsible for installing, configuring and
running the UNIX system.
On a UNIX system, UNIX users have limited permissions,
Certain commands are forbidden to them and they do not have access to
certain parts of the system.
System administrators, on the other hand, have full rights over the system.
The number of administrators is generally limited on a UNIX system
(called ROOT or superuser).
1st Year Engineer Computer Science Tlemcen University Octobre 2023 13
A UNIX user belongs to one or more groups.
Groups are used to bring users together in order to assign them common
rights.
The main group is the user's initial group.
It also provides the tools to view all the files in a simple way.
• Utilities
• Shell
• Kernel
• Hardware
There are several types of Shell, differing in syntax and the range of
commands.
The most common is the Bourne Shell (sh), but there is also the C-Shell
(csh), which is similar to the C programming language, the Korn Shell, the
Posix Shell and, under Linux, the Bourne Again Shell (bash).
• No
• Run the code corresponding to
the internal command
• User level
•Inter-process
communication
• Subsystem filesystem
• Scheduler
• control subsystem
• Buffer
• Memory manager
Character Block
• Hardware control
• Hardware
• Hardware level
1st Year Engineer Computer Science Tlemcen University Octobre 2023 27
File management
In Unix, a file is seen as a logical resource, not a physical one.
It is a set of blocks of data that are scattered on the disk and can be
recovered using assembly mechanisms.
File types in Unix :
Ordinary files Standard files (text, executable, ....)
Catalogue files directories (folders)
Special files Peripherals as data sources or used as outputs