SlideShare ist ein Scribd-Unternehmen logo
1 von 41
Unix & Shell Programming
Introduction to Unix
Unix and Shell Programming
• Introduction to Unix Operating System.
• Features of Unix Operating System.
• Multiuser Capability.
• Types of Terminals
• Dumb Terminal
• Terminal Emulation
• Dial in Terminal
• Multitasking Capability
• Communication
• Security
• Portability
Unix and Shell Programming
• Unix System Organization.
• Unix System Kernel and Utilities.
• Kernel
• Shell
• Bourn Shell
• C Shell
• Korn Shell
• Unix File System.
• Files
• Ordinary Files
• Special Files
• Directory Files
• Features of Unix File System
• Directories
Unix and Shell Programming
• Blocks of the Unix File System.
• The Boot Block
• The Super Block
• Inode Table
• Data Block
• File Permission.
Introduction to Unix Operating System
In 1969 a time sharing computing system known as Multics was popular. It is written
in assembly language.
UNIX known as UNICS (Uniplexed Information and Computing System)is an operating
system which was first developed in the 1960s, But originally developed in 1969 by
Dennis Ritchie, Douglas McIroy and Joe Ossanna at AT&T Bell Labs.
It is multiuser, multitasking system for servers, desktop and laptops.
It is completely written in C language by Dennis Ritchie.
Types of UNIX
The most common UNIX’s varieties are Sun Solaris, GNU/Linux (UBNTU) and MaxOS X.
Mostly in School and Colleges use Solaris on their servers and Fedora Linux on the
desktop PCs.
Introduction to Unix Operating System
Hardware Requirement for Unix-
The hardware which are required by the Unix Operating system are
80 MB Hard Disk
4 MB Ram
16 bit Microprocessor
Out of 80 MB space actual 40 MB is used by actual OS. 10-20 Mb used as swap
space.
1 MB for each terminal.
Introduction to Unix Operating System
The UNIX OS is made up of three parts
1. Kernel
2. Shell
3. Programs/ Application
Unix Architecture
Introduction to Unix Operating System
1. Kernel
It manages files carries out all the data transfer b/w the file system and
the hardware and also manage memory.
It also hanfle any interrupt issue as it is the entity that has direct dealing with
hardware.
Kernel program is usually stored in a file, called unix.
“The kernel of UNIX is the hub of the operating system: it allocates time and
memory to programs and handles the filestore and communications in response to
system calls.”
Introduction to Unix Operating System
2. Shell
It is the mediator b/w the user and kernel. It is known as command line
interpreter (CLI).
The shell keeps a list of the commands you have typed in. If you need to repeat a
command, use the cursor keys to scroll up and down the list or type history for a list of
previous commands.
Types of Shells
1. Broun Shell
2. C Shell
3. Korn Shell
Introduction to Unix Operating System
1. Bourn Shell
It is the Steve Bourn Creation. It is bundled with every Unix System and this
shell is use by many Unix user.
2. C shell
This shell was created by Bill Joy when perusing his graduation at the
university of California.
It has the two advantages over the bourn shell.
a. It uses the alias name. You can simply enter short name of a long command.
b. You can recall previously typed command. It keeps the track all the command
issued at command line.
Introduction to Unix Operating System
3. Korn Shell
Korn shell is the superset of Bourn shell. It offers a lot of more capacity
and is decide more efficient than the other.. It is designed by David Korn at AT&T
Bell Lab.
Features of UNIX
The UNIX operating system offers several features. The important of which are as
follows-
1. Multiuser Capability
2. Multitasking Capability
3. Communication
4. Security
Features of UNIX
1. Multiuser Capability
UNIX is a multiuser operating system. In multiuser system. The same
computer resources such as Hard-Disk, Memory Processor are accessible to many
users.
Here we use terminal, different users have different terminal to operate from. A
terminal is a keyboard and monitor which are the input and output devices for
that user.
All terminals are connected to main computer or server (Host Machine)
Every user can use another peripheral such as printer.
Features of UNIX
Types of Terminals
1. Dumb Terminal
2. Terminal Emulation
3. Dial in Terminal
Features of UNIX
1. Dumb Terminal
These terminals consist of a keyboard and a display unit with no memory
or disk of its own.
This can never act as independent machine.
If they are to be used they have to be
connected to the host machine.
Features of UNIX
2. Terminal Emulation
PC has its own microprocessor, memory and disk drivers by attracting this
PC to the host through a cable and running a software this PC emulate it work as a
dumb terminal
Like a dumb terminal it transmits its processing jobs to the host machine. The
software that makes the PC work like a dump terminal is called terminal
emulation software.
VTERM and XTALK
Features of UNIX
3. Dial in Terminal
These terminal use the telephone lines to connect with the host machine
to communicate every telephone lines. It is necessary to attach a unit called
modem to the terminal as well as to the host.
Telephone Cable
Features of UNIX
2. Multitasking
It is capable of carrying out more than one job at the same time.
MSDOS also provide multitasking capability known as Serial Multitasking.
But Unix OS use fast switching by which we see that microprocessor run all the
programme simultaneously.
3. Communication
Communication may be within the network of a single main computer or
b/w two or more such computer. The user can easily exchange data program
through such program.
Features of UNIX
4. Security
Unix has three inherent provisions for protection.
a. The first is provided by assigning passwords and login names to individual user.
b. At the file level such as read, write and execute permission to each files.
c. File encrypting .
5. Portability
It can be ported to almost any computer system.
Unix File System
UNIX treats everything as a file even a directory also.
Unix file system represented by a tree like structure which start with root node
presented by /root.
Unix File System
1. bin
It contain executable files.
2. lib
It contains all the library function.
3. dev
It contains the files that control various input, output device like terminal, printer, disk drive etc.
4. usr
Each user’s files. Created by system administrator at time of account creations for users.
5. temp
It contain temporary files.
Unix File System
Types of files in Unix file system
• Ordinary Files − An ordinary file is a file on the system that contains data, text,
or program instructions.
• Directories − Directories store both special and ordinary files. For users
familiar with Windows or Mac OS, Unix directories are equivalent to folders.
• Special Files − Some special files provide access to hardware such as hard
drives, CD-ROM drives, modems, and Ethernet adapters. Other special files are
similar to aliases or shortcuts and enable you to access a single file using
different names.
Unix File System
Features of Unix file system
1. It has a hierarchical file structure.
2. Files can grow dynamically.
3. Files have access permissions.
4. All the devices are implemented as files.
Unix File System
Directories
A directory is a file the solo job of which is to store the file names and the related
information. All the files, whether ordinary, special, or directory, are contained in
directories.
Blocks of the Unix file system
A Unix file system is made up of blocks each blocks are 512 bytes. Some file system
have 1024 or 2048 bytes. It depends on how the file system have been implemented on
a particular installation.
We can use cmchk command to show block size .
1. The Boot Block
This represent beginning of the file system. It contains a program called boot
strap loader. This program is execute when we boot the host machine. Although only
one boot block is needed to start-up the system.
2. The Super Block
The super block describe the state of file system that is how large it is how many
maximum can it accommodate, how many more files can created etc.
Blocks of the Unix file system
3. Inode Table
We know that all the entities in Unix are treated as files. The information related to all
these files (not the content) is stored in an Inode table on the disk. For each file these is an
node entry in the table.
a. Who is the owner of the file
b. Group to which owner belongs
c. Type of file
d. File access permissions
e. Date and time of last access
f. Date and time of last access
g. Date and time of last modification
h. No of links to the file
i. Address of blocks where the file is physically present.
Blocks of the Unix file system
4. Data Block
These contains the actual file’s contents and allocated block can belong to
only one file in the file system. This block cannot be used for storing any other files
content unless the file to which originally belong is deleted.
File Permissions
There are three types of permission here
1. Owner Permissions
2. Group Permissions
3. Other (world) Permissions
There are three file access modes
1. Read
2. Write
3. Execute
File Permissions
Here is the code for understanding the file permissions
We use the chmod command to assign or modify the permission.
Two Content Layout with Table
• First bullet point here
• Second bullet point here
• Third bullet point here
Class Group 1 Group 2
Class 1 82 95
Class 2 76 88
Class 3 84 90
Title and Content Layout with SmartArt
Step 1 Title
• Task
description
• Task
description
Step 2 Title
• Task
description
• Task
description
Step 3 Title
• Task
description
• Task
description
Add a Slide Title - 1
Add a Slide Title - 2
Add a Slide Title -
3
Add a Slide
Title - 4
Add a Slide
Title - 5

Weitere ähnliche Inhalte

Was ist angesagt?

Users and groups in Linux
Users and groups in LinuxUsers and groups in Linux
Users and groups in LinuxKnoldus Inc.
 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in LinuxHenry Osborne
 
Lesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemLesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemSadia Bashir
 
Operating systems unix
Operating systems   unixOperating systems   unix
Operating systems unixAchu dhan
 
Kali linux
Kali linux Kali linux
Kali linux Fa6ma_
 
Linux presentation
Linux presentationLinux presentation
Linux presentationNikhil Jain
 
Linux.ppt
Linux.ppt Linux.ppt
Linux.ppt onu9
 
User administration concepts and mechanisms
User administration concepts and mechanismsUser administration concepts and mechanisms
User administration concepts and mechanismsDuressa Teshome
 
Ubuntu
UbuntuUbuntu
Ubuntuhome
 
The basic concept of Linux FIleSystem
The basic concept of Linux FIleSystemThe basic concept of Linux FIleSystem
The basic concept of Linux FIleSystemHungWei Chiu
 
Unix
UnixUnix
UnixErm78
 
Linux standard file system
Linux standard file systemLinux standard file system
Linux standard file systemTaaanu01
 
File system security
File system securityFile system security
File system securityAmmAr mobark
 

Was ist angesagt? (20)

Users and groups in Linux
Users and groups in LinuxUsers and groups in Linux
Users and groups in Linux
 
Linux OS presentation
Linux OS presentationLinux OS presentation
Linux OS presentation
 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in Linux
 
Presentation on linux
Presentation on linuxPresentation on linux
Presentation on linux
 
Lesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemLesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File System
 
Operating systems unix
Operating systems   unixOperating systems   unix
Operating systems unix
 
Linux file system
Linux file systemLinux file system
Linux file system
 
Linux File System
Linux File SystemLinux File System
Linux File System
 
Linux kernel
Linux kernelLinux kernel
Linux kernel
 
Kali linux
Kali linux Kali linux
Kali linux
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
 
Linux
LinuxLinux
Linux
 
Linux.ppt
Linux.ppt Linux.ppt
Linux.ppt
 
User administration concepts and mechanisms
User administration concepts and mechanismsUser administration concepts and mechanisms
User administration concepts and mechanisms
 
Ubuntu
UbuntuUbuntu
Ubuntu
 
The basic concept of Linux FIleSystem
The basic concept of Linux FIleSystemThe basic concept of Linux FIleSystem
The basic concept of Linux FIleSystem
 
Unix ppt
Unix pptUnix ppt
Unix ppt
 
Unix
UnixUnix
Unix
 
Linux standard file system
Linux standard file systemLinux standard file system
Linux standard file system
 
File system security
File system securityFile system security
File system security
 

Ähnlich wie Unix and shell programming | Unix File System | Unix File Permission | Blocks

Introduction to unix (1).pptx
Introduction to unix (1).pptxIntroduction to unix (1).pptx
Introduction to unix (1).pptxvirat834293
 
Introduction to Unix operating system Chapter 1-PPT Mrs.Sowmya Jyothi
Introduction to Unix operating system Chapter 1-PPT Mrs.Sowmya JyothiIntroduction to Unix operating system Chapter 1-PPT Mrs.Sowmya Jyothi
Introduction to Unix operating system Chapter 1-PPT Mrs.Sowmya JyothiSowmya Jyothi
 
CHAPTER 1 INTRODUCTION TO UNIX.pptx
CHAPTER 1 INTRODUCTION TO UNIX.pptxCHAPTER 1 INTRODUCTION TO UNIX.pptx
CHAPTER 1 INTRODUCTION TO UNIX.pptxMahiDivya
 
Unix operating system architecture with file structure
Unix operating system architecture with file structure Unix operating system architecture with file structure
Unix operating system architecture with file structure amol_chavan
 
Linux Operating System
Linux Operating SystemLinux Operating System
Linux Operating SystemKunalKewat1
 
UNIT II-Programming in Linux
UNIT II-Programming in LinuxUNIT II-Programming in Linux
UNIT II-Programming in LinuxDr.YNM
 
unix details file system, architecture, directory
unix details file system, architecture, directoryunix details file system, architecture, directory
unix details file system, architecture, directoryco3sem2020
 
LinuxOS-1 (1).ppt
LinuxOS-1 (1).pptLinuxOS-1 (1).ppt
LinuxOS-1 (1).pptSavitha74
 
1_Introduction_To_Unix_and_Basic_Unix_Commands
1_Introduction_To_Unix_and_Basic_Unix_Commands1_Introduction_To_Unix_and_Basic_Unix_Commands
1_Introduction_To_Unix_and_Basic_Unix_CommandsGautam Raja
 
Introduction to Unix Concets.pptx
Introduction to Unix Concets.pptxIntroduction to Unix Concets.pptx
Introduction to Unix Concets.pptxHarsha Patel
 
Introduction to Unix Concets.pptx
Introduction to Unix Concets.pptxIntroduction to Unix Concets.pptx
Introduction to Unix Concets.pptxHarsha Patel
 

Ähnlich wie Unix and shell programming | Unix File System | Unix File Permission | Blocks (20)

Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
 
Introduction to unix (1).pptx
Introduction to unix (1).pptxIntroduction to unix (1).pptx
Introduction to unix (1).pptx
 
Introduction to Unix operating system Chapter 1-PPT Mrs.Sowmya Jyothi
Introduction to Unix operating system Chapter 1-PPT Mrs.Sowmya JyothiIntroduction to Unix operating system Chapter 1-PPT Mrs.Sowmya Jyothi
Introduction to Unix operating system Chapter 1-PPT Mrs.Sowmya Jyothi
 
CHAPTER 1 INTRODUCTION TO UNIX.pptx
CHAPTER 1 INTRODUCTION TO UNIX.pptxCHAPTER 1 INTRODUCTION TO UNIX.pptx
CHAPTER 1 INTRODUCTION TO UNIX.pptx
 
Unix operating system architecture with file structure
Unix operating system architecture with file structure Unix operating system architecture with file structure
Unix operating system architecture with file structure
 
Introduction to unix
Introduction to unixIntroduction to unix
Introduction to unix
 
Spsl unit1
Spsl   unit1Spsl   unit1
Spsl unit1
 
UNIX_module1.pptx
UNIX_module1.pptxUNIX_module1.pptx
UNIX_module1.pptx
 
Unix case-study
Unix case-studyUnix case-study
Unix case-study
 
Presentation1.pdf
Presentation1.pdfPresentation1.pdf
Presentation1.pdf
 
Linux Operating System
Linux Operating SystemLinux Operating System
Linux Operating System
 
UNIT II-Programming in Linux
UNIT II-Programming in LinuxUNIT II-Programming in Linux
UNIT II-Programming in Linux
 
UNIX Operating System ppt
UNIX Operating System pptUNIX Operating System ppt
UNIX Operating System ppt
 
Module1
Module1Module1
Module1
 
3CS LSP UNIT 1-1.pdf
3CS LSP UNIT 1-1.pdf3CS LSP UNIT 1-1.pdf
3CS LSP UNIT 1-1.pdf
 
unix details file system, architecture, directory
unix details file system, architecture, directoryunix details file system, architecture, directory
unix details file system, architecture, directory
 
LinuxOS-1 (1).ppt
LinuxOS-1 (1).pptLinuxOS-1 (1).ppt
LinuxOS-1 (1).ppt
 
1_Introduction_To_Unix_and_Basic_Unix_Commands
1_Introduction_To_Unix_and_Basic_Unix_Commands1_Introduction_To_Unix_and_Basic_Unix_Commands
1_Introduction_To_Unix_and_Basic_Unix_Commands
 
Introduction to Unix Concets.pptx
Introduction to Unix Concets.pptxIntroduction to Unix Concets.pptx
Introduction to Unix Concets.pptx
 
Introduction to Unix Concets.pptx
Introduction to Unix Concets.pptxIntroduction to Unix Concets.pptx
Introduction to Unix Concets.pptx
 

Kürzlich hochgeladen

FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 

Kürzlich hochgeladen (20)

FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 

Unix and shell programming | Unix File System | Unix File Permission | Blocks

  • 1. Unix & Shell Programming Introduction to Unix
  • 2. Unix and Shell Programming • Introduction to Unix Operating System. • Features of Unix Operating System. • Multiuser Capability. • Types of Terminals • Dumb Terminal • Terminal Emulation • Dial in Terminal • Multitasking Capability • Communication • Security • Portability
  • 3. Unix and Shell Programming • Unix System Organization. • Unix System Kernel and Utilities. • Kernel • Shell • Bourn Shell • C Shell • Korn Shell • Unix File System. • Files • Ordinary Files • Special Files • Directory Files • Features of Unix File System • Directories
  • 4. Unix and Shell Programming • Blocks of the Unix File System. • The Boot Block • The Super Block • Inode Table • Data Block • File Permission.
  • 5. Introduction to Unix Operating System In 1969 a time sharing computing system known as Multics was popular. It is written in assembly language. UNIX known as UNICS (Uniplexed Information and Computing System)is an operating system which was first developed in the 1960s, But originally developed in 1969 by Dennis Ritchie, Douglas McIroy and Joe Ossanna at AT&T Bell Labs. It is multiuser, multitasking system for servers, desktop and laptops. It is completely written in C language by Dennis Ritchie. Types of UNIX The most common UNIX’s varieties are Sun Solaris, GNU/Linux (UBNTU) and MaxOS X. Mostly in School and Colleges use Solaris on their servers and Fedora Linux on the desktop PCs.
  • 6. Introduction to Unix Operating System Hardware Requirement for Unix- The hardware which are required by the Unix Operating system are 80 MB Hard Disk 4 MB Ram 16 bit Microprocessor Out of 80 MB space actual 40 MB is used by actual OS. 10-20 Mb used as swap space. 1 MB for each terminal.
  • 7. Introduction to Unix Operating System The UNIX OS is made up of three parts 1. Kernel 2. Shell 3. Programs/ Application
  • 9. Introduction to Unix Operating System 1. Kernel It manages files carries out all the data transfer b/w the file system and the hardware and also manage memory. It also hanfle any interrupt issue as it is the entity that has direct dealing with hardware. Kernel program is usually stored in a file, called unix. “The kernel of UNIX is the hub of the operating system: it allocates time and memory to programs and handles the filestore and communications in response to system calls.”
  • 10. Introduction to Unix Operating System 2. Shell It is the mediator b/w the user and kernel. It is known as command line interpreter (CLI). The shell keeps a list of the commands you have typed in. If you need to repeat a command, use the cursor keys to scroll up and down the list or type history for a list of previous commands. Types of Shells 1. Broun Shell 2. C Shell 3. Korn Shell
  • 11. Introduction to Unix Operating System 1. Bourn Shell It is the Steve Bourn Creation. It is bundled with every Unix System and this shell is use by many Unix user. 2. C shell This shell was created by Bill Joy when perusing his graduation at the university of California. It has the two advantages over the bourn shell. a. It uses the alias name. You can simply enter short name of a long command. b. You can recall previously typed command. It keeps the track all the command issued at command line.
  • 12. Introduction to Unix Operating System 3. Korn Shell Korn shell is the superset of Bourn shell. It offers a lot of more capacity and is decide more efficient than the other.. It is designed by David Korn at AT&T Bell Lab.
  • 13. Features of UNIX The UNIX operating system offers several features. The important of which are as follows- 1. Multiuser Capability 2. Multitasking Capability 3. Communication 4. Security
  • 14. Features of UNIX 1. Multiuser Capability UNIX is a multiuser operating system. In multiuser system. The same computer resources such as Hard-Disk, Memory Processor are accessible to many users. Here we use terminal, different users have different terminal to operate from. A terminal is a keyboard and monitor which are the input and output devices for that user. All terminals are connected to main computer or server (Host Machine) Every user can use another peripheral such as printer.
  • 15. Features of UNIX Types of Terminals 1. Dumb Terminal 2. Terminal Emulation 3. Dial in Terminal
  • 16. Features of UNIX 1. Dumb Terminal These terminals consist of a keyboard and a display unit with no memory or disk of its own. This can never act as independent machine. If they are to be used they have to be connected to the host machine.
  • 17.
  • 18. Features of UNIX 2. Terminal Emulation PC has its own microprocessor, memory and disk drivers by attracting this PC to the host through a cable and running a software this PC emulate it work as a dumb terminal Like a dumb terminal it transmits its processing jobs to the host machine. The software that makes the PC work like a dump terminal is called terminal emulation software. VTERM and XTALK
  • 19.
  • 20. Features of UNIX 3. Dial in Terminal These terminal use the telephone lines to connect with the host machine to communicate every telephone lines. It is necessary to attach a unit called modem to the terminal as well as to the host.
  • 22. Features of UNIX 2. Multitasking It is capable of carrying out more than one job at the same time. MSDOS also provide multitasking capability known as Serial Multitasking. But Unix OS use fast switching by which we see that microprocessor run all the programme simultaneously. 3. Communication Communication may be within the network of a single main computer or b/w two or more such computer. The user can easily exchange data program through such program.
  • 23. Features of UNIX 4. Security Unix has three inherent provisions for protection. a. The first is provided by assigning passwords and login names to individual user. b. At the file level such as read, write and execute permission to each files. c. File encrypting . 5. Portability It can be ported to almost any computer system.
  • 24. Unix File System UNIX treats everything as a file even a directory also. Unix file system represented by a tree like structure which start with root node presented by /root.
  • 25. Unix File System 1. bin It contain executable files. 2. lib It contains all the library function. 3. dev It contains the files that control various input, output device like terminal, printer, disk drive etc. 4. usr Each user’s files. Created by system administrator at time of account creations for users. 5. temp It contain temporary files.
  • 26. Unix File System Types of files in Unix file system • Ordinary Files − An ordinary file is a file on the system that contains data, text, or program instructions. • Directories − Directories store both special and ordinary files. For users familiar with Windows or Mac OS, Unix directories are equivalent to folders. • Special Files − Some special files provide access to hardware such as hard drives, CD-ROM drives, modems, and Ethernet adapters. Other special files are similar to aliases or shortcuts and enable you to access a single file using different names.
  • 27. Unix File System Features of Unix file system 1. It has a hierarchical file structure. 2. Files can grow dynamically. 3. Files have access permissions. 4. All the devices are implemented as files.
  • 28. Unix File System Directories A directory is a file the solo job of which is to store the file names and the related information. All the files, whether ordinary, special, or directory, are contained in directories.
  • 29. Blocks of the Unix file system A Unix file system is made up of blocks each blocks are 512 bytes. Some file system have 1024 or 2048 bytes. It depends on how the file system have been implemented on a particular installation. We can use cmchk command to show block size . 1. The Boot Block This represent beginning of the file system. It contains a program called boot strap loader. This program is execute when we boot the host machine. Although only one boot block is needed to start-up the system. 2. The Super Block The super block describe the state of file system that is how large it is how many maximum can it accommodate, how many more files can created etc.
  • 30. Blocks of the Unix file system 3. Inode Table We know that all the entities in Unix are treated as files. The information related to all these files (not the content) is stored in an Inode table on the disk. For each file these is an node entry in the table. a. Who is the owner of the file b. Group to which owner belongs c. Type of file d. File access permissions e. Date and time of last access f. Date and time of last access g. Date and time of last modification h. No of links to the file i. Address of blocks where the file is physically present.
  • 31. Blocks of the Unix file system 4. Data Block These contains the actual file’s contents and allocated block can belong to only one file in the file system. This block cannot be used for storing any other files content unless the file to which originally belong is deleted.
  • 32. File Permissions There are three types of permission here 1. Owner Permissions 2. Group Permissions 3. Other (world) Permissions There are three file access modes 1. Read 2. Write 3. Execute
  • 33. File Permissions Here is the code for understanding the file permissions We use the chmod command to assign or modify the permission.
  • 34. Two Content Layout with Table • First bullet point here • Second bullet point here • Third bullet point here Class Group 1 Group 2 Class 1 82 95 Class 2 76 88 Class 3 84 90
  • 35. Title and Content Layout with SmartArt Step 1 Title • Task description • Task description Step 2 Title • Task description • Task description Step 3 Title • Task description • Task description
  • 36. Add a Slide Title - 1
  • 37. Add a Slide Title - 2
  • 38. Add a Slide Title - 3
  • 39.