SlideShare uma empresa Scribd logo
1 de 25
Introduction to Linux System



    © 2013 SysPlay eLearning Academy for You <http://sysplay.in>
                       All Rights Reserved.
What to Expect?
W's of Linux System
Linux Uses Basics
Magic with Vim Editor
Partitioning and Installing Linux System
X86 Booting sequence




         © 2013 SysPlay eLearning Academy for You <http://sysplay.in>   2
                            All Rights Reserved.
W's of Linux System



© 2013 SysPlay eLearning Academy for You <http://sysplay.in>   3
                   All Rights Reserved.
Topic
What is Linux System?
Why Linux System?
What makes “Linux” as best Operating System?
What are the places Linux is being used?




         © 2013 SysPlay eLearning Academy for You <http://sysplay.in>   4
                            All Rights Reserved.
Linux Usage Basics



© 2013 SysPlay eLearning Academy for You <http://sysplay.in>   5
                   All Rights Reserved.
Topics
Root & System Directories
Shell Basics & the 'bash' Shell
File Basics & related Commands
User Basics & related Commands
File Access Permissions
System & Help Information
Standard I/O, Redirection and Pipes

          © 2013 SysPlay eLearning Academy for You <http://sysplay.in>   6
                             All Rights Reserved.
/
the Root of an inverted tree
The top-most or super-parent directory
The container of your computer
Type: ls /




             © 2013 SysPlay eLearning Academy for You <http://sysplay.in>   7
                                All Rights Reserved.
System Directories
/bin, /sbin - system binaries/applications
/var    - logs, mails
/proc, /sys - “virtual” windows into the kernel
/etc    - configuration files
/lib    - shared system libraries
/dev    - device files
/boot   - Linux kernel and boot related binary files
/opt    - for third-party packages
/root, /home - home directory for super user & other users
/usr    - user space related files and dirs (binaries, libraries, ...)
/tmp - scratch pad
/mnt - mount points



                         © 2013 SysPlay eLearning Academy for You <http://sysplay.in>   8
                                            All Rights Reserved.
Shell Basics
What is a Shell?
Various types of Shells
  Bourne Shell (sh)
  C Shell (csh)
  Korn Shell (ksh)
  Bourne Again Shell (bash)
  TENEX csh (tcsh)
  Z Shell (zsh)
  Busybox (busybox) – Embedded Systems
           © 2013 SysPlay eLearning Academy for You <http://sysplay.in>   9
                              All Rights Reserved.
Bourne Again SHell
env - shell environment variables
export [var_name] - export a shell variable
  HOME - path to user’s home directory
  PATH - executable search path
  PWD - present user directory
  PS1 - command prompt
which - shows executable path
history - command recall
         © 2013 SysPlay eLearning Academy for You <http://sysplay.in>   10
                            All Rights Reserved.
Bourne Again SHell ...
alias     - create shortcuts to commands
file      - shows the information about a file
type      - shows information about a command
Scripts
   /etc/profile - System wide startup script
   ~/.bash_profile – User specific startup script
   ~/.bashrc – Shell specific startup script
   ~/.bash_logout – User specific shutdown script
            © 2013 SysPlay eLearning Academy for You <http://sysplay.in>   11
                               All Rights Reserved.
File Basics
Every thing is viewed as a file in Linux
A file under the /
Seven Types
  Regular (-)
  Directory (d)
  Character Device (c)
  Block Device (b)
  Named Pipe (p)
  Socket (s)
  Symbolic Link (l)
                © 2013 SysPlay eLearning Academy for You <http://sysplay.in>   12
                                   All Rights Reserved.
File related Shell Commands
ls - list directory/file contents                  cat, less, head, tail - used to
cd - change directory                              view text files
                                                   vi, vim - editors
pwd - print working directory
                                                   touch - create and update files
df - disk free
                                                   grep - search in files
du - disk usage
                                                   find, locate - search for files
cp - copy
                                                   gzip, gunzip, bzip, bunzip -
mv - move, rename
                                                   compression
rm – remove                                        tar - archive
mkdir - make directory                             sed, awk - file manipulation
rmdir - remove directory
                 © 2013 SysPlay eLearning Academy for You <http://sysplay.in>        13
                                    All Rights Reserved.
User Basics
All Accesses into a Linux System are through a
User with a Password
  Super User – root
  Normal Users - <user_name>
  Files: /etc/passwd, /etc/shadow
Users can be categorized into groups
  root, bin, sys, adm, …
  File: /etc/group
          © 2013 SysPlay eLearning Academy for You <http://sysplay.in>   14
                             All Rights Reserved.
User related Shell Commands
useradd     - create user
userdel     - delete user
usermod - modify user
su - <username> - start new shell as different user
finger      - user information lookup
passwd      - change or create user password
who, w, user     - to find out who is logged in


           © 2013 SysPlay eLearning Academy for You <http://sysplay.in>   15
                              All Rights Reserved.
Related Shell Commands
chmod – Change file permissions
chown – Change file owner
chgrp – Change file group




         © 2013 SysPlay eLearning Academy for You <http://sysplay.in>   17
                            All Rights Reserved.
Few “Help”ful Shell Commands
uname               - print system information
man <topic>         - manual pages
info <topic>        - information pages




         © 2013 SysPlay eLearning Academy for You <http://sysplay.in>   18
                            All Rights Reserved.
The Complete Software System
                        Applications

                        OS Services


                     Operating System



                           Hardware



                    “Kernel Space”


                      “User Space”

     © 2013 SysPlay eLearning Academy for You <http://sysplay.in>   19
                        All Rights Reserved.
Partitioning and Installing Linux
            System



     © 2013 SysPlay eLearning Academy for You <http://sysplay.in>   20
                        All Rights Reserved.
Magic with VIM Editor



© 2013 SysPlay eLearning Academy for You <http://sysplay.in>   21
                   All Rights Reserved.
VIM Key Sheet




© 2013 SysPlay eLearning Academy for You <http://sysplay.in>   22
                   All Rights Reserved.
X86 Booting sequence



 © 2013 SysPlay eLearning Academy for You <http://sysplay.in>   23
                    All Rights Reserved.
X86 booting Flowchart




 © 2013 SysPlay eLearning Academy for You <http://sysplay.in>   24
                    All Rights Reserved.
What all have we learnt?
Introduction to Linux System
Linux Usage Basics
Magic of VIM editor
Linux System Overview
Partitioning and Installing Linux System
X86 Booting Sequence


         © 2013 SysPlay eLearning Academy for You <http://sysplay.in>   25
                            All Rights Reserved.
Any Queries?



© 2013 SysPlay eLearning Academy for You <http://sysplay.in>   26
                   All Rights Reserved.

Mais conteúdo relacionado

Mais procurados (20)

Linux User Space Debugging & Profiling
Linux User Space Debugging & ProfilingLinux User Space Debugging & Profiling
Linux User Space Debugging & Profiling
 
BeagleBone Black Booting Process
BeagleBone Black Booting ProcessBeagleBone Black Booting Process
BeagleBone Black Booting Process
 
BeagleBoard-xM Bootloaders
BeagleBoard-xM BootloadersBeagleBoard-xM Bootloaders
BeagleBoard-xM Bootloaders
 
SPI Drivers
SPI DriversSPI Drivers
SPI Drivers
 
File System Modules
File System ModulesFile System Modules
File System Modules
 
File System Modules
File System ModulesFile System Modules
File System Modules
 
Linux Porting
Linux PortingLinux Porting
Linux Porting
 
Shell Scripting
Shell ScriptingShell Scripting
Shell Scripting
 
gcc and friends
gcc and friendsgcc and friends
gcc and friends
 
PCI Drivers
PCI DriversPCI Drivers
PCI Drivers
 
RPM Building
RPM BuildingRPM Building
RPM Building
 
Toolchain
ToolchainToolchain
Toolchain
 
Linux Memory Management
Linux Memory ManagementLinux Memory Management
Linux Memory Management
 
Introduction to Linux
Introduction to LinuxIntroduction to Linux
Introduction to Linux
 
Character Drivers
Character DriversCharacter Drivers
Character Drivers
 
Video Drivers
Video DriversVideo Drivers
Video Drivers
 
BeagleBoard-xM Booting Process
BeagleBoard-xM Booting ProcessBeagleBoard-xM Booting Process
BeagleBoard-xM Booting Process
 
BeagleBone Black Bootloaders
BeagleBone Black BootloadersBeagleBone Black Bootloaders
BeagleBone Black Bootloaders
 
Linux File System
Linux File SystemLinux File System
Linux File System
 
Kernel Debugging & Profiling
Kernel Debugging & ProfilingKernel Debugging & Profiling
Kernel Debugging & Profiling
 

Destaque

Media 1 b question
Media 1 b questionMedia 1 b question
Media 1 b questionEmily236
 
Evalustion 2 technology
Evalustion 2 technologyEvalustion 2 technology
Evalustion 2 technologyEmily236
 
2 dictionary cambridge english grammar check your vocabulary for ielts
2 dictionary cambridge english grammar   check your vocabulary for ielts2 dictionary cambridge english grammar   check your vocabulary for ielts
2 dictionary cambridge english grammar check your vocabulary for ieltskrimos007
 
HTML5 + PhoneGap & Windows Phone
HTML5 + PhoneGap & Windows PhoneHTML5 + PhoneGap & Windows Phone
HTML5 + PhoneGap & Windows PhoneRashad Aliyev
 

Destaque (8)

Media 1 b question
Media 1 b questionMedia 1 b question
Media 1 b question
 
Evalustion 2 technology
Evalustion 2 technologyEvalustion 2 technology
Evalustion 2 technology
 
Estrellas fugaces
Estrellas fugacesEstrellas fugaces
Estrellas fugaces
 
2 dictionary cambridge english grammar check your vocabulary for ielts
2 dictionary cambridge english grammar   check your vocabulary for ielts2 dictionary cambridge english grammar   check your vocabulary for ielts
2 dictionary cambridge english grammar check your vocabulary for ielts
 
Red Unidos
Red UnidosRed Unidos
Red Unidos
 
HTML5 + PhoneGap & Windows Phone
HTML5 + PhoneGap & Windows PhoneHTML5 + PhoneGap & Windows Phone
HTML5 + PhoneGap & Windows Phone
 
La materia
La materiaLa materia
La materia
 
Genètica molecular
Genètica molecularGenètica molecular
Genètica molecular
 

Semelhante a Linux System

Semelhante a Linux System (20)

Solaris basics
Solaris basicsSolaris basics
Solaris basics
 
File Systems
File SystemsFile Systems
File Systems
 
Unix Security
Unix SecurityUnix Security
Unix Security
 
Basic orientation to Linux
Basic orientation to LinuxBasic orientation to Linux
Basic orientation to Linux
 
Mobile Hacking using Linux Drivers
Mobile Hacking using Linux DriversMobile Hacking using Linux Drivers
Mobile Hacking using Linux Drivers
 
Problem Reporting and Analysis Linux on System z -How to survive a Linux Crit...
Problem Reporting and Analysis Linux on System z -How to survive a Linux Crit...Problem Reporting and Analysis Linux on System z -How to survive a Linux Crit...
Problem Reporting and Analysis Linux on System z -How to survive a Linux Crit...
 
7 unixsecurity
7 unixsecurity7 unixsecurity
7 unixsecurity
 
Hpc4 linux advanced
Hpc4 linux advancedHpc4 linux advanced
Hpc4 linux advanced
 
Containers with systemd-nspawn
Containers with systemd-nspawnContainers with systemd-nspawn
Containers with systemd-nspawn
 
Linux
Linux Linux
Linux
 
Linux Internals - Part I
Linux Internals - Part ILinux Internals - Part I
Linux Internals - Part I
 
Linux Security
Linux SecurityLinux Security
Linux Security
 
Root file system for embedded systems
Root file system for embedded systemsRoot file system for embedded systems
Root file system for embedded systems
 
Using filesystem capabilities with rsync
Using filesystem capabilities with rsyncUsing filesystem capabilities with rsync
Using filesystem capabilities with rsync
 
Linux filesystemhierarchy
Linux filesystemhierarchyLinux filesystemhierarchy
Linux filesystemhierarchy
 
Lamp ppt
Lamp pptLamp ppt
Lamp ppt
 
Lamp ppt
Lamp pptLamp ppt
Lamp ppt
 
linux
linuxlinux
linux
 
Adhocr T-dose 2012
Adhocr T-dose 2012Adhocr T-dose 2012
Adhocr T-dose 2012
 
Security Walls in Linux Environment: Practice, Experience, and Results
Security Walls in Linux Environment: Practice, Experience, and ResultsSecurity Walls in Linux Environment: Practice, Experience, and Results
Security Walls in Linux Environment: Practice, Experience, and Results
 

Mais de SysPlay eLearning Academy for You (11)

Kernel Timing Management
Kernel Timing ManagementKernel Timing Management
Kernel Timing Management
 
Understanding the BBB
Understanding the BBBUnderstanding the BBB
Understanding the BBB
 
POSIX Threads
POSIX ThreadsPOSIX Threads
POSIX Threads
 
Linux DMA Engine
Linux DMA EngineLinux DMA Engine
Linux DMA Engine
 
Cache Management
Cache ManagementCache Management
Cache Management
 
Introduction to BeagleBone Black
Introduction to BeagleBone BlackIntroduction to BeagleBone Black
Introduction to BeagleBone Black
 
Introduction to BeagleBoard-xM
Introduction to BeagleBoard-xMIntroduction to BeagleBoard-xM
Introduction to BeagleBoard-xM
 
Platform Drivers
Platform DriversPlatform Drivers
Platform Drivers
 
Serial Drivers
Serial DriversSerial Drivers
Serial Drivers
 
SPI Drivers
SPI DriversSPI Drivers
SPI Drivers
 
I2C Drivers
I2C DriversI2C Drivers
I2C Drivers
 

Último

How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 

Último (20)

How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 

Linux System

  • 1. Introduction to Linux System © 2013 SysPlay eLearning Academy for You <http://sysplay.in> All Rights Reserved.
  • 2. What to Expect? W's of Linux System Linux Uses Basics Magic with Vim Editor Partitioning and Installing Linux System X86 Booting sequence © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 2 All Rights Reserved.
  • 3. W's of Linux System © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 3 All Rights Reserved.
  • 4. Topic What is Linux System? Why Linux System? What makes “Linux” as best Operating System? What are the places Linux is being used? © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 4 All Rights Reserved.
  • 5. Linux Usage Basics © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 5 All Rights Reserved.
  • 6. Topics Root & System Directories Shell Basics & the 'bash' Shell File Basics & related Commands User Basics & related Commands File Access Permissions System & Help Information Standard I/O, Redirection and Pipes © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 6 All Rights Reserved.
  • 7. / the Root of an inverted tree The top-most or super-parent directory The container of your computer Type: ls / © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 7 All Rights Reserved.
  • 8. System Directories /bin, /sbin - system binaries/applications /var - logs, mails /proc, /sys - “virtual” windows into the kernel /etc - configuration files /lib - shared system libraries /dev - device files /boot - Linux kernel and boot related binary files /opt - for third-party packages /root, /home - home directory for super user & other users /usr - user space related files and dirs (binaries, libraries, ...) /tmp - scratch pad /mnt - mount points © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 8 All Rights Reserved.
  • 9. Shell Basics What is a Shell? Various types of Shells Bourne Shell (sh) C Shell (csh) Korn Shell (ksh) Bourne Again Shell (bash) TENEX csh (tcsh) Z Shell (zsh) Busybox (busybox) – Embedded Systems © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 9 All Rights Reserved.
  • 10. Bourne Again SHell env - shell environment variables export [var_name] - export a shell variable HOME - path to user’s home directory PATH - executable search path PWD - present user directory PS1 - command prompt which - shows executable path history - command recall © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 10 All Rights Reserved.
  • 11. Bourne Again SHell ... alias - create shortcuts to commands file - shows the information about a file type - shows information about a command Scripts /etc/profile - System wide startup script ~/.bash_profile – User specific startup script ~/.bashrc – Shell specific startup script ~/.bash_logout – User specific shutdown script © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 11 All Rights Reserved.
  • 12. File Basics Every thing is viewed as a file in Linux A file under the / Seven Types Regular (-) Directory (d) Character Device (c) Block Device (b) Named Pipe (p) Socket (s) Symbolic Link (l) © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 12 All Rights Reserved.
  • 13. File related Shell Commands ls - list directory/file contents cat, less, head, tail - used to cd - change directory view text files vi, vim - editors pwd - print working directory touch - create and update files df - disk free grep - search in files du - disk usage find, locate - search for files cp - copy gzip, gunzip, bzip, bunzip - mv - move, rename compression rm – remove tar - archive mkdir - make directory sed, awk - file manipulation rmdir - remove directory © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 13 All Rights Reserved.
  • 14. User Basics All Accesses into a Linux System are through a User with a Password Super User – root Normal Users - <user_name> Files: /etc/passwd, /etc/shadow Users can be categorized into groups root, bin, sys, adm, … File: /etc/group © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 14 All Rights Reserved.
  • 15. User related Shell Commands useradd - create user userdel - delete user usermod - modify user su - <username> - start new shell as different user finger - user information lookup passwd - change or create user password who, w, user - to find out who is logged in © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 15 All Rights Reserved.
  • 16. Related Shell Commands chmod – Change file permissions chown – Change file owner chgrp – Change file group © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 17 All Rights Reserved.
  • 17. Few “Help”ful Shell Commands uname - print system information man <topic> - manual pages info <topic> - information pages © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 18 All Rights Reserved.
  • 18. The Complete Software System Applications OS Services Operating System Hardware “Kernel Space” “User Space” © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 19 All Rights Reserved.
  • 19. Partitioning and Installing Linux System © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 20 All Rights Reserved.
  • 20. Magic with VIM Editor © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 21 All Rights Reserved.
  • 21. VIM Key Sheet © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 22 All Rights Reserved.
  • 22. X86 Booting sequence © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 23 All Rights Reserved.
  • 23. X86 booting Flowchart © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 24 All Rights Reserved.
  • 24. What all have we learnt? Introduction to Linux System Linux Usage Basics Magic of VIM editor Linux System Overview Partitioning and Installing Linux System X86 Booting Sequence © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 25 All Rights Reserved.
  • 25. Any Queries? © 2013 SysPlay eLearning Academy for You <http://sysplay.in> 26 All Rights Reserved.