SlideShare a Scribd company logo
1 of 26
Download to read offline
Operating System Lab (CS-2205P)
Lecture 01-02 (Introduction)
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 1 / 20
Agenda
1 Introduction to Linux
2 File permissions
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 2 / 20
Introduction to Linux
Agenda
1 Introduction to Linux
2 File permissions
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 3 / 20
Introduction to Linux
Linux Operating System
Linux is used at many places which includes
Enterprise servers
Cloud (AWS, Azure)
Mobile (Android)
DevOps (Continuous Integration/Deployment)
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 4 / 20
Introduction to Linux
Linux Operating System
Linux is an operating system or a kernel distributed under an
open-source license
The kernel is a program at the heart of the Linux operating system
that takes care of fundamental stuff, like letting hardware
communicate with software
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 5 / 20
Introduction to Linux
Linux Operating System
Linux is an operating system or a kernel distributed under an
open-source license
The kernel is a program at the heart of the Linux operating system
that takes care of fundamental stuff, like letting hardware
communicate with software
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 5 / 20
Introduction to Linux
Linux Distributions
Android
Red Hat Linux (CentOS and Fedora)
SUSE Linux (OpenSUSE)
Scientific Linux
Kali Linux
Raspbian
Ubuntu
Mint
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 6 / 20
Introduction to Linux
Ubuntu
Ubuntu is the modern, open source operating system on Linux for the
enterprise server, desktop, cloud, and IoT
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 7 / 20
Introduction to Linux
Ubuntu Versions
14.04 LTS
14.1
15.1
16.04 LTS
16.1
17.1
18.04 LTS
18.1
19.1
20.04 LTS
20.1
21.04
21.1
22.04 LTS
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 8 / 20
Introduction to Linux
Installing Linux
Linux can be installed primarily in three ways
System-wide installation
Using Virtualization [Para] (VMware, VirtualBox, Xen )
Using Windows 10 Subsytem of Linux
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 9 / 20
Introduction to Linux
Directory Hierarchy of Linux
Linux can be installed primarily in three ways
bin – Binary files for (single user mode) system commands
sbin – Binary files for (multi-user) system commands
boot Linux images and boot configuration files
etc Configuration files
home User files
root Root User files
usr Additional binaries
var Updating files: logs, application data, cache
proc Files representing running system processes
dev Pseudo files representing devices
sys Kernel resources
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 10 / 20
Introduction to Linux
Directory Hierarchy of Linux
Linux can be installed primarily in three ways
bin – Binary files for (single user mode) system commands
sbin – Binary files for (multi-user) system commands
boot Linux images and boot configuration files
etc Configuration files
home User files
root Root User files
usr Additional binaries
var Updating files: logs, application data, cache
proc Files representing running system processes
dev Pseudo files representing devices
sys Kernel resources
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 10 / 20
Introduction to Linux
Directory Hierarchy of Linux
Linux can be installed primarily in three ways
bin – Binary files for (single user mode) system commands
sbin – Binary files for (multi-user) system commands
boot Linux images and boot configuration files
etc Configuration files
home User files
root Root User files
usr Additional binaries
var Updating files: logs, application data, cache
proc Files representing running system processes
dev Pseudo files representing devices
sys Kernel resources
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 10 / 20
Introduction to Linux
Directory Hierarchy of Linux
Linux can be installed primarily in three ways
bin – Binary files for (single user mode) system commands
sbin – Binary files for (multi-user) system commands
boot Linux images and boot configuration files
etc Configuration files
home User files
root Root User files
usr Additional binaries
var Updating files: logs, application data, cache
proc Files representing running system processes
dev Pseudo files representing devices
sys Kernel resources
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 10 / 20
Introduction to Linux
Directory Hierarchy of Linux
Linux can be installed primarily in three ways
bin – Binary files for (single user mode) system commands
sbin – Binary files for (multi-user) system commands
boot Linux images and boot configuration files
etc Configuration files
home User files
root Root User files
usr Additional binaries
var Updating files: logs, application data, cache
proc Files representing running system processes
dev Pseudo files representing devices
sys Kernel resources
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 10 / 20
File permissions
Agenda
1 Introduction to Linux
2 File permissions
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 11 / 20
File permissions
Owners
User
A user is the owner of the file. By default, the person who created a
file becomes its owner.
Group
A user- group can contain multiple users. All users belonging to a
group will have the same Linux group permissions access to the file
Other
Any other user who has access to a file. This person has neither
created the file, nor he belongs to a user-group who could own the
file. Practically, it means everybody else
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 12 / 20
File permissions
Permissions
Read
Write
Execute
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 13 / 20
File permissions
Changing the file permissions
chmod permissions filename
Symbolic mode
Absolute mode
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 14 / 20
File permissions
Changing the file permissions (Symbolic mode)
Operator Description
+ add permission to the file or directory
- remove a permission
= Sets the permission and overrides the permissions set earlier
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 15 / 20
File permissions
Changing the file permissions (Symbolic mode)
Operator Description
u user/owner
g group
o others
a all
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 15 / 20
File permissions
Changing the file permissions (Symbolic mode)
chmod u=rw- filename
chmod g=rw- filename
chmod o=rw- filename
chmod o-w filename
chmod g+w filename
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 16 / 20
File permissions
Changing the file permissions (Symbolic mode)
chmod u=rw- filename
chmod g=rw- filename
chmod o=rw- filename
chmod o-w filename
chmod g+w filename
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 17 / 20
File permissions
Changing the file permissions (Absolute mode)
Number Binary Permission type Symbol
0 000 No Permission —
1 001 Execute –x
2 010 Write -w-
3 011 Execute + Write -wx
4 100 Read r–
5 101 Read + Execute r-x
6 110 Read + Write rw-
7 111 Read + Write + Execute rwx
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 18 / 20
File permissions
Changing the file permissions (Absolute mode)
chmod 777 filename
chmod 001 filename
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 19 / 20
File permissions
Advance package tool (apt)
apt is a command-line utility for installing, updating, removing, and
otherwise managing deb packages on Ubuntu, Debian, and related
Linux
Department of CS, GCU, Lahore Operating System Lab September 10, 2022 20 / 20

More Related Content

Similar to Lab#1-2.pdf

Introduction to Docker
Introduction  to DockerIntroduction  to Docker
Introduction to DockerJian Wu
 
Docker Multi-arch All The Things
Docker Multi-arch All The ThingsDocker Multi-arch All The Things
Docker Multi-arch All The ThingsDocker, Inc.
 
A map for DevOps on Microsoft Stack - MS DevSummit
A map for DevOps on Microsoft Stack - MS DevSummitA map for DevOps on Microsoft Stack - MS DevSummit
A map for DevOps on Microsoft Stack - MS DevSummitGiulio Vian
 
Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...
Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...
Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...Syaiful Ahdan
 
Cloud Native Computing - Part III - Containers
Cloud Native Computing - Part III - ContainersCloud Native Computing - Part III - Containers
Cloud Native Computing - Part III - ContainersLinjith Kunnon
 
How Secure Is Your Container? ContainerCon Berlin 2016
How Secure Is Your Container? ContainerCon Berlin 2016How Secure Is Your Container? ContainerCon Berlin 2016
How Secure Is Your Container? ContainerCon Berlin 2016Phil Estes
 
Dockerizing a Symfony2 application
Dockerizing a Symfony2 applicationDockerizing a Symfony2 application
Dockerizing a Symfony2 applicationRoman Rodomansky
 
Docker London: Container Security
Docker London: Container SecurityDocker London: Container Security
Docker London: Container SecurityPhil Estes
 
Lxc – next gen virtualization for cloud intro (cloudexpo)
Lxc – next gen virtualization for cloud   intro (cloudexpo)Lxc – next gen virtualization for cloud   intro (cloudexpo)
Lxc – next gen virtualization for cloud intro (cloudexpo)Boden Russell
 
Container security
Container securityContainer security
Container securityAnthony Chow
 

Similar to Lab#1-2.pdf (20)

Introduction to Docker
Introduction  to DockerIntroduction  to Docker
Introduction to Docker
 
Fsoss12
Fsoss12Fsoss12
Fsoss12
 
Docker Multi-arch All The Things
Docker Multi-arch All The ThingsDocker Multi-arch All The Things
Docker Multi-arch All The Things
 
Docker con osdk_ver1.0
Docker con osdk_ver1.0Docker con osdk_ver1.0
Docker con osdk_ver1.0
 
DFSNov1.pptx
DFSNov1.pptxDFSNov1.pptx
DFSNov1.pptx
 
A map for DevOps on Microsoft Stack - MS DevSummit
A map for DevOps on Microsoft Stack - MS DevSummitA map for DevOps on Microsoft Stack - MS DevSummit
A map for DevOps on Microsoft Stack - MS DevSummit
 
Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...
Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...
Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...
 
Cloud Native Computing - Part III - Containers
Cloud Native Computing - Part III - ContainersCloud Native Computing - Part III - Containers
Cloud Native Computing - Part III - Containers
 
Docker-v3.pdf
Docker-v3.pdfDocker-v3.pdf
Docker-v3.pdf
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
 
How Secure Is Your Container? ContainerCon Berlin 2016
How Secure Is Your Container? ContainerCon Berlin 2016How Secure Is Your Container? ContainerCon Berlin 2016
How Secure Is Your Container? ContainerCon Berlin 2016
 
J+s
J+sJ+s
J+s
 
Docker
DockerDocker
Docker
 
Durkee apache 2009_v7
Durkee apache 2009_v7Durkee apache 2009_v7
Durkee apache 2009_v7
 
Dockerizing a Symfony2 application
Dockerizing a Symfony2 applicationDockerizing a Symfony2 application
Dockerizing a Symfony2 application
 
Docker London: Container Security
Docker London: Container SecurityDocker London: Container Security
Docker London: Container Security
 
Lxc – next gen virtualization for cloud intro (cloudexpo)
Lxc – next gen virtualization for cloud   intro (cloudexpo)Lxc – next gen virtualization for cloud   intro (cloudexpo)
Lxc – next gen virtualization for cloud intro (cloudexpo)
 
Container security
Container securityContainer security
Container security
 
Flourish11
Flourish11Flourish11
Flourish11
 
Solaris basics
Solaris basicsSolaris basics
Solaris basics
 

Recently uploaded

VIP Call Girl Bikaner Aashi 8250192130 Independent Escort Service Bikaner
VIP Call Girl Bikaner Aashi 8250192130 Independent Escort Service BikanerVIP Call Girl Bikaner Aashi 8250192130 Independent Escort Service Bikaner
VIP Call Girl Bikaner Aashi 8250192130 Independent Escort Service BikanerSuhani Kapoor
 
Week 5 Dessert Accompaniments (Cookery 9)
Week 5 Dessert Accompaniments (Cookery 9)Week 5 Dessert Accompaniments (Cookery 9)
Week 5 Dessert Accompaniments (Cookery 9)MAARLENEVIDENA
 
Top Rated Pune Call Girls Baner ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Baner ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Baner ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Baner ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Call Girls in Nagpur High Profile
 
Call Girl Nashik Khushi 7001305949 Independent Escort Service Nashik
Call Girl Nashik Khushi 7001305949 Independent Escort Service NashikCall Girl Nashik Khushi 7001305949 Independent Escort Service Nashik
Call Girl Nashik Khushi 7001305949 Independent Escort Service Nashikranjana rawat
 
VIP Call Girls Service Secunderabad Hyderabad Call +91-8250192130
VIP Call Girls Service Secunderabad Hyderabad Call +91-8250192130VIP Call Girls Service Secunderabad Hyderabad Call +91-8250192130
VIP Call Girls Service Secunderabad Hyderabad Call +91-8250192130Suhani Kapoor
 
Dubai Call Girls Drilled O525547819 Call Girls Dubai (Raphie)
Dubai Call Girls Drilled O525547819 Call Girls Dubai (Raphie)Dubai Call Girls Drilled O525547819 Call Girls Dubai (Raphie)
Dubai Call Girls Drilled O525547819 Call Girls Dubai (Raphie)kojalkojal131
 
The Most Attractive Pune Call Girls Shikrapur 8250192130 Will You Miss This C...
The Most Attractive Pune Call Girls Shikrapur 8250192130 Will You Miss This C...The Most Attractive Pune Call Girls Shikrapur 8250192130 Will You Miss This C...
The Most Attractive Pune Call Girls Shikrapur 8250192130 Will You Miss This C...ranjana rawat
 
VIP Russian Call Girls Gorakhpur Chhaya 8250192130 Independent Escort Service...
VIP Russian Call Girls Gorakhpur Chhaya 8250192130 Independent Escort Service...VIP Russian Call Girls Gorakhpur Chhaya 8250192130 Independent Escort Service...
VIP Russian Call Girls Gorakhpur Chhaya 8250192130 Independent Escort Service...Suhani Kapoor
 
Call Girls in Nashik Ila 7001305949 Independent Escort Service Nashik
Call Girls in Nashik Ila 7001305949 Independent Escort Service NashikCall Girls in Nashik Ila 7001305949 Independent Escort Service Nashik
Call Girls in Nashik Ila 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Top Rated Pune Call Girls Yashwant Nagar ⟟ 6297143586 ⟟ Call Me For Genuine ...
Top Rated  Pune Call Girls Yashwant Nagar ⟟ 6297143586 ⟟ Call Me For Genuine ...Top Rated  Pune Call Girls Yashwant Nagar ⟟ 6297143586 ⟟ Call Me For Genuine ...
Top Rated Pune Call Girls Yashwant Nagar ⟟ 6297143586 ⟟ Call Me For Genuine ...Call Girls in Nagpur High Profile
 
NO1 Trending kala jadu karne wale ka contact number kala jadu karne wale baba...
NO1 Trending kala jadu karne wale ka contact number kala jadu karne wale baba...NO1 Trending kala jadu karne wale ka contact number kala jadu karne wale baba...
NO1 Trending kala jadu karne wale ka contact number kala jadu karne wale baba...Amil baba
 
VVIP Pune Call Girls Sinhagad Road (7001035870) Pune Escorts Nearby with Comp...
VVIP Pune Call Girls Sinhagad Road (7001035870) Pune Escorts Nearby with Comp...VVIP Pune Call Girls Sinhagad Road (7001035870) Pune Escorts Nearby with Comp...
VVIP Pune Call Girls Sinhagad Road (7001035870) Pune Escorts Nearby with Comp...Call Girls in Nagpur High Profile
 
Low Rate Call Girls Nagpur Esha Call 7001035870 Meet With Nagpur Escorts
Low Rate Call Girls Nagpur Esha Call 7001035870 Meet With Nagpur EscortsLow Rate Call Girls Nagpur Esha Call 7001035870 Meet With Nagpur Escorts
Low Rate Call Girls Nagpur Esha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(SUNAINA) Call Girls Alandi Road ( 7001035870 ) HI-Fi Pune Escorts Service
(SUNAINA) Call Girls Alandi Road ( 7001035870 ) HI-Fi Pune Escorts Service(SUNAINA) Call Girls Alandi Road ( 7001035870 ) HI-Fi Pune Escorts Service
(SUNAINA) Call Girls Alandi Road ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
THE ARTISANAL SALT OF SAN VICENTE, ILOCOS SUR: A CASE STUDY
THE ARTISANAL SALT OF SAN VICENTE, ILOCOS SUR: A CASE STUDYTHE ARTISANAL SALT OF SAN VICENTE, ILOCOS SUR: A CASE STUDY
THE ARTISANAL SALT OF SAN VICENTE, ILOCOS SUR: A CASE STUDYHumphrey A Beña
 
Pesticide Calculation Review 2013 post.pptx
Pesticide Calculation Review 2013 post.pptxPesticide Calculation Review 2013 post.pptx
Pesticide Calculation Review 2013 post.pptxalfordglenn
 
VVIP Pune Call Girls Viman Nagar (7001035870) Pune Escorts Nearby with Comple...
VVIP Pune Call Girls Viman Nagar (7001035870) Pune Escorts Nearby with Comple...VVIP Pune Call Girls Viman Nagar (7001035870) Pune Escorts Nearby with Comple...
VVIP Pune Call Girls Viman Nagar (7001035870) Pune Escorts Nearby with Comple...Call Girls in Nagpur High Profile
 
(ISHITA) Call Girls Manchar ( 7001035870 ) HI-Fi Pune Escorts Service
(ISHITA) Call Girls Manchar ( 7001035870 ) HI-Fi Pune Escorts Service(ISHITA) Call Girls Manchar ( 7001035870 ) HI-Fi Pune Escorts Service
(ISHITA) Call Girls Manchar ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 

Recently uploaded (20)

VIP Call Girl Bikaner Aashi 8250192130 Independent Escort Service Bikaner
VIP Call Girl Bikaner Aashi 8250192130 Independent Escort Service BikanerVIP Call Girl Bikaner Aashi 8250192130 Independent Escort Service Bikaner
VIP Call Girl Bikaner Aashi 8250192130 Independent Escort Service Bikaner
 
Week 5 Dessert Accompaniments (Cookery 9)
Week 5 Dessert Accompaniments (Cookery 9)Week 5 Dessert Accompaniments (Cookery 9)
Week 5 Dessert Accompaniments (Cookery 9)
 
Top Rated Pune Call Girls Baner ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Baner ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Baner ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Baner ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
 
Call Girl Nashik Khushi 7001305949 Independent Escort Service Nashik
Call Girl Nashik Khushi 7001305949 Independent Escort Service NashikCall Girl Nashik Khushi 7001305949 Independent Escort Service Nashik
Call Girl Nashik Khushi 7001305949 Independent Escort Service Nashik
 
VIP Call Girls Service Secunderabad Hyderabad Call +91-8250192130
VIP Call Girls Service Secunderabad Hyderabad Call +91-8250192130VIP Call Girls Service Secunderabad Hyderabad Call +91-8250192130
VIP Call Girls Service Secunderabad Hyderabad Call +91-8250192130
 
Dwarka Sector 14 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Dwarka Sector 14 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceDwarka Sector 14 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Dwarka Sector 14 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Dubai Call Girls Drilled O525547819 Call Girls Dubai (Raphie)
Dubai Call Girls Drilled O525547819 Call Girls Dubai (Raphie)Dubai Call Girls Drilled O525547819 Call Girls Dubai (Raphie)
Dubai Call Girls Drilled O525547819 Call Girls Dubai (Raphie)
 
The Most Attractive Pune Call Girls Shikrapur 8250192130 Will You Miss This C...
The Most Attractive Pune Call Girls Shikrapur 8250192130 Will You Miss This C...The Most Attractive Pune Call Girls Shikrapur 8250192130 Will You Miss This C...
The Most Attractive Pune Call Girls Shikrapur 8250192130 Will You Miss This C...
 
VIP Russian Call Girls Gorakhpur Chhaya 8250192130 Independent Escort Service...
VIP Russian Call Girls Gorakhpur Chhaya 8250192130 Independent Escort Service...VIP Russian Call Girls Gorakhpur Chhaya 8250192130 Independent Escort Service...
VIP Russian Call Girls Gorakhpur Chhaya 8250192130 Independent Escort Service...
 
Call Girls in Nashik Ila 7001305949 Independent Escort Service Nashik
Call Girls in Nashik Ila 7001305949 Independent Escort Service NashikCall Girls in Nashik Ila 7001305949 Independent Escort Service Nashik
Call Girls in Nashik Ila 7001305949 Independent Escort Service Nashik
 
Top Rated Pune Call Girls Yashwant Nagar ⟟ 6297143586 ⟟ Call Me For Genuine ...
Top Rated  Pune Call Girls Yashwant Nagar ⟟ 6297143586 ⟟ Call Me For Genuine ...Top Rated  Pune Call Girls Yashwant Nagar ⟟ 6297143586 ⟟ Call Me For Genuine ...
Top Rated Pune Call Girls Yashwant Nagar ⟟ 6297143586 ⟟ Call Me For Genuine ...
 
5th Annual International OMGD Grand Chapitre: A Spanish Wine Journey
5th Annual International OMGD Grand Chapitre: A Spanish Wine Journey5th Annual International OMGD Grand Chapitre: A Spanish Wine Journey
5th Annual International OMGD Grand Chapitre: A Spanish Wine Journey
 
NO1 Trending kala jadu karne wale ka contact number kala jadu karne wale baba...
NO1 Trending kala jadu karne wale ka contact number kala jadu karne wale baba...NO1 Trending kala jadu karne wale ka contact number kala jadu karne wale baba...
NO1 Trending kala jadu karne wale ka contact number kala jadu karne wale baba...
 
VVIP Pune Call Girls Sinhagad Road (7001035870) Pune Escorts Nearby with Comp...
VVIP Pune Call Girls Sinhagad Road (7001035870) Pune Escorts Nearby with Comp...VVIP Pune Call Girls Sinhagad Road (7001035870) Pune Escorts Nearby with Comp...
VVIP Pune Call Girls Sinhagad Road (7001035870) Pune Escorts Nearby with Comp...
 
Low Rate Call Girls Nagpur Esha Call 7001035870 Meet With Nagpur Escorts
Low Rate Call Girls Nagpur Esha Call 7001035870 Meet With Nagpur EscortsLow Rate Call Girls Nagpur Esha Call 7001035870 Meet With Nagpur Escorts
Low Rate Call Girls Nagpur Esha Call 7001035870 Meet With Nagpur Escorts
 
(SUNAINA) Call Girls Alandi Road ( 7001035870 ) HI-Fi Pune Escorts Service
(SUNAINA) Call Girls Alandi Road ( 7001035870 ) HI-Fi Pune Escorts Service(SUNAINA) Call Girls Alandi Road ( 7001035870 ) HI-Fi Pune Escorts Service
(SUNAINA) Call Girls Alandi Road ( 7001035870 ) HI-Fi Pune Escorts Service
 
THE ARTISANAL SALT OF SAN VICENTE, ILOCOS SUR: A CASE STUDY
THE ARTISANAL SALT OF SAN VICENTE, ILOCOS SUR: A CASE STUDYTHE ARTISANAL SALT OF SAN VICENTE, ILOCOS SUR: A CASE STUDY
THE ARTISANAL SALT OF SAN VICENTE, ILOCOS SUR: A CASE STUDY
 
Pesticide Calculation Review 2013 post.pptx
Pesticide Calculation Review 2013 post.pptxPesticide Calculation Review 2013 post.pptx
Pesticide Calculation Review 2013 post.pptx
 
VVIP Pune Call Girls Viman Nagar (7001035870) Pune Escorts Nearby with Comple...
VVIP Pune Call Girls Viman Nagar (7001035870) Pune Escorts Nearby with Comple...VVIP Pune Call Girls Viman Nagar (7001035870) Pune Escorts Nearby with Comple...
VVIP Pune Call Girls Viman Nagar (7001035870) Pune Escorts Nearby with Comple...
 
(ISHITA) Call Girls Manchar ( 7001035870 ) HI-Fi Pune Escorts Service
(ISHITA) Call Girls Manchar ( 7001035870 ) HI-Fi Pune Escorts Service(ISHITA) Call Girls Manchar ( 7001035870 ) HI-Fi Pune Escorts Service
(ISHITA) Call Girls Manchar ( 7001035870 ) HI-Fi Pune Escorts Service
 

Lab#1-2.pdf

  • 1. Operating System Lab (CS-2205P) Lecture 01-02 (Introduction) Department of CS, GCU, Lahore Operating System Lab September 10, 2022 1 / 20
  • 2. Agenda 1 Introduction to Linux 2 File permissions Department of CS, GCU, Lahore Operating System Lab September 10, 2022 2 / 20
  • 3. Introduction to Linux Agenda 1 Introduction to Linux 2 File permissions Department of CS, GCU, Lahore Operating System Lab September 10, 2022 3 / 20
  • 4. Introduction to Linux Linux Operating System Linux is used at many places which includes Enterprise servers Cloud (AWS, Azure) Mobile (Android) DevOps (Continuous Integration/Deployment) Department of CS, GCU, Lahore Operating System Lab September 10, 2022 4 / 20
  • 5. Introduction to Linux Linux Operating System Linux is an operating system or a kernel distributed under an open-source license The kernel is a program at the heart of the Linux operating system that takes care of fundamental stuff, like letting hardware communicate with software Department of CS, GCU, Lahore Operating System Lab September 10, 2022 5 / 20
  • 6. Introduction to Linux Linux Operating System Linux is an operating system or a kernel distributed under an open-source license The kernel is a program at the heart of the Linux operating system that takes care of fundamental stuff, like letting hardware communicate with software Department of CS, GCU, Lahore Operating System Lab September 10, 2022 5 / 20
  • 7. Introduction to Linux Linux Distributions Android Red Hat Linux (CentOS and Fedora) SUSE Linux (OpenSUSE) Scientific Linux Kali Linux Raspbian Ubuntu Mint Department of CS, GCU, Lahore Operating System Lab September 10, 2022 6 / 20
  • 8. Introduction to Linux Ubuntu Ubuntu is the modern, open source operating system on Linux for the enterprise server, desktop, cloud, and IoT Department of CS, GCU, Lahore Operating System Lab September 10, 2022 7 / 20
  • 9. Introduction to Linux Ubuntu Versions 14.04 LTS 14.1 15.1 16.04 LTS 16.1 17.1 18.04 LTS 18.1 19.1 20.04 LTS 20.1 21.04 21.1 22.04 LTS Department of CS, GCU, Lahore Operating System Lab September 10, 2022 8 / 20
  • 10. Introduction to Linux Installing Linux Linux can be installed primarily in three ways System-wide installation Using Virtualization [Para] (VMware, VirtualBox, Xen ) Using Windows 10 Subsytem of Linux Department of CS, GCU, Lahore Operating System Lab September 10, 2022 9 / 20
  • 11. Introduction to Linux Directory Hierarchy of Linux Linux can be installed primarily in three ways bin – Binary files for (single user mode) system commands sbin – Binary files for (multi-user) system commands boot Linux images and boot configuration files etc Configuration files home User files root Root User files usr Additional binaries var Updating files: logs, application data, cache proc Files representing running system processes dev Pseudo files representing devices sys Kernel resources Department of CS, GCU, Lahore Operating System Lab September 10, 2022 10 / 20
  • 12. Introduction to Linux Directory Hierarchy of Linux Linux can be installed primarily in three ways bin – Binary files for (single user mode) system commands sbin – Binary files for (multi-user) system commands boot Linux images and boot configuration files etc Configuration files home User files root Root User files usr Additional binaries var Updating files: logs, application data, cache proc Files representing running system processes dev Pseudo files representing devices sys Kernel resources Department of CS, GCU, Lahore Operating System Lab September 10, 2022 10 / 20
  • 13. Introduction to Linux Directory Hierarchy of Linux Linux can be installed primarily in three ways bin – Binary files for (single user mode) system commands sbin – Binary files for (multi-user) system commands boot Linux images and boot configuration files etc Configuration files home User files root Root User files usr Additional binaries var Updating files: logs, application data, cache proc Files representing running system processes dev Pseudo files representing devices sys Kernel resources Department of CS, GCU, Lahore Operating System Lab September 10, 2022 10 / 20
  • 14. Introduction to Linux Directory Hierarchy of Linux Linux can be installed primarily in three ways bin – Binary files for (single user mode) system commands sbin – Binary files for (multi-user) system commands boot Linux images and boot configuration files etc Configuration files home User files root Root User files usr Additional binaries var Updating files: logs, application data, cache proc Files representing running system processes dev Pseudo files representing devices sys Kernel resources Department of CS, GCU, Lahore Operating System Lab September 10, 2022 10 / 20
  • 15. Introduction to Linux Directory Hierarchy of Linux Linux can be installed primarily in three ways bin – Binary files for (single user mode) system commands sbin – Binary files for (multi-user) system commands boot Linux images and boot configuration files etc Configuration files home User files root Root User files usr Additional binaries var Updating files: logs, application data, cache proc Files representing running system processes dev Pseudo files representing devices sys Kernel resources Department of CS, GCU, Lahore Operating System Lab September 10, 2022 10 / 20
  • 16. File permissions Agenda 1 Introduction to Linux 2 File permissions Department of CS, GCU, Lahore Operating System Lab September 10, 2022 11 / 20
  • 17. File permissions Owners User A user is the owner of the file. By default, the person who created a file becomes its owner. Group A user- group can contain multiple users. All users belonging to a group will have the same Linux group permissions access to the file Other Any other user who has access to a file. This person has neither created the file, nor he belongs to a user-group who could own the file. Practically, it means everybody else Department of CS, GCU, Lahore Operating System Lab September 10, 2022 12 / 20
  • 18. File permissions Permissions Read Write Execute Department of CS, GCU, Lahore Operating System Lab September 10, 2022 13 / 20
  • 19. File permissions Changing the file permissions chmod permissions filename Symbolic mode Absolute mode Department of CS, GCU, Lahore Operating System Lab September 10, 2022 14 / 20
  • 20. File permissions Changing the file permissions (Symbolic mode) Operator Description + add permission to the file or directory - remove a permission = Sets the permission and overrides the permissions set earlier Department of CS, GCU, Lahore Operating System Lab September 10, 2022 15 / 20
  • 21. File permissions Changing the file permissions (Symbolic mode) Operator Description u user/owner g group o others a all Department of CS, GCU, Lahore Operating System Lab September 10, 2022 15 / 20
  • 22. File permissions Changing the file permissions (Symbolic mode) chmod u=rw- filename chmod g=rw- filename chmod o=rw- filename chmod o-w filename chmod g+w filename Department of CS, GCU, Lahore Operating System Lab September 10, 2022 16 / 20
  • 23. File permissions Changing the file permissions (Symbolic mode) chmod u=rw- filename chmod g=rw- filename chmod o=rw- filename chmod o-w filename chmod g+w filename Department of CS, GCU, Lahore Operating System Lab September 10, 2022 17 / 20
  • 24. File permissions Changing the file permissions (Absolute mode) Number Binary Permission type Symbol 0 000 No Permission — 1 001 Execute –x 2 010 Write -w- 3 011 Execute + Write -wx 4 100 Read r– 5 101 Read + Execute r-x 6 110 Read + Write rw- 7 111 Read + Write + Execute rwx Department of CS, GCU, Lahore Operating System Lab September 10, 2022 18 / 20
  • 25. File permissions Changing the file permissions (Absolute mode) chmod 777 filename chmod 001 filename Department of CS, GCU, Lahore Operating System Lab September 10, 2022 19 / 20
  • 26. File permissions Advance package tool (apt) apt is a command-line utility for installing, updating, removing, and otherwise managing deb packages on Ubuntu, Debian, and related Linux Department of CS, GCU, Lahore Operating System Lab September 10, 2022 20 / 20