SlideShare une entreprise Scribd logo
1  sur  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.

Contenu connexe

Tendances (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
 

En vedette

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
 

En vedette (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
 

Similaire à Linux System

Similaire à 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
 

Plus 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
 

Dernier

Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
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
 
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
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
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
 
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
 
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
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
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
 

Dernier (20)

Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
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
 
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
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
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
 
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
 
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
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
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
 

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.