SlideShare uma empresa Scribd logo
1 de 17
INTRODUCTION TO LINUX
Overview of LINUX system
 Two parts – Kernel and Shell
 Kernel
 Core part of the operating system and communicates directly
with the hardware.
 User programs access the kernel through a set of functions
called system calls.
 Shell
 It is a command interpreter.
 Acts as an interface between user and kernel.

Kernel-Shell Relationship
Characteristics
 Multiuser and Multiprocess
 File and Process
 Data, directory, process, hard disk etc (almost everything) are
expressed as a file.
 Process is a running program identified by a unique id (PID)
Directory Structure
 Files are put in a directory.
 All directories are in a hierarchical structure (tree structure).
 User can include or remove any directories on the tree.
 Top directory is “/”, which is called slash or root.
 Users have their own directory (home directory).
Directory Structure
Linux Overview
 Normal User and Super user
 In linux, administrator, is a special user which has all the rights.
 This special user is called root or superuser.
 Case Sensitive
 Myfile.doc and MYFile are different.
Basic Commands
 One command consists of 3 parts
 Command name
 Options
 Arguments
 Example:
[Ubuntu@ubuntu`]$ command-name optionA option arg1 arg2
 A space is necessary between command name, options and arguments.
 cd ..
 ls –l
 mv file1 file2
Relative and Absolute Path
 Path means a position in the directory tree.
 To express a path, you can use relative path or absolute path.
 In relative path expression, the path is not defined uniquely, it depends on
your current path.
 In absolute path expression, the path is defined uniquely, it does not
depend on the current path.
Relative and Absolute Path
 Absolute path starts with “/”
 Eg: cd /home/user1/home/a.out
 There are two special characters in the current path
 . For current directory
 .. For parent directory
Redirect and Append
 Output of a command is displayed on screen.
 Using “>” you can redirect the output from screen to a file.
 Using “>>” you can append the output to the bottom of the file.
Pipe
 Some commands require input from a file or other commands.
 Using “|”, you can use output from other command as input to the
command.
Basic Commands
 man <command> – shows all information about the command.
 Eg: man ls
 <command> --help – shows the available options for that command.
 Eg: ls -- help
 mkdir – creates a directory
 Eg: mkdir dir1
 rmdir – removes a directory
 Eg: rmdir dir1
Basic Commands
 cd –change directory
 To change to a particular directory: cd <directory name>
 Eg: cd dir1
 cd .. Moves you one directory up.
Basic Commands
 echo – writes a message to your screen.
 Eg: echo hello
 pwd – print name of current working directory.
 Eg: pwd
 who – to know the users who are currently working.
 Eg: who
 date – shows date and time
 Eg: date
Basic Commands
cal – to see the calendar of any specific month
 Usage: cal month year
 Eg: cal 7 2012 displays july’s calendar of 2012
 cp – to copy file or directory
 Eg: cp file1 file2
 ls – obtains a list of all commands in the current directory
 Eg: ls
Thank You

Mais conteúdo relacionado

Mais procurados

Unix(introduction)
Unix(introduction)Unix(introduction)
Unix(introduction)
meashi
 
Unit II - MS DOS Commands
Unit II - MS DOS CommandsUnit II - MS DOS Commands
Unit II - MS DOS Commands
Hepsijeba
 
Linux files and file permission
Linux files and file permissionLinux files and file permission
Linux files and file permission
U.P Police
 

Mais procurados (20)

Basic commands of linux
Basic commands of linuxBasic commands of linux
Basic commands of linux
 
Introduction to UNIX Command-Lines with examples
Introduction to UNIX Command-Lines with examplesIntroduction to UNIX Command-Lines with examples
Introduction to UNIX Command-Lines with examples
 
Directory Commands - R.D.Sivakumar
Directory Commands - R.D.SivakumarDirectory Commands - R.D.Sivakumar
Directory Commands - R.D.Sivakumar
 
basic-unix.pdf
basic-unix.pdfbasic-unix.pdf
basic-unix.pdf
 
Basic Linux commands
Basic Linux commandsBasic Linux commands
Basic Linux commands
 
Unix(introduction)
Unix(introduction)Unix(introduction)
Unix(introduction)
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
QSpiders - Unix Operating Systems and Commands
QSpiders - Unix Operating Systems  and CommandsQSpiders - Unix Operating Systems  and Commands
QSpiders - Unix Operating Systems and Commands
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Ms DOS
Ms DOSMs DOS
Ms DOS
 
Know the UNIX Commands
Know the UNIX CommandsKnow the UNIX Commands
Know the UNIX Commands
 
Linux commands
Linux commandsLinux commands
Linux commands
 
File permission in linux
File permission in linuxFile permission in linux
File permission in linux
 
File systems and inodes
File systems and inodesFile systems and inodes
File systems and inodes
 
Course 102: Lecture 2: Unwrapping Linux
Course 102: Lecture 2: Unwrapping Linux Course 102: Lecture 2: Unwrapping Linux
Course 102: Lecture 2: Unwrapping Linux
 
Unit II - MS DOS Commands
Unit II - MS DOS CommandsUnit II - MS DOS Commands
Unit II - MS DOS Commands
 
Introduction to ms dos
Introduction to ms dosIntroduction to ms dos
Introduction to ms dos
 
Linux day 1
Linux day 1Linux day 1
Linux day 1
 
Linux files and file permission
Linux files and file permissionLinux files and file permission
Linux files and file permission
 
Dos
DosDos
Dos
 

Destaque

Earth jam shining a light for website (1)
Earth jam   shining a light for website (1)Earth jam   shining a light for website (1)
Earth jam shining a light for website (1)
Manda Perez
 
Fatturazione elettronica xml scheda prodotto
Fatturazione elettronica xml scheda prodottoFatturazione elettronica xml scheda prodotto
Fatturazione elettronica xml scheda prodotto
ItalStudio Spa
 
Laporan akhir tingkat prokrastinasi di kalangan mahasiswa(i) ilmu komputer
Laporan akhir tingkat prokrastinasi di kalangan mahasiswa(i) ilmu komputerLaporan akhir tingkat prokrastinasi di kalangan mahasiswa(i) ilmu komputer
Laporan akhir tingkat prokrastinasi di kalangan mahasiswa(i) ilmu komputer
Ridha_nra
 
Nutrizino funtzinoa ibon laka 6.b
Nutrizino funtzinoa ibon laka  6.bNutrizino funtzinoa ibon laka  6.b
Nutrizino funtzinoa ibon laka 6.b
ibonlaka
 
Mой первый интернет-магазин (PrestaShop)
Mой первый интернет-магазин (PrestaShop)Mой первый интернет-магазин (PrestaShop)
Mой первый интернет-магазин (PrestaShop)
my1site
 
Task 2 page layout- koala proof
Task 2  page layout- koala proofTask 2  page layout- koala proof
Task 2 page layout- koala proof
harisshaikhPBM
 
Employment Claim and Retainer Signing Process
Employment Claim and Retainer Signing ProcessEmployment Claim and Retainer Signing Process
Employment Claim and Retainer Signing Process
Ben Martin
 
Distributed computing
Distributed computingDistributed computing
Distributed computing
rohitsalunke
 

Destaque (20)

Rob Nelson - Challenge 1 - Virtual Design Master
Rob Nelson - Challenge 1 - Virtual Design Master Rob Nelson - Challenge 1 - Virtual Design Master
Rob Nelson - Challenge 1 - Virtual Design Master
 
Earth jam shining a light for website (1)
Earth jam   shining a light for website (1)Earth jam   shining a light for website (1)
Earth jam shining a light for website (1)
 
Byron Schaller - Challenge 1 - Virtual Design Master
Byron Schaller - Challenge 1 - Virtual Design MasterByron Schaller - Challenge 1 - Virtual Design Master
Byron Schaller - Challenge 1 - Virtual Design Master
 
Fatturazione elettronica xml scheda prodotto
Fatturazione elettronica xml scheda prodottoFatturazione elettronica xml scheda prodotto
Fatturazione elettronica xml scheda prodotto
 
The undateables
The undateablesThe undateables
The undateables
 
Seth Forgosh - - Challenge 1 - Virtual Design Master
Seth Forgosh - - Challenge 1 - Virtual Design MasterSeth Forgosh - - Challenge 1 - Virtual Design Master
Seth Forgosh - - Challenge 1 - Virtual Design Master
 
IAS presentation.
IAS presentation.IAS presentation.
IAS presentation.
 
Kleeneze it-works-presenter-2013-uk2
Kleeneze it-works-presenter-2013-uk2Kleeneze it-works-presenter-2013-uk2
Kleeneze it-works-presenter-2013-uk2
 
سيرةمدرب
 سيرةمدرب سيرةمدرب
سيرةمدرب
 
Q lab
Q labQ lab
Q lab
 
Raport anual Fundatia Comunitara Cluj 2013
Raport anual Fundatia Comunitara Cluj 2013Raport anual Fundatia Comunitara Cluj 2013
Raport anual Fundatia Comunitara Cluj 2013
 
Rétrospective 2015
Rétrospective 2015Rétrospective 2015
Rétrospective 2015
 
Laporan akhir tingkat prokrastinasi di kalangan mahasiswa(i) ilmu komputer
Laporan akhir tingkat prokrastinasi di kalangan mahasiswa(i) ilmu komputerLaporan akhir tingkat prokrastinasi di kalangan mahasiswa(i) ilmu komputer
Laporan akhir tingkat prokrastinasi di kalangan mahasiswa(i) ilmu komputer
 
Nutrizino funtzinoa ibon laka 6.b
Nutrizino funtzinoa ibon laka  6.bNutrizino funtzinoa ibon laka  6.b
Nutrizino funtzinoa ibon laka 6.b
 
Mой первый интернет-магазин (PrestaShop)
Mой первый интернет-магазин (PrestaShop)Mой первый интернет-магазин (PrestaShop)
Mой первый интернет-магазин (PrestaShop)
 
Task 2 page layout- koala proof
Task 2  page layout- koala proofTask 2  page layout- koala proof
Task 2 page layout- koala proof
 
Rob Nelson - Challenge 2 - Virtual Design Master
Rob Nelson - Challenge 2 - Virtual Design MasterRob Nelson - Challenge 2 - Virtual Design Master
Rob Nelson - Challenge 2 - Virtual Design Master
 
Employment Claim and Retainer Signing Process
Employment Claim and Retainer Signing ProcessEmployment Claim and Retainer Signing Process
Employment Claim and Retainer Signing Process
 
Distributed computing
Distributed computingDistributed computing
Distributed computing
 
Bebes
Bebes Bebes
Bebes
 

Semelhante a Introduction to LINUX

8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unix
southees
 
An Introduction to Linux
An Introduction to LinuxAn Introduction to Linux
An Introduction to Linux
Dimas Prasetyo
 
Linux introduction-commands2338
Linux introduction-commands2338Linux introduction-commands2338
Linux introduction-commands2338
Cam YP Co., Ltd
 

Semelhante a Introduction to LINUX (20)

8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unix
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
An Introduction to Linux
An Introduction to LinuxAn Introduction to Linux
An Introduction to Linux
 
Module 02 Using Linux Command Shell
Module 02 Using Linux Command ShellModule 02 Using Linux Command Shell
Module 02 Using Linux Command Shell
 
Linux Notes-1.pdf
Linux Notes-1.pdfLinux Notes-1.pdf
Linux Notes-1.pdf
 
Linux introduction-commands2338
Linux introduction-commands2338Linux introduction-commands2338
Linux introduction-commands2338
 
Linux Introduction (Commands)
Linux Introduction (Commands)Linux Introduction (Commands)
Linux Introduction (Commands)
 
Linux introduction-commands2338
Linux introduction-commands2338Linux introduction-commands2338
Linux introduction-commands2338
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Linux file system nevigation
Linux file system nevigationLinux file system nevigation
Linux file system nevigation
 
Shell_Scripting.ppt
Shell_Scripting.pptShell_Scripting.ppt
Shell_Scripting.ppt
 
linux-lecture4.ppt
linux-lecture4.pptlinux-lecture4.ppt
linux-lecture4.ppt
 
UNIX.pptx
UNIX.pptxUNIX.pptx
UNIX.pptx
 
linux commands.pdf
linux commands.pdflinux commands.pdf
linux commands.pdf
 
Lesson 1 Linux System Fundamentals
Lesson 1 Linux System Fundamentals  Lesson 1 Linux System Fundamentals
Lesson 1 Linux System Fundamentals
 
Nguyễn Vũ Hưng: Basic Linux Power Tools
Nguyễn Vũ Hưng: Basic Linux Power Tools Nguyễn Vũ Hưng: Basic Linux Power Tools
Nguyễn Vũ Hưng: Basic Linux Power Tools
 
Karkha unix shell scritping
Karkha unix shell scritpingKarkha unix shell scritping
Karkha unix shell scritping
 
The structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformaticsThe structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformatics
 
Basics of UNIX Commands
Basics of UNIX CommandsBasics of UNIX Commands
Basics of UNIX Commands
 
Programming Embedded linux
Programming Embedded linuxProgramming Embedded linux
Programming Embedded linux
 

Último

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Último (20)

GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

Introduction to LINUX

  • 2. Overview of LINUX system  Two parts – Kernel and Shell  Kernel  Core part of the operating system and communicates directly with the hardware.  User programs access the kernel through a set of functions called system calls.  Shell  It is a command interpreter.  Acts as an interface between user and kernel. 
  • 4. Characteristics  Multiuser and Multiprocess  File and Process  Data, directory, process, hard disk etc (almost everything) are expressed as a file.  Process is a running program identified by a unique id (PID)
  • 5. Directory Structure  Files are put in a directory.  All directories are in a hierarchical structure (tree structure).  User can include or remove any directories on the tree.  Top directory is “/”, which is called slash or root.  Users have their own directory (home directory).
  • 7. Linux Overview  Normal User and Super user  In linux, administrator, is a special user which has all the rights.  This special user is called root or superuser.  Case Sensitive  Myfile.doc and MYFile are different.
  • 8. Basic Commands  One command consists of 3 parts  Command name  Options  Arguments  Example: [Ubuntu@ubuntu`]$ command-name optionA option arg1 arg2  A space is necessary between command name, options and arguments.  cd ..  ls –l  mv file1 file2
  • 9. Relative and Absolute Path  Path means a position in the directory tree.  To express a path, you can use relative path or absolute path.  In relative path expression, the path is not defined uniquely, it depends on your current path.  In absolute path expression, the path is defined uniquely, it does not depend on the current path.
  • 10. Relative and Absolute Path  Absolute path starts with “/”  Eg: cd /home/user1/home/a.out  There are two special characters in the current path  . For current directory  .. For parent directory
  • 11. Redirect and Append  Output of a command is displayed on screen.  Using “>” you can redirect the output from screen to a file.  Using “>>” you can append the output to the bottom of the file.
  • 12. Pipe  Some commands require input from a file or other commands.  Using “|”, you can use output from other command as input to the command.
  • 13. Basic Commands  man <command> – shows all information about the command.  Eg: man ls  <command> --help – shows the available options for that command.  Eg: ls -- help  mkdir – creates a directory  Eg: mkdir dir1  rmdir – removes a directory  Eg: rmdir dir1
  • 14. Basic Commands  cd –change directory  To change to a particular directory: cd <directory name>  Eg: cd dir1  cd .. Moves you one directory up.
  • 15. Basic Commands  echo – writes a message to your screen.  Eg: echo hello  pwd – print name of current working directory.  Eg: pwd  who – to know the users who are currently working.  Eg: who  date – shows date and time  Eg: date
  • 16. Basic Commands cal – to see the calendar of any specific month  Usage: cal month year  Eg: cal 7 2012 displays july’s calendar of 2012  cp – to copy file or directory  Eg: cp file1 file2  ls – obtains a list of all commands in the current directory  Eg: ls