SlideShare a Scribd company logo
1 of 13
Introduction to LINUX
Getting Started
1 Introduction to UNIX
2 LINUX GNU
3 Programming LINUX
• An Introduction to UNIX, Linux, and GNU
What Is UNIX?
The UNIX operating system was originally developed at Bell Laboratories,
once part of the telecommunications giant AT&T. Designed in the 1970s for
Digital Equipment PDP computers, UNIX has become a very popular
multiuser, multitasking operating system for a wide variety of hardware
platforms, from PC workstations to multiprocessor servers and
supercomputers.
UNIX Characteristics
• Simplicity
• Focus
• Reusable Components
• Filters
• Open File Formats
• Flexibility
What Is Linux?
• Linux is a freely distributed implementation of a UNIX-like kernel, the lowlevel core of an
operating system.
• Because Linux takes the UNIX system as its inspiration,
• Linux and UNIX programs are very similar.
• all programs written for UNIX can be compiled and run on Linux
• Linux was developed by Linus Torvalds at the University of Helsinki.
LINUX
Versions of Linux are now available for a wide variety of computer
systems using many different types of CPUs, including PCs based
On 32-bit and 64-bit Intel x86 and compatible processors
GNU stands for GNU's Not UNIX. It is a UNIX like computer operating
system, but unlike UNIX, it is free software and contains no UNIX code.
LINUX GNU
LINUX GNU
A few major examples of software from the GNU Project distributed under the
GPL follow:
❑ GCC: The GNU Compiler Collection, containing the GNU C compiler
❑ G++: A C++ compiler, included as part of gcc
❑ GDB: A source code–level debugger
❑ GNU make: A version of UNIX make
❑ Bison: A parser generator compatible with UNIX yacc
❑ bash: A command shell
❑ GNU Emacs: A text editor and environment
Programming Linux
Linux Programs
Linux applications are
represented by two special
types of files:
executables and scripts.
Executable files are programs
that can be run directly by the
Computer
Scripts are collections of
instructions for another program
❑ /bin: Binaries, programs used in booting the system
❑ /usr/bin: User binaries, standard programs available to users
❑ /usr/local/bin: Local binaries, programs specific to an installation
system administrator and will usually contain some standard places where
system programs are stored. These include:
An administrator’s login, such as root, may use a PATH variable that
includes directories where system administration programs are kept,
such as /sbin and /usr/sbin
Optional operating system components and third-party applications may be
Installed in subdirectories of /opt, and installation programs might add to your
PATH variable by way of user install scripts.
Text Editors
To write and enter the code examples in the book, you’ll need to use an editor.
There are many to choose from on a typical Linux system. The vi editor is popular
with many users.
Both of the authors like Emacs, so we suggest you take the time to learn some of the
features of this powerful editor. Almost all Linux distributions have Emacs as an
optional package you can install
The C Compiler
• On POSIX-compliant systems, the C compiler is called c89.
• The C compiler was simply called cc.
• On Linux systems that do try to implement the standards, you might find
that any or all of the commands c89, cc, and gcc refer to the system C
compiler, usually the GNU C compiler, or gcc
• In this book, we use gcc because it’s provided with Linux distributions
and because it supports the ANSI standard syntax for C
Example Program
In this example you start developing for Linux using C by writing, compiling, and running Linux program
1. Here’s the source code for the file hello.c:
#include<stdio.h>
#include<stdlib.h>
#include int main()
{
printf(“Hello Worldn”);
exit(0);
}
2. Now compile, link, and run your program.
$ gcc -o hello hello.c
$ ./hello Hello World
$
Thank you

More Related Content

What's hot (19)

Linux introduction
Linux introductionLinux introduction
Linux introduction
 
Linux introduction, class 1
Linux introduction, class 1Linux introduction, class 1
Linux introduction, class 1
 
Linux basics
Linux basicsLinux basics
Linux basics
 
Linux introduction
Linux introductionLinux introduction
Linux introduction
 
Linux programming lecture_notes
Linux programming lecture_notesLinux programming lecture_notes
Linux programming lecture_notes
 
Linux operating system ppt
Linux operating system pptLinux operating system ppt
Linux operating system ppt
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linux
 
Introduction to linux ppt
Introduction to linux pptIntroduction to linux ppt
Introduction to linux ppt
 
UNIX and Linux - an introduction by Mathias Homann
UNIX and Linux - an introduction by Mathias HomannUNIX and Linux - an introduction by Mathias Homann
UNIX and Linux - an introduction by Mathias Homann
 
Acme linux presentation
Acme linux presentationAcme linux presentation
Acme linux presentation
 
Operating systems linux
Operating systems linuxOperating systems linux
Operating systems linux
 
Linux OS presentation
Linux OS presentationLinux OS presentation
Linux OS presentation
 
ZendCon - Linux 101
ZendCon - Linux 101ZendCon - Linux 101
ZendCon - Linux 101
 
Linux command ppt
Linux command pptLinux command ppt
Linux command ppt
 
Linux operating system - Overview
Linux operating system - OverviewLinux operating system - Overview
Linux operating system - Overview
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Linux seminar
Linux seminarLinux seminar
Linux seminar
 
Linux notes
Linux notesLinux notes
Linux notes
 
Ppt af linux
Ppt af linuxPpt af linux
Ppt af linux
 

Similar to Linux Simple Introduction

Course 101: Lecture 5: Linux & GNU
Course 101: Lecture 5: Linux & GNU Course 101: Lecture 5: Linux & GNU
Course 101: Lecture 5: Linux & GNU Ahmed El-Arabawy
 
Embedded Systems: Lecture 6: Linux & GNU
Embedded Systems: Lecture 6: Linux & GNUEmbedded Systems: Lecture 6: Linux & GNU
Embedded Systems: Lecture 6: Linux & GNUAhmed El-Arabawy
 
chapter-1-introduction-to-linux.ppt
chapter-1-introduction-to-linux.pptchapter-1-introduction-to-linux.ppt
chapter-1-introduction-to-linux.pptshivushivu20
 
Hillel kobrovski Linux security overview for ciso
Hillel kobrovski   Linux security overview for cisoHillel kobrovski   Linux security overview for ciso
Hillel kobrovski Linux security overview for cisoHillel Kobrovski
 
Linux – an introduction
Linux – an introductionLinux – an introduction
Linux – an introductionWingston
 
Linux basics
Linux basicsLinux basics
Linux basicsNAILBITER
 
Introduction, Features, Basic Commands and Distribution of LINUX
Introduction, Features, Basic Commands and Distribution of LINUXIntroduction, Features, Basic Commands and Distribution of LINUX
Introduction, Features, Basic Commands and Distribution of LINUXDeeksha Verma
 
01 linux history overview
01 linux history overview01 linux history overview
01 linux history overviewShay Cohen
 
introductiontolinuxpptbatch2-141025005514-conversion-gate01 (1).pdf
introductiontolinuxpptbatch2-141025005514-conversion-gate01 (1).pdfintroductiontolinuxpptbatch2-141025005514-conversion-gate01 (1).pdf
introductiontolinuxpptbatch2-141025005514-conversion-gate01 (1).pdfEidTahir
 
Building Embedded Linux Full Tutorial for ARM
Building Embedded Linux Full Tutorial for ARMBuilding Embedded Linux Full Tutorial for ARM
Building Embedded Linux Full Tutorial for ARMSherif Mousa
 
Autotools pratical training
Autotools pratical trainingAutotools pratical training
Autotools pratical trainingThierry Gayet
 
Linux Operating System. UOG MARGHAZAR Campus
 Linux Operating System. UOG MARGHAZAR Campus Linux Operating System. UOG MARGHAZAR Campus
Linux Operating System. UOG MARGHAZAR CampusSYEDASADALI38
 

Similar to Linux Simple Introduction (20)

Course 101: Lecture 5: Linux & GNU
Course 101: Lecture 5: Linux & GNU Course 101: Lecture 5: Linux & GNU
Course 101: Lecture 5: Linux & GNU
 
Embedded Systems: Lecture 6: Linux & GNU
Embedded Systems: Lecture 6: Linux & GNUEmbedded Systems: Lecture 6: Linux & GNU
Embedded Systems: Lecture 6: Linux & GNU
 
Linux forensics
Linux forensicsLinux forensics
Linux forensics
 
chapter-1-introduction-to-linux.ppt
chapter-1-introduction-to-linux.pptchapter-1-introduction-to-linux.ppt
chapter-1-introduction-to-linux.ppt
 
Introduction to Linux.ppt
Introduction to Linux.pptIntroduction to Linux.ppt
Introduction to Linux.ppt
 
Licão 01 introduction
Licão 01 introductionLicão 01 introduction
Licão 01 introduction
 
Hillel kobrovski Linux security overview for ciso
Hillel kobrovski   Linux security overview for cisoHillel kobrovski   Linux security overview for ciso
Hillel kobrovski Linux security overview for ciso
 
Linux – an introduction
Linux – an introductionLinux – an introduction
Linux – an introduction
 
Linux basics
Linux basicsLinux basics
Linux basics
 
Linux
LinuxLinux
Linux
 
Linux is a unix
Linux  is a unixLinux  is a unix
Linux is a unix
 
Linux
LinuxLinux
Linux
 
Introduction, Features, Basic Commands and Distribution of LINUX
Introduction, Features, Basic Commands and Distribution of LINUXIntroduction, Features, Basic Commands and Distribution of LINUX
Introduction, Features, Basic Commands and Distribution of LINUX
 
Opensource technologies
Opensource technologiesOpensource technologies
Opensource technologies
 
01 linux history overview
01 linux history overview01 linux history overview
01 linux history overview
 
Introduction to Linux
Introduction to LinuxIntroduction to Linux
Introduction to Linux
 
introductiontolinuxpptbatch2-141025005514-conversion-gate01 (1).pdf
introductiontolinuxpptbatch2-141025005514-conversion-gate01 (1).pdfintroductiontolinuxpptbatch2-141025005514-conversion-gate01 (1).pdf
introductiontolinuxpptbatch2-141025005514-conversion-gate01 (1).pdf
 
Building Embedded Linux Full Tutorial for ARM
Building Embedded Linux Full Tutorial for ARMBuilding Embedded Linux Full Tutorial for ARM
Building Embedded Linux Full Tutorial for ARM
 
Autotools pratical training
Autotools pratical trainingAutotools pratical training
Autotools pratical training
 
Linux Operating System. UOG MARGHAZAR Campus
 Linux Operating System. UOG MARGHAZAR Campus Linux Operating System. UOG MARGHAZAR Campus
Linux Operating System. UOG MARGHAZAR Campus
 

Recently uploaded

Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxsqpmdrvczh
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 

Recently uploaded (20)

Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 

Linux Simple Introduction

  • 2. Getting Started 1 Introduction to UNIX 2 LINUX GNU 3 Programming LINUX
  • 3. • An Introduction to UNIX, Linux, and GNU What Is UNIX? The UNIX operating system was originally developed at Bell Laboratories, once part of the telecommunications giant AT&T. Designed in the 1970s for Digital Equipment PDP computers, UNIX has become a very popular multiuser, multitasking operating system for a wide variety of hardware platforms, from PC workstations to multiprocessor servers and supercomputers.
  • 4. UNIX Characteristics • Simplicity • Focus • Reusable Components • Filters • Open File Formats • Flexibility What Is Linux? • Linux is a freely distributed implementation of a UNIX-like kernel, the lowlevel core of an operating system. • Because Linux takes the UNIX system as its inspiration, • Linux and UNIX programs are very similar. • all programs written for UNIX can be compiled and run on Linux • Linux was developed by Linus Torvalds at the University of Helsinki.
  • 5. LINUX Versions of Linux are now available for a wide variety of computer systems using many different types of CPUs, including PCs based On 32-bit and 64-bit Intel x86 and compatible processors GNU stands for GNU's Not UNIX. It is a UNIX like computer operating system, but unlike UNIX, it is free software and contains no UNIX code. LINUX GNU
  • 6.
  • 7. LINUX GNU A few major examples of software from the GNU Project distributed under the GPL follow: ❑ GCC: The GNU Compiler Collection, containing the GNU C compiler ❑ G++: A C++ compiler, included as part of gcc ❑ GDB: A source code–level debugger ❑ GNU make: A version of UNIX make ❑ Bison: A parser generator compatible with UNIX yacc ❑ bash: A command shell ❑ GNU Emacs: A text editor and environment
  • 8. Programming Linux Linux Programs Linux applications are represented by two special types of files: executables and scripts. Executable files are programs that can be run directly by the Computer Scripts are collections of instructions for another program
  • 9. ❑ /bin: Binaries, programs used in booting the system ❑ /usr/bin: User binaries, standard programs available to users ❑ /usr/local/bin: Local binaries, programs specific to an installation system administrator and will usually contain some standard places where system programs are stored. These include: An administrator’s login, such as root, may use a PATH variable that includes directories where system administration programs are kept, such as /sbin and /usr/sbin Optional operating system components and third-party applications may be Installed in subdirectories of /opt, and installation programs might add to your PATH variable by way of user install scripts.
  • 10. Text Editors To write and enter the code examples in the book, you’ll need to use an editor. There are many to choose from on a typical Linux system. The vi editor is popular with many users. Both of the authors like Emacs, so we suggest you take the time to learn some of the features of this powerful editor. Almost all Linux distributions have Emacs as an optional package you can install
  • 11. The C Compiler • On POSIX-compliant systems, the C compiler is called c89. • The C compiler was simply called cc. • On Linux systems that do try to implement the standards, you might find that any or all of the commands c89, cc, and gcc refer to the system C compiler, usually the GNU C compiler, or gcc • In this book, we use gcc because it’s provided with Linux distributions and because it supports the ANSI standard syntax for C
  • 12. Example Program In this example you start developing for Linux using C by writing, compiling, and running Linux program 1. Here’s the source code for the file hello.c: #include<stdio.h> #include<stdlib.h> #include int main() { printf(“Hello Worldn”); exit(0); } 2. Now compile, link, and run your program. $ gcc -o hello hello.c $ ./hello Hello World $