SlideShare a Scribd company logo
Unix basics
     System Software




                                       Roman Prykhodchenko
                            rprikhodchenko@kture.kharkov.ua


Tuesday, February 8, 2011
Agenda


                    •       History

                    •       Terminology

                    •       Unix commons




Tuesday, February 8, 2011
History




Tuesday, February 8, 2011
UNIX


                    •       UNIX is a computer operating system originally
                            developed in 1969 by a group of AT&T employees
                            at Bell Labs.

                    •       Today UNIX is a family of the operating systems
                            that correspond to the Single Unix Specification.




Tuesday, February 8, 2011
Main events
                    •       1969 – MULTICS, the first implementation of the
                            UNIX operating system for General Electric
                            GE-645 computer.

                    •       1976 – UNIX Timesharing System 6

                    •       1977 – Berkley Software Distribution (BSD)

                    •       1979 – UNIX Timesharing System 7

                    •       1982 – BSD 4.1 implements TCP/IP




Tuesday, February 8, 2011
People
                       Denis Ritchie   Brian Kernighan   Ken Thompson




Tuesday, February 8, 2011
Main events

                    •       1988 – First edition of POSIX standard

                    •       1989 – The ANSI C standard is published

                    •       1983 – Richard Stallman initiated the GNU project

                    •       1992 – The GNU is using the Linux kernel

                    •       1994 – 386 BSD is released




Tuesday, February 8, 2011
People
                            Linus Torvalds   Richard Stallman




Tuesday, February 8, 2011
People
                            William Jolitz   Lynne Jolitz




Tuesday, February 8, 2011
Terminology




Tuesday, February 8, 2011
*nix


                    •       UNIX-like operating system (or just *nix) is an
                            operating system that behaves similar to UNIX but
                            does not correspond to the Single Unix
                            Specification.




Tuesday, February 8, 2011
SUS


                    •       Single UNIX specification is the collective name of
                            a family of standards for computer operating
                            systems to qualify for the name "Unix"




Tuesday, February 8, 2011
POSIX
                    •       POSIX (Portable Operating System Interface for
                            uniX)is the standard for the UNIX operating
                            system published by IEEE Computer Society.

                    •       Includes:

                            •   System API

                            •   Shell interface

                            •   API of the system utilities




Tuesday, February 8, 2011
Time-sharing


                    •       Time-sharing operating system shares a computing
                            resource among many users by means of
                            multiprogramming and multi-tasking.




Tuesday, February 8, 2011
Unix commons




Tuesday, February 8, 2011
Key properties
                    •       Portability

                    •       Preemptive multitasking

                    •       Virtual memory

                    •       Multilevel architecture

                    •       Support of asynchronous processes

                    •       Device-independent I/O




Tuesday, February 8, 2011
Software conception
                    •       Do only one thing and do it well.
                            For each task the system can perform there is a
                            separate program.

                    •       Examples:
                            cp – copies a file
                            cat – prints a file’s contents

                    •       Benefits:
                            - Simplicity
                            - Number of errors is relatively small.




Tuesday, February 8, 2011
Everything is a file
                    •       Every computer’s resource is represented by a file.

                    •       Examples:
                            /home/john/text.txt – John’s text file
                            /dev/sda – first hard drive
                            /proc/scsi – information about any devices
                            connected via a SCSI or RAID controller

                    •       Benefits:
                            Device-independent I/O operations.




Tuesday, February 8, 2011
Multilevel architecture


                    •       Each software type runs on an appropriate level

                    •       Memory is not shared between different levels

                    •       System calls for inter-level communications




Tuesday, February 8, 2011
Multilevel architecture

                            Application software, network services, utilities

                   System software (command interpreters, protocols...)

                                              System calls

                                                 Kernel




Tuesday, February 8, 2011
Kernel

                    •       Scheduling

                    •       Memory management

                    •       Interruptions processing

                    •       Inter-process communication

                    •       Low-level device support




Tuesday, February 8, 2011
Kernel

                    •       Monolithic kernel

                    •       Microkernel

                            •   Nanokernel

                            •   Exokernel

                    •       Hybrid kernel




Tuesday, February 8, 2011
Kernel




Tuesday, February 8, 2011
Kernel
                                 “Exokernel”
                            based Operating System




Tuesday, February 8, 2011
System calls


                    •       Process management

                    •       Implementation of I/O operations

                    •       Bind user actions to drivers




Tuesday, February 8, 2011
Signals

                    •       Signals are an approach of inter-process
                            communication (IPC)

                    •       Signal is an asynchronous message sent to signal

                    •       Operating system interrupts the process when it is
                            sent a signal




Tuesday, February 8, 2011
Signals


                    •       A process can implement a handler for different
                            kind of signals

                    •       Default handler kills the process

                    •       Some signals can not be handled




Tuesday, February 8, 2011
Signals
                 • Sources of signals:
                   • Keyboard shortcuts
                   • Kernel
                     • Hardware exception
                     • Wrong system call
                     • I/O operations
                   • A process

Tuesday, February 8, 2011
Shell
                Shell is a command-line interpreter that provides a
                traditional user interface for the Unix operating system
                and for Unix-like systems.

                Most popular are: bash, sh, csh, zsh




                We will mostly use bash.



Tuesday, February 8, 2011
Common syntax
                $ app_name [options] [parameters]


                Options begin with - or --
                -o1 [value] -o2 -o3 [value]
                or
                -o1o2o3


                Examples:
                $ tar -x -j -v -f archive.tar.gz
                $ tar -xjvf archive.tar.gz


                Parameters are usually required.
                $ rdesktop -f -u UserName 192.168.0.124



Tuesday, February 8, 2011
Manual pages
                Man application shows a manual page for specified
                application:
                $ man {app_name}


                Or you can use option -h to see a short help:
                $ tar -h




Tuesday, February 8, 2011
File system hierarchy standard
              /                Rood directory
              /bin/            Essential command binaries
              /boot/           Static bootloader
              /dev/            Devices represented by files
              /etc/            Host-specific configuration data
              /lib/            Basic shared libraries and kernel modules
              /mnt/            Temporary mount point
              /opt/            Optional software
              /sbin/           Basic system software
              /tmp/            Temporary data
              /usr/            Secondary hierarchy
              /var/            Variable data




Tuesday, February 8, 2011
PATH
                PATH is an environment variable used by shells for
                searching for applications.

                Applications located in directories that are included to
                PATH can be launched without specifying full path.
                $ echo $PATH
                /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/
                bin


                You can modify PATH
                $ PATH=$PATH:~/bin




Tuesday, February 8, 2011
Navigation
              cd             Navigates to specified directory

              ls             Shows current directory’s contents

              pwd            Shows current directory

              mkdir          Creates a directory

              rmdir          Removes a directory

              touch          Modifies last change date

              rm             Deletes a file




Tuesday, February 8, 2011
Inodes
                Inode is an index descriptor of a filesystem resource.

                - Every resource has own inode number.
                - File name is a link to inode.

                Example:
                $ ls -dl /usr/local
                drwxr-xr-x    8 root   root          240 Dec 22

                /usr/local
                /usr/local/.
                /usr/local/bin/..
                /usr/local/games/..
                /usr/local/lib/..
                /usr/local/sbin/..
                /usr/local/share/..
                /usr/local/src/..


Tuesday, February 8, 2011
Questions?




Tuesday, February 8, 2011

More Related Content

What's hot

Linux
LinuxLinux
Linux
dwarfyray
 
Plan9: Bad Movie, Good Operating System
Plan9: Bad Movie, Good Operating SystemPlan9: Bad Movie, Good Operating System
Plan9: Bad Movie, Good Operating System
Quentin Fennessy
 
Plan 9: Not (Only) A Better UNIX
Plan 9: Not (Only) A Better UNIXPlan 9: Not (Only) A Better UNIX
Plan 9: Not (Only) A Better UNIX
National Cheng Kung University
 
Introducing Plan9 from Bell Labs
Introducing Plan9 from Bell LabsIntroducing Plan9 from Bell Labs
Introducing Plan9 from Bell Labs
Anant Narayanan
 
Linux Vs Unix
Linux Vs UnixLinux Vs Unix
Linux Vs Unix
Mintoo Jakhmola
 
Operating Systems: A History of Linux
Operating Systems: A History of LinuxOperating Systems: A History of Linux
Operating Systems: A History of Linux
Damian T. Gordon
 
What is Linux, Ubuntu and Open Source?
What is Linux, Ubuntu and Open Source?What is Linux, Ubuntu and Open Source?
What is Linux, Ubuntu and Open Source?
Jose Kont
 

What's hot (7)

Linux
LinuxLinux
Linux
 
Plan9: Bad Movie, Good Operating System
Plan9: Bad Movie, Good Operating SystemPlan9: Bad Movie, Good Operating System
Plan9: Bad Movie, Good Operating System
 
Plan 9: Not (Only) A Better UNIX
Plan 9: Not (Only) A Better UNIXPlan 9: Not (Only) A Better UNIX
Plan 9: Not (Only) A Better UNIX
 
Introducing Plan9 from Bell Labs
Introducing Plan9 from Bell LabsIntroducing Plan9 from Bell Labs
Introducing Plan9 from Bell Labs
 
Linux Vs Unix
Linux Vs UnixLinux Vs Unix
Linux Vs Unix
 
Operating Systems: A History of Linux
Operating Systems: A History of LinuxOperating Systems: A History of Linux
Operating Systems: A History of Linux
 
What is Linux, Ubuntu and Open Source?
What is Linux, Ubuntu and Open Source?What is Linux, Ubuntu and Open Source?
What is Linux, Ubuntu and Open Source?
 

Viewers also liked

REAL TIME OPERATING SYSTEM
REAL TIME OPERATING SYSTEMREAL TIME OPERATING SYSTEM
REAL TIME OPERATING SYSTEM
prakrutijsh
 
Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded Systems
Himanshu Ghetia
 
Unix memory management
Unix memory managementUnix memory management
Unix memory management
Tech_MX
 
3 Unix Basics. Part 3
3 Unix Basics. Part 33 Unix Basics. Part 3
3 Unix Basics. Part 3
Roman Prykhodchenko
 
2 Unix basics. Part 2
2 Unix basics. Part 22 Unix basics. Part 2
2 Unix basics. Part 2
Roman Prykhodchenko
 
Compiler
CompilerCompiler
System Administration: Introduction to system administration
System Administration: Introduction to system administrationSystem Administration: Introduction to system administration
System Administration: Introduction to system administration
Khang-Ling Loh
 
Practical unix utilities for text processing
Practical unix utilities for text processingPractical unix utilities for text processing
Practical unix utilities for text processing
Anton Arhipov
 
Introduction to compiler
Introduction to compilerIntroduction to compiler
Introduction to compiler
Abha Damani
 
Compilers
CompilersCompilers
Compilers
Bense Tony
 
introduction to system administration
introduction to system administrationintroduction to system administration
introduction to system administration
gamme123
 
what is compiler and five phases of compiler
what is compiler and five phases of compilerwhat is compiler and five phases of compiler
what is compiler and five phases of compiler
adilmehmood93
 
Phases of Compiler
Phases of CompilerPhases of Compiler
Phases of Compiler
Tanzeela_Hussain
 
Phases of the Compiler - Systems Programming
Phases of the Compiler - Systems ProgrammingPhases of the Compiler - Systems Programming
Phases of the Compiler - Systems Programming
Mukesh Tekwani
 
Unix command-line tools
Unix command-line toolsUnix command-line tools
Unix command-line tools
Eric Wilson
 
Operating System 2
Operating System 2Operating System 2
Operating System 2
tech2click
 
Different phases of a compiler
Different phases of a compilerDifferent phases of a compiler
Different phases of a compiler
Sumit Sinha
 
Sed & awk the dynamic duo
Sed & awk   the dynamic duoSed & awk   the dynamic duo
Sed & awk the dynamic duo
Joshua Thijssen
 
Slideshare ppt
Slideshare pptSlideshare ppt
Slideshare ppt
Mandy Suzanne
 

Viewers also liked (20)

REAL TIME OPERATING SYSTEM
REAL TIME OPERATING SYSTEMREAL TIME OPERATING SYSTEM
REAL TIME OPERATING SYSTEM
 
Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded Systems
 
Unix memory management
Unix memory managementUnix memory management
Unix memory management
 
3 Unix Basics. Part 3
3 Unix Basics. Part 33 Unix Basics. Part 3
3 Unix Basics. Part 3
 
2 Unix basics. Part 2
2 Unix basics. Part 22 Unix basics. Part 2
2 Unix basics. Part 2
 
Compiler
CompilerCompiler
Compiler
 
System Administration: Introduction to system administration
System Administration: Introduction to system administrationSystem Administration: Introduction to system administration
System Administration: Introduction to system administration
 
Practical unix utilities for text processing
Practical unix utilities for text processingPractical unix utilities for text processing
Practical unix utilities for text processing
 
Introduction to compiler
Introduction to compilerIntroduction to compiler
Introduction to compiler
 
Compilers
CompilersCompilers
Compilers
 
introduction to system administration
introduction to system administrationintroduction to system administration
introduction to system administration
 
what is compiler and five phases of compiler
what is compiler and five phases of compilerwhat is compiler and five phases of compiler
what is compiler and five phases of compiler
 
Phases of Compiler
Phases of CompilerPhases of Compiler
Phases of Compiler
 
Unix
UnixUnix
Unix
 
Phases of the Compiler - Systems Programming
Phases of the Compiler - Systems ProgrammingPhases of the Compiler - Systems Programming
Phases of the Compiler - Systems Programming
 
Unix command-line tools
Unix command-line toolsUnix command-line tools
Unix command-line tools
 
Operating System 2
Operating System 2Operating System 2
Operating System 2
 
Different phases of a compiler
Different phases of a compilerDifferent phases of a compiler
Different phases of a compiler
 
Sed & awk the dynamic duo
Sed & awk   the dynamic duoSed & awk   the dynamic duo
Sed & awk the dynamic duo
 
Slideshare ppt
Slideshare pptSlideshare ppt
Slideshare ppt
 

Similar to 1 Unix basics. Part 1

Unix introduction
Unix  introductionUnix  introduction
Unix introduction
Kona Yuki
 
Blackhat Workshop
Blackhat WorkshopBlackhat Workshop
Blackhat Workshop
wremes
 
Unix.pptx
Unix.pptxUnix.pptx
Unix.pptx
ssuser7dc4cb
 
Windows V/S Linux OS - Comparison
Windows V/S Linux OS - ComparisonWindows V/S Linux OS - Comparison
Windows V/S Linux OS - Comparison
Hariharan Ganesan
 
Linux
LinuxLinux
Introduction to unix (1).pptx
Introduction to unix (1).pptxIntroduction to unix (1).pptx
Introduction to unix (1).pptx
virat834293
 
UNIX Operating System
UNIX Operating SystemUNIX Operating System
UNIX Operating System
Fatima Qayyum
 
RunDeck
RunDeckRunDeck
RunDeck
Bruno Bonfils
 
Unix Operaring System
Unix Operaring SystemUnix Operaring System
Unix Operaring System
Mahnoor Shaukat
 
Operating system components
Operating system componentsOperating system components
Operating system components
Syed Zaid Irshad
 
Unix ppt
Unix pptUnix ppt
Unix ppt
sudhir saurav
 
Linux: The Journey, Milestones, and What's Ahead
Linux: The Journey, Milestones, and What's AheadLinux: The Journey, Milestones, and What's Ahead
Linux: The Journey, Milestones, and What's Ahead
Jarod Wang
 
Ubuntu
UbuntuUbuntu
Linux for embedded_systems
Linux for embedded_systemsLinux for embedded_systems
Linux for embedded_systems
Vandana Salve
 
linux operating system.pptx
linux operating system.pptxlinux operating system.pptx
linux operating system.pptx
Kailash510466
 
Advance linux presentation_0702011
Advance linux presentation_0702011Advance linux presentation_0702011
Advance linux presentation_0702011
Aravindan Arun
 
Kernal assignment
Kernal assignmentKernal assignment
Kernal assignment
sai ritheesh
 
2. microkernel new
2. microkernel new2. microkernel new
2. microkernel new
AbDul ThaYyal
 
RT linux
RT linuxRT linux
RT linux
SARITHA REDDY
 
College copy
College copyCollege copy
College copy
Nikhil Kumar
 

Similar to 1 Unix basics. Part 1 (20)

Unix introduction
Unix  introductionUnix  introduction
Unix introduction
 
Blackhat Workshop
Blackhat WorkshopBlackhat Workshop
Blackhat Workshop
 
Unix.pptx
Unix.pptxUnix.pptx
Unix.pptx
 
Windows V/S Linux OS - Comparison
Windows V/S Linux OS - ComparisonWindows V/S Linux OS - Comparison
Windows V/S Linux OS - Comparison
 
Linux
LinuxLinux
Linux
 
Introduction to unix (1).pptx
Introduction to unix (1).pptxIntroduction to unix (1).pptx
Introduction to unix (1).pptx
 
UNIX Operating System
UNIX Operating SystemUNIX Operating System
UNIX Operating System
 
RunDeck
RunDeckRunDeck
RunDeck
 
Unix Operaring System
Unix Operaring SystemUnix Operaring System
Unix Operaring System
 
Operating system components
Operating system componentsOperating system components
Operating system components
 
Unix ppt
Unix pptUnix ppt
Unix ppt
 
Linux: The Journey, Milestones, and What's Ahead
Linux: The Journey, Milestones, and What's AheadLinux: The Journey, Milestones, and What's Ahead
Linux: The Journey, Milestones, and What's Ahead
 
Ubuntu
UbuntuUbuntu
Ubuntu
 
Linux for embedded_systems
Linux for embedded_systemsLinux for embedded_systems
Linux for embedded_systems
 
linux operating system.pptx
linux operating system.pptxlinux operating system.pptx
linux operating system.pptx
 
Advance linux presentation_0702011
Advance linux presentation_0702011Advance linux presentation_0702011
Advance linux presentation_0702011
 
Kernal assignment
Kernal assignmentKernal assignment
Kernal assignment
 
2. microkernel new
2. microkernel new2. microkernel new
2. microkernel new
 
RT linux
RT linuxRT linux
RT linux
 
College copy
College copyCollege copy
College copy
 

Recently uploaded

How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
zuzanka
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
zuzanka
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
imrankhan141184
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
RamseyBerglund
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
JomonJoseph58
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Henry Hollis
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
deepaannamalai16
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
nitinpv4ai
 
Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
danielkiash986
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"
National Information Standards Organization (NISO)
 

Recently uploaded (20)

How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
 
Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"
 

1 Unix basics. Part 1

  • 1. Unix basics System Software Roman Prykhodchenko rprikhodchenko@kture.kharkov.ua Tuesday, February 8, 2011
  • 2. Agenda • History • Terminology • Unix commons Tuesday, February 8, 2011
  • 4. UNIX • UNIX is a computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs. • Today UNIX is a family of the operating systems that correspond to the Single Unix Specification. Tuesday, February 8, 2011
  • 5. Main events • 1969 – MULTICS, the first implementation of the UNIX operating system for General Electric GE-645 computer. • 1976 – UNIX Timesharing System 6 • 1977 – Berkley Software Distribution (BSD) • 1979 – UNIX Timesharing System 7 • 1982 – BSD 4.1 implements TCP/IP Tuesday, February 8, 2011
  • 6. People Denis Ritchie Brian Kernighan Ken Thompson Tuesday, February 8, 2011
  • 7. Main events • 1988 – First edition of POSIX standard • 1989 – The ANSI C standard is published • 1983 – Richard Stallman initiated the GNU project • 1992 – The GNU is using the Linux kernel • 1994 – 386 BSD is released Tuesday, February 8, 2011
  • 8. People Linus Torvalds Richard Stallman Tuesday, February 8, 2011
  • 9. People William Jolitz Lynne Jolitz Tuesday, February 8, 2011
  • 11. *nix • UNIX-like operating system (or just *nix) is an operating system that behaves similar to UNIX but does not correspond to the Single Unix Specification. Tuesday, February 8, 2011
  • 12. SUS • Single UNIX specification is the collective name of a family of standards for computer operating systems to qualify for the name "Unix" Tuesday, February 8, 2011
  • 13. POSIX • POSIX (Portable Operating System Interface for uniX)is the standard for the UNIX operating system published by IEEE Computer Society. • Includes: • System API • Shell interface • API of the system utilities Tuesday, February 8, 2011
  • 14. Time-sharing • Time-sharing operating system shares a computing resource among many users by means of multiprogramming and multi-tasking. Tuesday, February 8, 2011
  • 16. Key properties • Portability • Preemptive multitasking • Virtual memory • Multilevel architecture • Support of asynchronous processes • Device-independent I/O Tuesday, February 8, 2011
  • 17. Software conception • Do only one thing and do it well. For each task the system can perform there is a separate program. • Examples: cp – copies a file cat – prints a file’s contents • Benefits: - Simplicity - Number of errors is relatively small. Tuesday, February 8, 2011
  • 18. Everything is a file • Every computer’s resource is represented by a file. • Examples: /home/john/text.txt – John’s text file /dev/sda – first hard drive /proc/scsi – information about any devices connected via a SCSI or RAID controller • Benefits: Device-independent I/O operations. Tuesday, February 8, 2011
  • 19. Multilevel architecture • Each software type runs on an appropriate level • Memory is not shared between different levels • System calls for inter-level communications Tuesday, February 8, 2011
  • 20. Multilevel architecture Application software, network services, utilities System software (command interpreters, protocols...) System calls Kernel Tuesday, February 8, 2011
  • 21. Kernel • Scheduling • Memory management • Interruptions processing • Inter-process communication • Low-level device support Tuesday, February 8, 2011
  • 22. Kernel • Monolithic kernel • Microkernel • Nanokernel • Exokernel • Hybrid kernel Tuesday, February 8, 2011
  • 24. Kernel “Exokernel” based Operating System Tuesday, February 8, 2011
  • 25. System calls • Process management • Implementation of I/O operations • Bind user actions to drivers Tuesday, February 8, 2011
  • 26. Signals • Signals are an approach of inter-process communication (IPC) • Signal is an asynchronous message sent to signal • Operating system interrupts the process when it is sent a signal Tuesday, February 8, 2011
  • 27. Signals • A process can implement a handler for different kind of signals • Default handler kills the process • Some signals can not be handled Tuesday, February 8, 2011
  • 28. Signals • Sources of signals: • Keyboard shortcuts • Kernel • Hardware exception • Wrong system call • I/O operations • A process Tuesday, February 8, 2011
  • 29. Shell Shell is a command-line interpreter that provides a traditional user interface for the Unix operating system and for Unix-like systems. Most popular are: bash, sh, csh, zsh We will mostly use bash. Tuesday, February 8, 2011
  • 30. Common syntax $ app_name [options] [parameters] Options begin with - or -- -o1 [value] -o2 -o3 [value] or -o1o2o3 Examples: $ tar -x -j -v -f archive.tar.gz $ tar -xjvf archive.tar.gz Parameters are usually required. $ rdesktop -f -u UserName 192.168.0.124 Tuesday, February 8, 2011
  • 31. Manual pages Man application shows a manual page for specified application: $ man {app_name} Or you can use option -h to see a short help: $ tar -h Tuesday, February 8, 2011
  • 32. File system hierarchy standard / Rood directory /bin/ Essential command binaries /boot/ Static bootloader /dev/ Devices represented by files /etc/ Host-specific configuration data /lib/ Basic shared libraries and kernel modules /mnt/ Temporary mount point /opt/ Optional software /sbin/ Basic system software /tmp/ Temporary data /usr/ Secondary hierarchy /var/ Variable data Tuesday, February 8, 2011
  • 33. PATH PATH is an environment variable used by shells for searching for applications. Applications located in directories that are included to PATH can be launched without specifying full path. $ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/ bin You can modify PATH $ PATH=$PATH:~/bin Tuesday, February 8, 2011
  • 34. Navigation cd Navigates to specified directory ls Shows current directory’s contents pwd Shows current directory mkdir Creates a directory rmdir Removes a directory touch Modifies last change date rm Deletes a file Tuesday, February 8, 2011
  • 35. Inodes Inode is an index descriptor of a filesystem resource. - Every resource has own inode number. - File name is a link to inode. Example: $ ls -dl /usr/local drwxr-xr-x 8 root root 240 Dec 22 /usr/local /usr/local/. /usr/local/bin/.. /usr/local/games/.. /usr/local/lib/.. /usr/local/sbin/.. /usr/local/share/.. /usr/local/src/.. Tuesday, February 8, 2011