SlideShare a Scribd company logo
Introduction To Linux
         Suresh Kalidasan
What is Linux

   A Unix-like Operating System

   A famous open source project
   Free to use, distribute, modify under a compatible licence
   Produced by a large developer and user community

   A combination of many projects
   Cost of commercial development estimated at USD 7 billion

   Companies often make money by selling:
       Support
       Training
       Custom changes
How Linux can help us ?

   Full operating system
   Works well on a variety of hardware, including older
      hardware
   You can adapt it to fit your needs
   Thousands of programs available
   Secure by design
   LAMP stack
   Supports a wide range of programming languages
   Scalable
History

   1965 - Bell Labs (AT&T), GE and MIT, Project to develop a new (multiuser, multitasking) operating
    system - MULTICS. (not successful)

   1969 - Ken Thompson and Dennis Ritchie implemented the first UNIX system for the PDP-7.

   1973 - The UNIX system was rewritten in the C programming language.

   1982 - University of California, Berkeley (UCB), Developed BSD UNIX because new commercial
    UNIX releases no longer included the source code.

   1984 - Richard Stallman started the GNU project to create a free operating system.

   1991 they created a lot of the tools but no kernel.

   Professor Andrew Tanenbaum wrote the operating system MINIX from scratch to teach his students
    the inner workings of a real operating system.

   1991 Apr - At age 21, Linus Torvalds starts working on a new operating system inspired by MINIX.

   1991 September - Linux version 0.01 is released.
Linux Application
Some Linux Flavors




   http://en.wikipedia.org/wiki/List_of_Linux_distributions
Linux vs Windows

                    Linux                                           Windows
Linux  was originally built by Linus Torvalds at   Firstversion of Windows – Windows 3.1
the University of Helsinki in 1991.                 released in 1992 by Microsoft.
Linux is a Unix-like, Kernel-based, fully          Windows is a GUI based operating system

memory-protected, multitasking operating            It has powerful networking capabilities, is
system                                              multitasking, and extremely user friendly
It runs on a wide range of hardware from PCs       Many beginner users find Windows easer to
to Macs.                                            use than other operating systems
Linux has been primary used by advanced            Windows is often known for a large amount of
computer users – programmers and developers         loop holes
Linux is more virus proof since viruses –          User Interface is well known for Windows
malicious programs either cannot be run
automatically on the Linux machine, or simply
are not capable of being executed on a 386
architecture
User Interface in latest flavors like Ubuntu is

comparatively equal
User Space vs Kernel Space

  User Space            Kernel Space
User space is the       Kernel Space us
memory area where all   strictly reserved for
user mode application   running the kernel (OS
work and this memory    background process),
can be swapped out      kernel extensions and
when necessary          most device drivers

User  space process    Linux  kernel space
normally runs in its    gives full access to the
own virtual memory      hardware, although
space and unless        some exceptions runs
explicitly requested,   in user space. (The
cannot access the       graphic system most
memory of other         people use with Linux
processes.              does not run in kernel
                        in contrast to that
                        found in Microsoft
                        Windows)
Kernel Types
What is a process ?

   Actual execution of passive collection of
    instructions

   Eg:
       Running Adobe acrobat reader
       Running word pad
       Running Printer application

   All the above are named as process in OS
    and this can be run parallel, methodology
    named as Multi-Tasking
What is Thread ?

   In Linux threads are initiated
    and executed inside a process
    (process specific area)

   Multiple threads can exist within
    the same process and share
    resource such as memory, while
    different process do not share
    these resource

   Eg: opening multiple instance
    of .pdf extension files in a adobe
    acrobat reader
Process/Threads state Diagram

                   Process gets
                    initiated from
                    Creation state and
                    ended with
                    terminated state,
                    depending on the
                    logic of program
                    other states are
                    valid
Boot Flow diagram
                 GRUB ( Grand Unified
                  Bootloader) is Multi-boot
                  boot loader
                 A Master Boot Record is a
                  512 bye boot sector that
                  is the first sector of a
                  partitioned data storage
                  such as hard disk
                 Root filesystem is the file
                  system that is contained
                  on the same partition on
                  which the root directory is
                  located.
Simplified Linux Kernel Diagram
Kernel map and connection flow
File system architecture
Detailed File system structure
Anatomy of Linux
Open Community Links

   Linux kernel availability
       http://www.kernel.org/
       http://www.linux.org/
   Linux Drivers
       http://www.linux-drivers.org/
   Grub
       http://www.gnu.org/software/grub/index.html
   File System
       http://www.busybox.net/
   Google will be your best friend
This Document Release date
S.No   Author      Release              Description
                   Version/Date

1      Suresh      v0.1 / 08 Dec 2010   Initial Version
       Kalidasan

More Related Content

What's hot

Arm device tree and linux device drivers
Arm device tree and linux device driversArm device tree and linux device drivers
Arm device tree and linux device drivers
Houcheng Lin
 
Linux Kernel Module - For NLKB
Linux Kernel Module - For NLKBLinux Kernel Module - For NLKB
Linux Kernel Module - For NLKB
shimosawa
 
Linux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKBLinux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKB
shimosawa
 
Linux kernel modules
Linux kernel modulesLinux kernel modules
Linux kernel modules
Dheryta Jaisinghani
 
Linux introduction
Linux introductionLinux introduction
Linux introduction
Md. Zahid Hossain Shoeb
 
Learning AOSP - Android Linux Device Driver
Learning AOSP - Android Linux Device DriverLearning AOSP - Android Linux Device Driver
Learning AOSP - Android Linux Device Driver
Nanik Tolaram
 
Browsing Linux Kernel Source
Browsing Linux Kernel SourceBrowsing Linux Kernel Source
Browsing Linux Kernel Source
Motaz Saad
 
Introduction to Linux
Introduction to Linux Introduction to Linux
Introduction to Linux
Harish R
 
A practical guide to buildroot
A practical guide to buildrootA practical guide to buildroot
A practical guide to buildroot
Emertxe Information Technologies Pvt Ltd
 
Linux Audio Drivers. ALSA
Linux Audio Drivers. ALSALinux Audio Drivers. ALSA
Linux Audio Drivers. ALSA
GlobalLogic Ukraine
 
Linux Introduction
Linux IntroductionLinux Introduction
Linux Introduction
Libsoul Technologies Pvt. Ltd.
 
Terminal Commands (Linux - ubuntu) (part-1)
Terminal Commands  (Linux - ubuntu) (part-1)Terminal Commands  (Linux - ubuntu) (part-1)
Terminal Commands (Linux - ubuntu) (part-1)
raj upadhyay
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
Nikhil Jain
 
Audio Drivers
Audio DriversAudio Drivers
Audio Drivers
Anil Kumar Pugalia
 
U-Boot Porting on New Hardware
U-Boot Porting on New HardwareU-Boot Porting on New Hardware
U-Boot Porting on New Hardware
RuggedBoardGroup
 
Linux device drivers
Linux device drivers Linux device drivers
Linux file system
Linux file systemLinux file system
Linux file system
Md. Tanvir Hossain
 
Embedded Linux on ARM
Embedded Linux on ARMEmbedded Linux on ARM
Building Mini Embedded Linux System for X86 Arch
Building Mini Embedded Linux System for X86 ArchBuilding Mini Embedded Linux System for X86 Arch
Building Mini Embedded Linux System for X86 Arch
Sherif Mousa
 
Linux kernel
Linux kernelLinux kernel
Linux kernel
Goutam Sahoo
 

What's hot (20)

Arm device tree and linux device drivers
Arm device tree and linux device driversArm device tree and linux device drivers
Arm device tree and linux device drivers
 
Linux Kernel Module - For NLKB
Linux Kernel Module - For NLKBLinux Kernel Module - For NLKB
Linux Kernel Module - For NLKB
 
Linux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKBLinux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKB
 
Linux kernel modules
Linux kernel modulesLinux kernel modules
Linux kernel modules
 
Linux introduction
Linux introductionLinux introduction
Linux introduction
 
Learning AOSP - Android Linux Device Driver
Learning AOSP - Android Linux Device DriverLearning AOSP - Android Linux Device Driver
Learning AOSP - Android Linux Device Driver
 
Browsing Linux Kernel Source
Browsing Linux Kernel SourceBrowsing Linux Kernel Source
Browsing Linux Kernel Source
 
Introduction to Linux
Introduction to Linux Introduction to Linux
Introduction to Linux
 
A practical guide to buildroot
A practical guide to buildrootA practical guide to buildroot
A practical guide to buildroot
 
Linux Audio Drivers. ALSA
Linux Audio Drivers. ALSALinux Audio Drivers. ALSA
Linux Audio Drivers. ALSA
 
Linux Introduction
Linux IntroductionLinux Introduction
Linux Introduction
 
Terminal Commands (Linux - ubuntu) (part-1)
Terminal Commands  (Linux - ubuntu) (part-1)Terminal Commands  (Linux - ubuntu) (part-1)
Terminal Commands (Linux - ubuntu) (part-1)
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
 
Audio Drivers
Audio DriversAudio Drivers
Audio Drivers
 
U-Boot Porting on New Hardware
U-Boot Porting on New HardwareU-Boot Porting on New Hardware
U-Boot Porting on New Hardware
 
Linux device drivers
Linux device drivers Linux device drivers
Linux device drivers
 
Linux file system
Linux file systemLinux file system
Linux file system
 
Embedded Linux on ARM
Embedded Linux on ARMEmbedded Linux on ARM
Embedded Linux on ARM
 
Building Mini Embedded Linux System for X86 Arch
Building Mini Embedded Linux System for X86 ArchBuilding Mini Embedded Linux System for X86 Arch
Building Mini Embedded Linux System for X86 Arch
 
Linux kernel
Linux kernelLinux kernel
Linux kernel
 

Similar to Introduction to Linux

Linux
Linux Linux
Linux
Teja Babu
 
Intro to linux
Intro to linuxIntro to linux
Intro to linux
Ravi Prakash Giri
 
UNIT I LINUX.docx
UNIT I LINUX.docxUNIT I LINUX.docx
UNIT I LINUX.docx
BhuvanaR13
 
Linux technology
Linux technologyLinux technology
Linux technology
Prakash Poudel
 
Linux introduction (eng)
Linux introduction (eng)Linux introduction (eng)
Linux introduction (eng)
Anatoliy Okhotnikov
 
Linux and Java - Understanding and Troubleshooting
Linux and Java - Understanding and TroubleshootingLinux and Java - Understanding and Troubleshooting
Linux and Java - Understanding and Troubleshooting
Jérôme Kehrli
 
Linux forensics
Linux forensicsLinux forensics
Linux forensics
Santosh Khadsare
 
Linux basics
Linux basicsLinux basics
Linux basics
Santosh Khadsare
 
Linuxppt.pptx
Linuxppt.pptxLinuxppt.pptx
Linuxppt.pptx
Ashimann2108
 
exp_1_20bca1066 Internet.docx
exp_1_20bca1066 Internet.docxexp_1_20bca1066 Internet.docx
exp_1_20bca1066 Internet.docx
ApkaAmitbro
 
Linux Operating System
Linux Operating SystemLinux Operating System
Linux Operating System
Avnish Khandelwal
 
Linux concept workshop
Linux concept workshopLinux concept workshop
Linux concept workshop
Tahmoures Shabanian
 
Linux operating system - Overview
Linux operating system - OverviewLinux operating system - Overview
Linux operating system - Overview
Ashita Agrawal
 
exp_1_20bca1108(kashish_dixit.docx
exp_1_20bca1108(kashish_dixit.docxexp_1_20bca1108(kashish_dixit.docx
exp_1_20bca1108(kashish_dixit.docx
ApkaAmitbro
 
Linux Introduction
Linux IntroductionLinux Introduction
Linux Introduction
Ankita Tiwari
 
Linux notes
Linux notesLinux notes
Linux notes
Teja Bheemanapally
 
Linux Operating System. UOG MARGHAZAR Campus
 Linux Operating System. UOG MARGHAZAR Campus Linux Operating System. UOG MARGHAZAR Campus
Linux Operating System. UOG MARGHAZAR Campus
SYEDASADALI38
 
Module1
Module1Module1
Module1
shahilashahul
 
3CS LSP UNIT 1-1.pdf
3CS LSP UNIT 1-1.pdf3CS LSP UNIT 1-1.pdf
3CS LSP UNIT 1-1.pdf
DeepakKumar783815
 
OS Lab: Introduction to Linux
OS Lab: Introduction to LinuxOS Lab: Introduction to Linux
OS Lab: Introduction to Linux
Motaz Saad
 

Similar to Introduction to Linux (20)

Linux
Linux Linux
Linux
 
Intro to linux
Intro to linuxIntro to linux
Intro to linux
 
UNIT I LINUX.docx
UNIT I LINUX.docxUNIT I LINUX.docx
UNIT I LINUX.docx
 
Linux technology
Linux technologyLinux technology
Linux technology
 
Linux introduction (eng)
Linux introduction (eng)Linux introduction (eng)
Linux introduction (eng)
 
Linux and Java - Understanding and Troubleshooting
Linux and Java - Understanding and TroubleshootingLinux and Java - Understanding and Troubleshooting
Linux and Java - Understanding and Troubleshooting
 
Linux forensics
Linux forensicsLinux forensics
Linux forensics
 
Linux basics
Linux basicsLinux basics
Linux basics
 
Linuxppt.pptx
Linuxppt.pptxLinuxppt.pptx
Linuxppt.pptx
 
exp_1_20bca1066 Internet.docx
exp_1_20bca1066 Internet.docxexp_1_20bca1066 Internet.docx
exp_1_20bca1066 Internet.docx
 
Linux Operating System
Linux Operating SystemLinux Operating System
Linux Operating System
 
Linux concept workshop
Linux concept workshopLinux concept workshop
Linux concept workshop
 
Linux operating system - Overview
Linux operating system - OverviewLinux operating system - Overview
Linux operating system - Overview
 
exp_1_20bca1108(kashish_dixit.docx
exp_1_20bca1108(kashish_dixit.docxexp_1_20bca1108(kashish_dixit.docx
exp_1_20bca1108(kashish_dixit.docx
 
Linux Introduction
Linux IntroductionLinux Introduction
Linux Introduction
 
Linux notes
Linux notesLinux notes
Linux notes
 
Linux Operating System. UOG MARGHAZAR Campus
 Linux Operating System. UOG MARGHAZAR Campus Linux Operating System. UOG MARGHAZAR Campus
Linux Operating System. UOG MARGHAZAR Campus
 
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
 
OS Lab: Introduction to Linux
OS Lab: Introduction to LinuxOS Lab: Introduction to Linux
OS Lab: Introduction to Linux
 

Introduction to Linux

  • 1. Introduction To Linux Suresh Kalidasan
  • 2. What is Linux  A Unix-like Operating System  A famous open source project  Free to use, distribute, modify under a compatible licence  Produced by a large developer and user community  A combination of many projects  Cost of commercial development estimated at USD 7 billion  Companies often make money by selling:  Support  Training  Custom changes
  • 3. How Linux can help us ?  Full operating system  Works well on a variety of hardware, including older hardware  You can adapt it to fit your needs  Thousands of programs available  Secure by design  LAMP stack  Supports a wide range of programming languages  Scalable
  • 4. History  1965 - Bell Labs (AT&T), GE and MIT, Project to develop a new (multiuser, multitasking) operating system - MULTICS. (not successful)  1969 - Ken Thompson and Dennis Ritchie implemented the first UNIX system for the PDP-7.  1973 - The UNIX system was rewritten in the C programming language.  1982 - University of California, Berkeley (UCB), Developed BSD UNIX because new commercial UNIX releases no longer included the source code.  1984 - Richard Stallman started the GNU project to create a free operating system.  1991 they created a lot of the tools but no kernel.  Professor Andrew Tanenbaum wrote the operating system MINIX from scratch to teach his students the inner workings of a real operating system.  1991 Apr - At age 21, Linus Torvalds starts working on a new operating system inspired by MINIX.  1991 September - Linux version 0.01 is released.
  • 6. Some Linux Flavors http://en.wikipedia.org/wiki/List_of_Linux_distributions
  • 7. Linux vs Windows Linux Windows Linux was originally built by Linus Torvalds at Firstversion of Windows – Windows 3.1 the University of Helsinki in 1991. released in 1992 by Microsoft. Linux is a Unix-like, Kernel-based, fully Windows is a GUI based operating system memory-protected, multitasking operating It has powerful networking capabilities, is system multitasking, and extremely user friendly It runs on a wide range of hardware from PCs Many beginner users find Windows easer to to Macs. use than other operating systems Linux has been primary used by advanced Windows is often known for a large amount of computer users – programmers and developers loop holes Linux is more virus proof since viruses – User Interface is well known for Windows malicious programs either cannot be run automatically on the Linux machine, or simply are not capable of being executed on a 386 architecture User Interface in latest flavors like Ubuntu is comparatively equal
  • 8. User Space vs Kernel Space User Space Kernel Space User space is the  Kernel Space us memory area where all strictly reserved for user mode application running the kernel (OS work and this memory background process), can be swapped out kernel extensions and when necessary most device drivers User space process Linux kernel space normally runs in its gives full access to the own virtual memory hardware, although space and unless some exceptions runs explicitly requested, in user space. (The cannot access the graphic system most memory of other people use with Linux processes. does not run in kernel in contrast to that found in Microsoft Windows)
  • 10. What is a process ?  Actual execution of passive collection of instructions  Eg:  Running Adobe acrobat reader  Running word pad  Running Printer application  All the above are named as process in OS and this can be run parallel, methodology named as Multi-Tasking
  • 11. What is Thread ?  In Linux threads are initiated and executed inside a process (process specific area)  Multiple threads can exist within the same process and share resource such as memory, while different process do not share these resource  Eg: opening multiple instance of .pdf extension files in a adobe acrobat reader
  • 12. Process/Threads state Diagram  Process gets initiated from Creation state and ended with terminated state, depending on the logic of program other states are valid
  • 13. Boot Flow diagram  GRUB ( Grand Unified Bootloader) is Multi-boot boot loader  A Master Boot Record is a 512 bye boot sector that is the first sector of a partitioned data storage such as hard disk  Root filesystem is the file system that is contained on the same partition on which the root directory is located.
  • 15. Kernel map and connection flow
  • 17. Detailed File system structure
  • 19. Open Community Links  Linux kernel availability  http://www.kernel.org/  http://www.linux.org/  Linux Drivers  http://www.linux-drivers.org/  Grub  http://www.gnu.org/software/grub/index.html  File System  http://www.busybox.net/  Google will be your best friend
  • 20. This Document Release date S.No Author Release Description Version/Date 1 Suresh v0.1 / 08 Dec 2010 Initial Version Kalidasan