SlideShare une entreprise Scribd logo
1  sur  41
Introduction to
     Linux
           By: Ravi Prakash Giri
               CSE 2nd Year
 Shri Mata Vaishno Devi University,Jammu
What we will cover ?
   Introduction
   What is Linux?
   Linux Distribution
   Linux vs. Windows
   Process of Installing
    Linux
    Basic Commands
   Working example
   Summary
What is Linux ?
   UNIX-like operating system

   Comprised
      System utilities
      Libraries
      From GNU Project
      Sometimes called GNU Linux


   Supported by: IBM, Sun, Novell, Microsoft,…
LINUX History
   The UNIX operating system was born in the late 1960s. It
    originally began as a one man project led by Ken Thompson of
    Bell Labs, and has since grown to become the most widely used
    operating system.
   In the time since UNIX was first developed, it has gone through
    many different generations and even mutations.
       Some differ substantially from the original version, like Berkeley Software
        Distribution (BSD) or Linux.
       Others, still contain major portions that are based on the original source
        code.
   An interesting and rather up-to-date timeline of these variations
    of UNIX can be found at
    http://www.levenez.com/unix/history.html.
Before Linux
 In 80’s, Microsoft’s DOS was the dominated OS
  for PC
 Apple MAC was better, but expensive
 UNIX was much better, but much, much more
  expensive. Only for minicomputer for commercial
  applications
 People was looking for a UNIX based system,
  which is cheaper and can run on PC
 Both DOS, MAC and UNIX were proprietary, i.e.,
  the source code of their kernel is protected
 No modification is possible without paying high
  license fees
Beginning of Linux
 A famous professor Andrew Tanenbaum
  developed Minix, a simplified version of UNIX
  that runs on PC
 Minix is for class teaching only. No intention
  for commercial use
 In Sept 1991, Linus Torvalds, a second year
  student of Computer Science at the University
  of Helsinki, developed the preliminary kernel of
  Linux, known as Linux version 0.0.1
Linux distribution
Red Hat Linux : One of the original Linux distribution.
The commercial, nonfree version is Red Hat Enterprise Linux, which is aimed at big
   companies using Linux servers and desktops in a big way.
Free version: Fedora Project.

Debian GNU/Linux : A free software distribution. Popular for use on servers.
  However, Debian is not what many would consider a distribution for beginners,
  as it's not designed with ease of use in mind.

SuSE Linux : SuSE was recently purchased by Novell. This distribution is primarily
   available for pay because it contains many commercial programs, although there's
   a stripped-down free version that you can download.

Mandrake Linux : Mandrake is perhaps strongest on the desktop. Originally based
  off of Red Hat Linux.

Gentoo Linux : Gentoo is a specialty distribution meant for programmers.
Linux vs. Windows

          Linux                          Windows
   Linux has different           Windows has different
versions, depending on which   versions. It started with Win3.x,
vendor develops and runs it.   Win9x, WinME, WinNT,
Linux vendors include:         Win2000, WinXP. It is a
Linspire, Red Hat, SuSE,       proprietary software produced
Ubuntu, Mandriva, Knoppix,     by Microsoft.
Slackware, Caldera, Debian
Linux vs. Windows
           Linux                       Windows
              Cost                           Cost
 Linux is cheap or free to    Windows is expensive to run.

run. It can be downloaded     The price to purchase a full
from various Linux vendors.   version of Windows XP
                              Professional is about USD400.
Linux may run off a server   Only one copy of Windows
so numerous computers may     may be used on a computer.
have access to the program.   Activation with Microsoft is
                              needed.
Linux vs. Windows

           Linux                           Windows
               Cost                             Cost
 Linux is an open source          Windows is a proprietary

software. Source codes are        closed source software. Codes
freely distributed to the public, are not released to the public.
of which programmers had
reviewed to improve
performance, eliminate bugs
and strengthen security.
Linux vs. Windows

           Linux                          Windows
         OS Stability                       OS Stability
 When properly                   It is known to crash easily,

configured, Linux will run       and be infected by bugs and
until the hardware fails or if   viruses.
the system is shut down.
 Linux claims that it may
continuously run up to more
than a year without freezing
or shutting down.
It is not as prone to bugs
and viruses as most are
Methods of Installation
  Traditional booting from DVD/CD
 Using third party software

 i.e. making bootable USB
 drive
For making your USB
  bootable,refer to the article at

http://www.resolutiondesproblem
        es.blogspot.com
Partition Fields
Device: This field displays the partition's device name.
Start: This field shows the sector on your hard drive where
the partition begins.

End: This field shows the sector on your hard drive where
the partition ends.

Size: This field shows the partition's size (in MB).
 Type: This field shows the partition's type (for example,
ext2, ext3, or vfat).

 Mount Point: A mount point is the location within the
directory hierarchy at which a volume exists; the volume is
"mounted" at this location. This field indicates where the
partition will be mounted.
Linux Installation


                   Filesystem Types

     ext2 — An ext2 filesystem supports standard Unix file types
     (regular files, directories, symbolic links, etc). It provides the
     ability to assign long file names, up to 255 characters. Versions
     prior to Red Hat Linux 7.2 used ext2 filesystems by default.
     ext3 — The ext3 filesystem is based on the ext2 filesystem and
     has one main advantage — journaling. Using a journaling
     filesystem reduces time spent recovering a filesystem after a
     crash as there is no need to fsck the filesystem.
     swap — Swap partitions are used to support virtual memory.
     In other words, data is written to a swap partition when there is
     not enough RAM to store the data your system is processing.
     vfat — The VFAT filesystem is a Linux filesystem that is
     compatible with Windows 95/NT long filenames on the FAT
     filesystem.
Linux Installation

 Recommended Partitioning Scheme
         Unless you have a reason for doing otherwise, it is
     recommended that you create the following partitions:
     /boot partition – contains kernel images            and grub
     configuration and commands
     / partition
     /home partition 
     Any other partition based on application (e.g /usr/local for
     squid)
     swap partition — swap partitions are used to support virtual
     memory. In other words, data is written to a swap partition
     when there is not enough RAM to store the data your system is
     processing. The size of your swap partition should be equal to
     twice your computer's RAM.
MANDRIVA INSTALLATION
Universal USB Installer
   This tool is widely used to make USB bootable
    for various operating systems or applications.
   Once you made your USB bootable,you are
    ready to use it for installing Linux.
Basic Linux
Commands
Some of the basic commands you should learn are
Commands:
                                          the ones that help you navigate the file system.
/ (root directory)
/root – home directory of the user root
pwd – you can see your home directory
df – to see disk space available
cd – to change to different directory or to go back to home dir
.. - move to parent directory
ls – list the contents of a directory; Options: -l (more info)
                                   -a (displays hidden files)
                                   -t (sort by time)
                                   -r (oldest first)
Example: ls –ltr : display an long list of files that are sorted by time, display the oldest
   ones first
cp : copy one file to another
  rm : remove a file
  man : ask for the manual (or help) of a command
      e.g. man cd ask for the manual of the command cd
  cat : to show the content of a text file
      e.g. cat abc.txt show the content of abc.txt
  whoami : to show the username of the current user

Directory is denoted by a / (slash) character
Executable program by a *
Hidden file preceded by a . (dot)
Working Example
Phishing Social Networking
           Sites
Phishing Using Linux
BACKTRACK 5 R 2
End of Presentation
      Thankyou!

Contenu connexe

Tendances

Linux presentation
Linux presentationLinux presentation
Linux presentationNikhil Jain
 
Introduction to linux ppt
Introduction to linux pptIntroduction to linux ppt
Introduction to linux pptOmi Vichare
 
Linux command ppt
Linux command pptLinux command ppt
Linux command pptkalyanineve
 
what is LINUX ? presentation.
what is LINUX ? presentation.what is LINUX ? presentation.
what is LINUX ? presentation.saad_khan1122
 
Linux ppt
Linux pptLinux ppt
Linux pptlincy21
 
Linux red hat overview and installation
Linux red hat overview and installationLinux red hat overview and installation
Linux red hat overview and installationdevenderbhati
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commandsSagar Kumar
 
Introduction to Linux
Introduction to Linux Introduction to Linux
Introduction to Linux Harish R
 
Introduction to Linux basic
Introduction to Linux basicIntroduction to Linux basic
Introduction to Linux basicf114n
 
Docker 101 - High level introduction to docker
Docker 101 - High level introduction to dockerDocker 101 - High level introduction to docker
Docker 101 - High level introduction to dockerDr Ganesh Iyer
 
Users and groups in Linux
Users and groups in LinuxUsers and groups in Linux
Users and groups in LinuxKnoldus Inc.
 

Tendances (20)

Linux presentation
Linux presentationLinux presentation
Linux presentation
 
Linux - Introductions to Linux Operating System
Linux - Introductions to Linux Operating SystemLinux - Introductions to Linux Operating System
Linux - Introductions to Linux Operating System
 
Presentation on linux
Presentation on linuxPresentation on linux
Presentation on linux
 
Introduction to linux ppt
Introduction to linux pptIntroduction to linux ppt
Introduction to linux ppt
 
Linux command ppt
Linux command pptLinux command ppt
Linux command ppt
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linux
 
what is LINUX ? presentation.
what is LINUX ? presentation.what is LINUX ? presentation.
what is LINUX ? presentation.
 
Linux ppt
Linux pptLinux ppt
Linux ppt
 
Ubuntu installation-presentations
Ubuntu installation-presentationsUbuntu installation-presentations
Ubuntu installation-presentations
 
Linux red hat overview and installation
Linux red hat overview and installationLinux red hat overview and installation
Linux red hat overview and installation
 
Linux seminar
Linux seminarLinux seminar
Linux seminar
 
An Introduction To Linux
An Introduction To LinuxAn Introduction To Linux
An Introduction To Linux
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
A History of Linux
A History of LinuxA History of Linux
A History of Linux
 
Introduction to Linux
Introduction to Linux Introduction to Linux
Introduction to Linux
 
Introduction to Linux basic
Introduction to Linux basicIntroduction to Linux basic
Introduction to Linux basic
 
Linux file system
Linux file systemLinux file system
Linux file system
 
Docker 101 - High level introduction to docker
Docker 101 - High level introduction to dockerDocker 101 - High level introduction to docker
Docker 101 - High level introduction to docker
 
Users and groups in Linux
Users and groups in LinuxUsers and groups in Linux
Users and groups in Linux
 
Linux Operating System
Linux Operating SystemLinux Operating System
Linux Operating System
 

En vedette (6)

windows vs Linux
windows vs Linuxwindows vs Linux
windows vs Linux
 
History Of Linux
History Of LinuxHistory Of Linux
History Of Linux
 
History of computers
History of computersHistory of computers
History of computers
 
Evolution of Microsoft windows operating systems
Evolution of Microsoft windows operating systemsEvolution of Microsoft windows operating systems
Evolution of Microsoft windows operating systems
 
The Six Highest Performing B2B Blog Post Formats
The Six Highest Performing B2B Blog Post FormatsThe Six Highest Performing B2B Blog Post Formats
The Six Highest Performing B2B Blog Post Formats
 
The Outcome Economy
The Outcome EconomyThe Outcome Economy
The Outcome Economy
 

Similaire à Intro to linux

Programming and problem solving 3
Programming and problem solving 3Programming and problem solving 3
Programming and problem solving 3sushruth kamarushi
 
Overview_Linux ppt
Overview_Linux pptOverview_Linux ppt
Overview_Linux pptMU
 
Chapter 8 - nsa Introduction to Linux.ppt
Chapter 8 -  nsa Introduction to Linux.pptChapter 8 -  nsa Introduction to Linux.ppt
Chapter 8 - nsa Introduction to Linux.pptgadisaAdamu
 
Linux Information
Linux InformationLinux Information
Linux InformationRahul Pola
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linuxPrasanth V
 
Presentation1 linux os
Presentation1 linux osPresentation1 linux os
Presentation1 linux osjoycoronado
 
Presentation1 linux os
Presentation1 linux osPresentation1 linux os
Presentation1 linux osruzzelarpon
 
Linux operating system ppt
Linux operating system pptLinux operating system ppt
Linux operating system pptAchyut Sinha
 
Linux operating system - Overview
Linux operating system - OverviewLinux operating system - Overview
Linux operating system - OverviewAshita Agrawal
 
Linux nic training_intro_14_dec_09
Linux nic training_intro_14_dec_09Linux nic training_intro_14_dec_09
Linux nic training_intro_14_dec_09Aravindan Arun
 
OS Lab: Introduction to Linux
OS Lab: Introduction to LinuxOS Lab: Introduction to Linux
OS Lab: Introduction to LinuxMotaz Saad
 
A general Overview of linux !!
A general Overview of linux !!A general Overview of linux !!
A general Overview of linux !!jainema23
 

Similaire à Intro to linux (20)

Programming and problem solving 3
Programming and problem solving 3Programming and problem solving 3
Programming and problem solving 3
 
Linux
Linux Linux
Linux
 
Linux introduction (eng)
Linux introduction (eng)Linux introduction (eng)
Linux introduction (eng)
 
Linux
LinuxLinux
Linux
 
Overview_Linux ppt
Overview_Linux pptOverview_Linux ppt
Overview_Linux ppt
 
Linux technology
Linux technologyLinux technology
Linux technology
 
Chapter 8 - nsa Introduction to Linux.ppt
Chapter 8 -  nsa Introduction to Linux.pptChapter 8 -  nsa Introduction to Linux.ppt
Chapter 8 - nsa Introduction to Linux.ppt
 
Linux Information
Linux InformationLinux Information
Linux Information
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linux
 
Presentation1 linux os
Presentation1 linux osPresentation1 linux os
Presentation1 linux os
 
Presentation1 linux os(2)
Presentation1 linux os(2)Presentation1 linux os(2)
Presentation1 linux os(2)
 
Presentation1 linux os
Presentation1 linux osPresentation1 linux os
Presentation1 linux os
 
Presentation1 linux os
Presentation1 linux osPresentation1 linux os
Presentation1 linux os
 
Linux forensics
Linux forensicsLinux forensics
Linux forensics
 
Linux operating system ppt
Linux operating system pptLinux operating system ppt
Linux operating system ppt
 
Unix Administration 1
Unix Administration 1Unix Administration 1
Unix Administration 1
 
Linux operating system - Overview
Linux operating system - OverviewLinux operating system - Overview
Linux operating system - Overview
 
Linux nic training_intro_14_dec_09
Linux nic training_intro_14_dec_09Linux nic training_intro_14_dec_09
Linux nic training_intro_14_dec_09
 
OS Lab: Introduction to Linux
OS Lab: Introduction to LinuxOS Lab: Introduction to Linux
OS Lab: Introduction to Linux
 
A general Overview of linux !!
A general Overview of linux !!A general Overview of linux !!
A general Overview of linux !!
 

Dernier

BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxSayali Powar
 
4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptxmary850239
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvRicaMaeCastro1
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseCeline George
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Celine George
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWQuiz Club NITW
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesVijayaLaxmi84
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1GloryAnnCastre1
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 

Dernier (20)

BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
 
4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITW
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their uses
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 

Intro to linux

  • 1. Introduction to Linux By: Ravi Prakash Giri CSE 2nd Year Shri Mata Vaishno Devi University,Jammu
  • 2. What we will cover ?  Introduction  What is Linux?  Linux Distribution  Linux vs. Windows  Process of Installing Linux  Basic Commands  Working example  Summary
  • 3. What is Linux ?  UNIX-like operating system  Comprised  System utilities  Libraries  From GNU Project  Sometimes called GNU Linux  Supported by: IBM, Sun, Novell, Microsoft,…
  • 4. LINUX History  The UNIX operating system was born in the late 1960s. It originally began as a one man project led by Ken Thompson of Bell Labs, and has since grown to become the most widely used operating system.  In the time since UNIX was first developed, it has gone through many different generations and even mutations.  Some differ substantially from the original version, like Berkeley Software Distribution (BSD) or Linux.  Others, still contain major portions that are based on the original source code.  An interesting and rather up-to-date timeline of these variations of UNIX can be found at http://www.levenez.com/unix/history.html.
  • 5. Before Linux  In 80’s, Microsoft’s DOS was the dominated OS for PC  Apple MAC was better, but expensive  UNIX was much better, but much, much more expensive. Only for minicomputer for commercial applications  People was looking for a UNIX based system, which is cheaper and can run on PC  Both DOS, MAC and UNIX were proprietary, i.e., the source code of their kernel is protected  No modification is possible without paying high license fees
  • 6. Beginning of Linux  A famous professor Andrew Tanenbaum developed Minix, a simplified version of UNIX that runs on PC  Minix is for class teaching only. No intention for commercial use  In Sept 1991, Linus Torvalds, a second year student of Computer Science at the University of Helsinki, developed the preliminary kernel of Linux, known as Linux version 0.0.1
  • 7. Linux distribution Red Hat Linux : One of the original Linux distribution. The commercial, nonfree version is Red Hat Enterprise Linux, which is aimed at big companies using Linux servers and desktops in a big way. Free version: Fedora Project. Debian GNU/Linux : A free software distribution. Popular for use on servers. However, Debian is not what many would consider a distribution for beginners, as it's not designed with ease of use in mind. SuSE Linux : SuSE was recently purchased by Novell. This distribution is primarily available for pay because it contains many commercial programs, although there's a stripped-down free version that you can download. Mandrake Linux : Mandrake is perhaps strongest on the desktop. Originally based off of Red Hat Linux. Gentoo Linux : Gentoo is a specialty distribution meant for programmers.
  • 8. Linux vs. Windows Linux Windows  Linux has different  Windows has different versions, depending on which versions. It started with Win3.x, vendor develops and runs it. Win9x, WinME, WinNT, Linux vendors include: Win2000, WinXP. It is a Linspire, Red Hat, SuSE, proprietary software produced Ubuntu, Mandriva, Knoppix, by Microsoft. Slackware, Caldera, Debian
  • 9. Linux vs. Windows Linux Windows Cost Cost  Linux is cheap or free to  Windows is expensive to run. run. It can be downloaded The price to purchase a full from various Linux vendors. version of Windows XP Professional is about USD400. Linux may run off a server Only one copy of Windows so numerous computers may may be used on a computer. have access to the program. Activation with Microsoft is needed.
  • 10. Linux vs. Windows Linux Windows Cost Cost  Linux is an open source  Windows is a proprietary software. Source codes are closed source software. Codes freely distributed to the public, are not released to the public. of which programmers had reviewed to improve performance, eliminate bugs and strengthen security.
  • 11. Linux vs. Windows Linux Windows OS Stability OS Stability  When properly  It is known to crash easily, configured, Linux will run and be infected by bugs and until the hardware fails or if viruses. the system is shut down.  Linux claims that it may continuously run up to more than a year without freezing or shutting down. It is not as prone to bugs and viruses as most are
  • 12. Methods of Installation  Traditional booting from DVD/CD  Using third party software i.e. making bootable USB drive
  • 13. For making your USB bootable,refer to the article at http://www.resolutiondesproblem es.blogspot.com
  • 14. Partition Fields Device: This field displays the partition's device name. Start: This field shows the sector on your hard drive where the partition begins. End: This field shows the sector on your hard drive where the partition ends. Size: This field shows the partition's size (in MB). Type: This field shows the partition's type (for example, ext2, ext3, or vfat). Mount Point: A mount point is the location within the directory hierarchy at which a volume exists; the volume is "mounted" at this location. This field indicates where the partition will be mounted.
  • 15. Linux Installation Filesystem Types ext2 — An ext2 filesystem supports standard Unix file types (regular files, directories, symbolic links, etc). It provides the ability to assign long file names, up to 255 characters. Versions prior to Red Hat Linux 7.2 used ext2 filesystems by default. ext3 — The ext3 filesystem is based on the ext2 filesystem and has one main advantage — journaling. Using a journaling filesystem reduces time spent recovering a filesystem after a crash as there is no need to fsck the filesystem. swap — Swap partitions are used to support virtual memory. In other words, data is written to a swap partition when there is not enough RAM to store the data your system is processing. vfat — The VFAT filesystem is a Linux filesystem that is compatible with Windows 95/NT long filenames on the FAT filesystem.
  • 16. Linux Installation Recommended Partitioning Scheme Unless you have a reason for doing otherwise, it is recommended that you create the following partitions: /boot partition – contains kernel images and grub configuration and commands / partition /home partition  Any other partition based on application (e.g /usr/local for squid) swap partition — swap partitions are used to support virtual memory. In other words, data is written to a swap partition when there is not enough RAM to store the data your system is processing. The size of your swap partition should be equal to twice your computer's RAM.
  • 18. Universal USB Installer  This tool is widely used to make USB bootable for various operating systems or applications.  Once you made your USB bootable,you are ready to use it for installing Linux.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 37. Some of the basic commands you should learn are Commands: the ones that help you navigate the file system. / (root directory) /root – home directory of the user root pwd – you can see your home directory df – to see disk space available cd – to change to different directory or to go back to home dir .. - move to parent directory ls – list the contents of a directory; Options: -l (more info) -a (displays hidden files) -t (sort by time) -r (oldest first) Example: ls –ltr : display an long list of files that are sorted by time, display the oldest ones first
  • 38. cp : copy one file to another rm : remove a file man : ask for the manual (or help) of a command e.g. man cd ask for the manual of the command cd cat : to show the content of a text file e.g. cat abc.txt show the content of abc.txt whoami : to show the username of the current user Directory is denoted by a / (slash) character Executable program by a * Hidden file preceded by a . (dot)
  • 41. End of Presentation Thankyou!