Lab #1 Intro To Theory of OS
Lab #1 Intro To Theory of OS
Lab #1 Intro To Theory of OS
rd
1- Course ILO’s :
Practical and Professional Skills:
1. Construct programs under Linux OS and its shell programming facilities to design scripts.
2. Implementing some scheduling and memory management algorithms.
3. Design small coding projects to improve programming skills.
An operating system (OS) is software that manages hardware and software resources on a
computer or a device. Also, provides common services for computer
programs.
2. Memory Management:
4. Device Management:
The OS acts as a bridge between applications and hardware devices like printers,
hard drives, or graphics cards. Device drivers are used to ensure compatibility
between hardware and software.
Operating systems provide the user interface for interacting with the computer.
There are two types of UIs:
➢ Graphical User Interface (GUI): Uses visuals (windows, icons, menus) for
interaction (e.g., Windows, macOS).
➢ Command-Line Interface (CLI): Users type commands to interact (e.g.,
Linux terminal, Windows Command Prompt)
2. macOS:
Created by Apple, it’s the default OS for Mac computers, known for its user-friendly
interface, security, and seamless integration with other Apple products.
3. Linux:
Open-source and highly customizable, Linux is favored for its flexibility and is
commonly used in servers, programming, and development environments. Popular
distributions include Ubuntu, Fedora, and Debian.
4. Android:
5. iOS:
Apple’s operating system for its mobile devices (iPhones and iPads), known for its
security, privacy, and smooth user experience
8- Ubuntu
Ubuntu is probably the most well-known Linux distribution
Go to http://www.ubuntu.com/ >> Click on Download >> Ubuntu Desktop >> Easy ways
to switch to Ubuntu >> From Windows >> Click on How to create a bootable USB stick on
Windows › >> Download the Rufus USB installer.
bin sbin
2. /etc:
This is where configuration files for the system and applications are stored. It
includes startup scripts, network settings, and user account information (e.g.,
/etc/passwd, /etc/hosts).
➢ The /etc/passwd file in Linux is a critical system file that contains information about
user accounts. Each line in the file represents a single user account, with fields
separated by colons (:). Despite the name, the file no longer stores actual passwords
for users (those are stored in /etc/shadow in modern systems), but it does provide
important information about each user.
3. /bin:
Contains essential binary executable files (programs) required by the system and all
users, such as basic shell commands (e.g., ls, cp, mv, rm).
4. /sbin:
Similar to /bin, but contains system binaries and commands for administrative tasks
that are generally run by the superuser (e.g., ifconfig, fsck, reboot).
5. /dev:
Contains device files, which represent physical or virtual devices attached to the
system (e.g., hard drives, USB devices, terminals). These files allow the OS to interact
with hardware through drivers.
6. /home:
Contains user-specific directories. Each user has a personal directory under /home
(e.g., /home/username), where their files, documents, and configuration settings are
stored.
7. /opt:
Contains optional or third-party software that is not part of the standard file system
hierarchy. Software installed here usually resides in subdirectories, like
/opt/example-software.
8. /root:
The home directory for the root (superuser). It is separate from /home to
emphasize that root has special system-wide privileges.
9. /man: manual for command line.
Assignment #1:
(1) Research about Android Versions OR Linux Distributions.
(2) Install Ubuntu on Oracle VM Virtual Box (Screenshot).