SlideShare une entreprise Scribd logo
1  sur  28
Linux:
             A Getting Started presentation


       by: Nap Ramirez
    email: napramirez@gmail.com
                                   
INTRODUCTION


    What is Linux?

    Linux is an operating system* created
    by Linus Torvalds, with the help of
    developers around the world.




     * An operating system is a special set of programs that
     manages the hardware and software resources of a
     computer.                      
INTRODUCTION


    Why Linux?
    ●   It's free!
    ●   It is Open Source Software.
    ●   It is reliable.

    ●   Perks include:
         ✔   no viruses
         ✔   no need to restart all the time
         ✔   no registration/activation hassles
         ✔   unlimited support
         ✔   a large pool of applications for your preference

                                   
GETTING USED TO...


    The File System
    In Linux, files and directories are
    organized in a hierarchical tree-like
    structure.




                          
GETTING USED TO...


    The File System          (continued)




                          
GETTING USED TO...


    The File System                      (continued)


    ● File system entries can be files or
    directories
          e.g. file: hello.txt
               directory: src/
    ●   Entries are case-sensitive
          e.g. 'hello.txt' is NOT equal to 'HELLO.TXT'
    ●   Hidden entries start with a dot '.'
          e.g. .bash_profile is a hidden file



                                  
GETTING USED TO...


    The File System              (continued)


    ● In Linux, files and directories are bound
    to ownership and permissions
    ●   File system entries are owned by users
    ●   Users may have the following permissions:
         ✔   read
         ✔   write
         ✔   execute/entry




                              
GETTING USED TO...


    The File System            (continued)




     NOTE: The displayed
     Properties Dialog
     may vary in
     different window
     themes.                
INTRODUCTION TO...


    The Shell
    ● The shell is an environment and a
    means of communication with the
    operating system's kernel
    ●   Either a GUI or CLI
    ● Usually pertains
    to the CLI



                           
GETTING TO KNOW...


    The CLI
    The command line interface (CLI) is a
    program that takes text input from the
    user that may, in turn, be used as
    directives to the operating system.




                          
LEARNING...


    File System Navigation
    ●   ls – list contents of directory
        ✔   -l list in detail
        ✔   -a list all, including hidden files
        ✔   -F list, use indicators (dir: /, executable: *, link: @)

    ●   cd – change directory
        ✔   ~ (user's home directory)
        ✔   - (previously visited directory)
        ✔   . (current directory)
        ✔   .. (parent directory)
        ✔   / (root directory)

    ●   pwd – print working directory
                                    
LEARNING...


    Creating Entries
    ● touch – mainly used to change
    timestamps of entries, it can be used
    to create files if specified files do
    not exist
    ●   mkdir – create directory
        ✔   -p create parent directories, if non-existent




                                    
LEARNING...


    Copying/Moving Entries
    ●   cp – copy entry
        ✔   -r copy recursively


    ●   mv – move entry




                                   
LEARNING...


    Deleting Entries
    ●   rm – delete file
        ✔   -r delete recursively


    ●   rmdir – delete empty directory




                                     
LEARNING...


    Output Pagers
    Pagers suppress the output of a
    command. This is useful if the output
    doesn't fit the screen. Pagers can be
    used by piping* the output of commands
    into them.

    ●   more
    ●   less
    * Piping is the passing of output of one command into another,
    it is denoted by the pipe character |.
                                   
LEARNING...


    Output Commands
    These commands usually display output
    too big to fit in the screen. They are
    commonly used with pagers.

    ●   echo – displays the specified text
    ● cat – displays the content of the
    specified file
    ● tail – displays the last part of a

    file
    ● head – displays the first part of a


 
    file                 
LEARNING...


    Editing Text Files
    Many text editors exist in every
    installation. The most popular are:

    ●   vi, vim
    ●   emacs
    ●   joe
    ●   pico, nano



                        
LEARNING...


    Setting Permissions
    ●   chmod <mode> <entry> [-r]
        ✔   Recall that permissions are set for the
                  owner/user (u), group (g), others (o)
        ✔   <mode> is the permissions set for any of
                  the owner/user, group, others
              e.g    `chmod ug+rw .bash_profile`
                     `chmod o-rwx .bash_profile`

    ●   Use `ls -l` to verify the changes



                                     
LEARNING...


    Finding Files
    ●   which – used to find executables
    ●   locate – find indexed entries
    ●   find – find files in the file system
           `find <path> -name <file>`




                           
LEARNING...


    Archiving Files
    ●   gzip/gunzip
           `gzip <file>`, `gunzip <file>.gz`
    ●   tar
           `tar cf <file>.tar <path>`
           `tar xf <file>.tar`
    ●   zip/unzip
           `zip [-r] <file> <path>`
           `unzip <file>`


                           
LEARNING...


    Output Redirection
    While piping allows control of output into
    another program's input, redirection
    forwards the output to a file.

    ●   > - output is saved into a file
           e.g. `echo “hello” > hello.txt`
                (hello.txt contains “hello”)
    ●   >> - output is appended into a file
           e.g. `echo “hello again” >> hello.txt`
                (“hello again” is added)
                           
LEARNING...


    Process Control
    ● & - appending '&' to a command will
    bring the process to the background and
    returns the user to the prompt
    ●   ps (process snapshot) – list processes
    ●   fg (foreground)
    ●   bg (background)
    ●   kill
    ●   top

                           
WHEN IN DOUBT...


    Help
    ●   man – manual pages about commands
           e.g. `man <command>`
    ●   apropos – search the man page names
           e.g. `apropos <command>`
    ●   info – information on commands
           e.g. `info <command>`
    ● -h or --help – used as arguments to a
    command
         e.g. `ls --help`

                           
MORE LEARNING...


    Extras
    ●   sudo – execute as superuser
          e.g. `sudo chown nap:nap hello.txt`
    ●   df – display disk space usage
          ● -h – human-readable
    ●   du – display file space usage
          ● -sh – human-readable summary




                           
MORE LEARNING...


    Extras
    ●   env – list all environment variables
    ●   export – set variable in the environment
          e.g. `export BASH_HOME=~`
    ●   set/unset – pick environment variables
          ● `set BASH_HOME=”asdf”`
          ● `unset BASH_HOME`




                           
Let's put it to the test!


    Exercise
    Identify the ff commands:
    unzip, strip, touch, finger,    grep, mount, fsck,
    more, yes, fsck, fsck, fsck,    umount, sleep




                                 
THE END...


    Thanks!
    Please mail me your feedback!




    ----------------------------
    Nap Ramirez
    napramirez@gmail.com
                        
This work is licensed under the Creative Commons
    Attribution 3.0 License. To view a copy of this
    license, visit
    http://creativecommons.org/licenses/by/3.0/ or send a
    letter to Creative Commons, 171 Second Street, Suite
    300, San Francisco, California, 94105, USA.
                                

Contenu connexe

Tendances

Introduction to Shell script
Introduction to Shell scriptIntroduction to Shell script
Introduction to Shell scriptBhavesh Padharia
 
Useful linux-commands
Useful linux-commandsUseful linux-commands
Useful linux-commandsHimani Singh
 
Part 6 of "Introduction to linux for bioinformatics": Productivity tips
Part 6 of "Introduction to linux for bioinformatics": Productivity tipsPart 6 of "Introduction to linux for bioinformatics": Productivity tips
Part 6 of "Introduction to linux for bioinformatics": Productivity tipsJoachim Jacob
 
Unix Command Line Productivity Tips
Unix Command Line Productivity TipsUnix Command Line Productivity Tips
Unix Command Line Productivity TipsKeith Bennett
 
Basic command ppt
Basic command pptBasic command ppt
Basic command pptRohit Kumar
 
Text mining on the command line - Introduction to linux for bioinformatics
Text mining on the command line - Introduction to linux for bioinformaticsText mining on the command line - Introduction to linux for bioinformatics
Text mining on the command line - Introduction to linux for bioinformaticsBITS
 
Module 02 Using Linux Command Shell
Module 02 Using Linux Command ShellModule 02 Using Linux Command Shell
Module 02 Using Linux Command ShellTushar B Kute
 
Productivity tips - Introduction to linux for bioinformatics
Productivity tips - Introduction to linux for bioinformaticsProductivity tips - Introduction to linux for bioinformatics
Productivity tips - Introduction to linux for bioinformaticsBITS
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic CommandsHanan Nmr
 
Part 4 of 'Introduction to Linux for bioinformatics': Managing data
Part 4 of 'Introduction to Linux for bioinformatics': Managing data Part 4 of 'Introduction to Linux for bioinformatics': Managing data
Part 4 of 'Introduction to Linux for bioinformatics': Managing data Joachim Jacob
 
Basic commands
Basic commandsBasic commands
Basic commandsambilivava
 
Linux command for beginners
Linux command for beginnersLinux command for beginners
Linux command for beginnersSuKyeong Jang
 
Basic linux commands for bioinformatics
Basic linux commands for bioinformaticsBasic linux commands for bioinformatics
Basic linux commands for bioinformaticsBonnie Ng
 
Unix Shell Scripting
Unix Shell ScriptingUnix Shell Scripting
Unix Shell ScriptingMustafa Qasim
 

Tendances (20)

Introduction to Shell script
Introduction to Shell scriptIntroduction to Shell script
Introduction to Shell script
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
Useful linux-commands
Useful linux-commandsUseful linux-commands
Useful linux-commands
 
Part 6 of "Introduction to linux for bioinformatics": Productivity tips
Part 6 of "Introduction to linux for bioinformatics": Productivity tipsPart 6 of "Introduction to linux for bioinformatics": Productivity tips
Part 6 of "Introduction to linux for bioinformatics": Productivity tips
 
Unix Command Line Productivity Tips
Unix Command Line Productivity TipsUnix Command Line Productivity Tips
Unix Command Line Productivity Tips
 
Basic command ppt
Basic command pptBasic command ppt
Basic command ppt
 
Text mining on the command line - Introduction to linux for bioinformatics
Text mining on the command line - Introduction to linux for bioinformaticsText mining on the command line - Introduction to linux for bioinformatics
Text mining on the command line - Introduction to linux for bioinformatics
 
Linux
LinuxLinux
Linux
 
Module 02 Using Linux Command Shell
Module 02 Using Linux Command ShellModule 02 Using Linux Command Shell
Module 02 Using Linux Command Shell
 
Productivity tips - Introduction to linux for bioinformatics
Productivity tips - Introduction to linux for bioinformaticsProductivity tips - Introduction to linux for bioinformatics
Productivity tips - Introduction to linux for bioinformatics
 
BASIC COMMANDS OF LINUX
BASIC COMMANDS OF LINUXBASIC COMMANDS OF LINUX
BASIC COMMANDS OF LINUX
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic Commands
 
Basic 50 linus command
Basic 50 linus commandBasic 50 linus command
Basic 50 linus command
 
Part 4 of 'Introduction to Linux for bioinformatics': Managing data
Part 4 of 'Introduction to Linux for bioinformatics': Managing data Part 4 of 'Introduction to Linux for bioinformatics': Managing data
Part 4 of 'Introduction to Linux for bioinformatics': Managing data
 
Basic commands
Basic commandsBasic commands
Basic commands
 
Linux command for beginners
Linux command for beginnersLinux command for beginners
Linux command for beginners
 
Basic linux commands for bioinformatics
Basic linux commands for bioinformaticsBasic linux commands for bioinformatics
Basic linux commands for bioinformatics
 
Basics of Linux
Basics of LinuxBasics of Linux
Basics of Linux
 
Unix Shell Scripting
Unix Shell ScriptingUnix Shell Scripting
Unix Shell Scripting
 
Vi Editor
Vi EditorVi Editor
Vi Editor
 

En vedette

Linux Performance Profiling and Monitoring
Linux Performance Profiling and MonitoringLinux Performance Profiling and Monitoring
Linux Performance Profiling and MonitoringGeorg Schönberger
 
Linux Performance Analysis: New Tools and Old Secrets
Linux Performance Analysis: New Tools and Old SecretsLinux Performance Analysis: New Tools and Old Secrets
Linux Performance Analysis: New Tools and Old SecretsBrendan Gregg
 
Linux Systems Performance 2016
Linux Systems Performance 2016Linux Systems Performance 2016
Linux Systems Performance 2016Brendan Gregg
 
Broken Linux Performance Tools 2016
Broken Linux Performance Tools 2016Broken Linux Performance Tools 2016
Broken Linux Performance Tools 2016Brendan Gregg
 
BPF: Tracing and more
BPF: Tracing and moreBPF: Tracing and more
BPF: Tracing and moreBrendan Gregg
 
Velocity 2015 linux perf tools
Velocity 2015 linux perf toolsVelocity 2015 linux perf tools
Velocity 2015 linux perf toolsBrendan Gregg
 
Linux Profiling at Netflix
Linux Profiling at NetflixLinux Profiling at Netflix
Linux Profiling at NetflixBrendan Gregg
 

En vedette (7)

Linux Performance Profiling and Monitoring
Linux Performance Profiling and MonitoringLinux Performance Profiling and Monitoring
Linux Performance Profiling and Monitoring
 
Linux Performance Analysis: New Tools and Old Secrets
Linux Performance Analysis: New Tools and Old SecretsLinux Performance Analysis: New Tools and Old Secrets
Linux Performance Analysis: New Tools and Old Secrets
 
Linux Systems Performance 2016
Linux Systems Performance 2016Linux Systems Performance 2016
Linux Systems Performance 2016
 
Broken Linux Performance Tools 2016
Broken Linux Performance Tools 2016Broken Linux Performance Tools 2016
Broken Linux Performance Tools 2016
 
BPF: Tracing and more
BPF: Tracing and moreBPF: Tracing and more
BPF: Tracing and more
 
Velocity 2015 linux perf tools
Velocity 2015 linux perf toolsVelocity 2015 linux perf tools
Velocity 2015 linux perf tools
 
Linux Profiling at Netflix
Linux Profiling at NetflixLinux Profiling at Netflix
Linux Profiling at Netflix
 

Similaire à Linux: A Getting Started Presentation

Similaire à Linux: A Getting Started Presentation (20)

Linux
LinuxLinux
Linux
 
Linux Internals - Part I
Linux Internals - Part ILinux Internals - Part I
Linux Internals - Part I
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
An Introduction to Linux
An Introduction to LinuxAn Introduction to Linux
An Introduction to Linux
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unix
 
Linux administration training
Linux administration trainingLinux administration training
Linux administration training
 
linux cmds.pptx
linux cmds.pptxlinux cmds.pptx
linux cmds.pptx
 
Tips and Tricks for Increased Development Efficiency
Tips and Tricks for Increased Development EfficiencyTips and Tricks for Increased Development Efficiency
Tips and Tricks for Increased Development Efficiency
 
Module 3 Using Linux Softwares.
Module 3 Using Linux Softwares.Module 3 Using Linux Softwares.
Module 3 Using Linux Softwares.
 
Introduction to Linux
Introduction to LinuxIntroduction to Linux
Introduction to Linux
 
Linux Directory Structure
Linux Directory StructureLinux Directory Structure
Linux Directory Structure
 
Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01
 
Shell_Scripting.ppt
Shell_Scripting.pptShell_Scripting.ppt
Shell_Scripting.ppt
 
Linux week 2
Linux week 2Linux week 2
Linux week 2
 
Linux
LinuxLinux
Linux
 
Unix Basics 04sp
Unix Basics 04spUnix Basics 04sp
Unix Basics 04sp
 
Tutorial 2
Tutorial 2Tutorial 2
Tutorial 2
 
beginner.en.print
beginner.en.printbeginner.en.print
beginner.en.print
 
beginner.en.print
beginner.en.printbeginner.en.print
beginner.en.print
 
beginner.en.print
beginner.en.printbeginner.en.print
beginner.en.print
 

Dernier

Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditSkynet Technologies
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
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
 
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
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
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
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
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
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
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
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 

Dernier (20)

Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance Audit
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
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
 
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
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
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
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
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
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
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
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 

Linux: A Getting Started Presentation

  • 1. Linux: A Getting Started presentation by: Nap Ramirez email: napramirez@gmail.com    
  • 2. INTRODUCTION What is Linux? Linux is an operating system* created by Linus Torvalds, with the help of developers around the world. * An operating system is a special set of programs that manages the hardware and software resources of a   computer.  
  • 3. INTRODUCTION Why Linux? ● It's free! ● It is Open Source Software. ● It is reliable. ● Perks include: ✔ no viruses ✔ no need to restart all the time ✔ no registration/activation hassles ✔ unlimited support ✔ a large pool of applications for your preference    
  • 4. GETTING USED TO... The File System In Linux, files and directories are organized in a hierarchical tree-like structure.    
  • 5. GETTING USED TO... The File System (continued)    
  • 6. GETTING USED TO... The File System (continued) ● File system entries can be files or directories e.g. file: hello.txt directory: src/ ● Entries are case-sensitive e.g. 'hello.txt' is NOT equal to 'HELLO.TXT' ● Hidden entries start with a dot '.' e.g. .bash_profile is a hidden file    
  • 7. GETTING USED TO... The File System (continued) ● In Linux, files and directories are bound to ownership and permissions ● File system entries are owned by users ● Users may have the following permissions: ✔ read ✔ write ✔ execute/entry    
  • 8. GETTING USED TO... The File System (continued) NOTE: The displayed Properties Dialog may vary in different window   themes.  
  • 9. INTRODUCTION TO... The Shell ● The shell is an environment and a means of communication with the operating system's kernel ● Either a GUI or CLI ● Usually pertains to the CLI    
  • 10. GETTING TO KNOW... The CLI The command line interface (CLI) is a program that takes text input from the user that may, in turn, be used as directives to the operating system.    
  • 11. LEARNING... File System Navigation ● ls – list contents of directory ✔ -l list in detail ✔ -a list all, including hidden files ✔ -F list, use indicators (dir: /, executable: *, link: @) ● cd – change directory ✔ ~ (user's home directory) ✔ - (previously visited directory) ✔ . (current directory) ✔ .. (parent directory) ✔ / (root directory) ● pwd – print working directory    
  • 12. LEARNING... Creating Entries ● touch – mainly used to change timestamps of entries, it can be used to create files if specified files do not exist ● mkdir – create directory ✔ -p create parent directories, if non-existent    
  • 13. LEARNING... Copying/Moving Entries ● cp – copy entry ✔ -r copy recursively ● mv – move entry    
  • 14. LEARNING... Deleting Entries ● rm – delete file ✔ -r delete recursively ● rmdir – delete empty directory    
  • 15. LEARNING... Output Pagers Pagers suppress the output of a command. This is useful if the output doesn't fit the screen. Pagers can be used by piping* the output of commands into them. ● more ● less * Piping is the passing of output of one command into another, it is denoted by the pipe character |.    
  • 16. LEARNING... Output Commands These commands usually display output too big to fit in the screen. They are commonly used with pagers. ● echo – displays the specified text ● cat – displays the content of the specified file ● tail – displays the last part of a file ● head – displays the first part of a   file  
  • 17. LEARNING... Editing Text Files Many text editors exist in every installation. The most popular are: ● vi, vim ● emacs ● joe ● pico, nano    
  • 18. LEARNING... Setting Permissions ● chmod <mode> <entry> [-r] ✔ Recall that permissions are set for the owner/user (u), group (g), others (o) ✔ <mode> is the permissions set for any of the owner/user, group, others e.g `chmod ug+rw .bash_profile` `chmod o-rwx .bash_profile` ● Use `ls -l` to verify the changes    
  • 19. LEARNING... Finding Files ● which – used to find executables ● locate – find indexed entries ● find – find files in the file system `find <path> -name <file>`    
  • 20. LEARNING... Archiving Files ● gzip/gunzip `gzip <file>`, `gunzip <file>.gz` ● tar `tar cf <file>.tar <path>` `tar xf <file>.tar` ● zip/unzip `zip [-r] <file> <path>` `unzip <file>`    
  • 21. LEARNING... Output Redirection While piping allows control of output into another program's input, redirection forwards the output to a file. ● > - output is saved into a file e.g. `echo “hello” > hello.txt` (hello.txt contains “hello”) ● >> - output is appended into a file e.g. `echo “hello again” >> hello.txt` (“hello again” is added)    
  • 22. LEARNING... Process Control ● & - appending '&' to a command will bring the process to the background and returns the user to the prompt ● ps (process snapshot) – list processes ● fg (foreground) ● bg (background) ● kill ● top    
  • 23. WHEN IN DOUBT... Help ● man – manual pages about commands e.g. `man <command>` ● apropos – search the man page names e.g. `apropos <command>` ● info – information on commands e.g. `info <command>` ● -h or --help – used as arguments to a command e.g. `ls --help`    
  • 24. MORE LEARNING... Extras ● sudo – execute as superuser e.g. `sudo chown nap:nap hello.txt` ● df – display disk space usage ● -h – human-readable ● du – display file space usage ● -sh – human-readable summary    
  • 25. MORE LEARNING... Extras ● env – list all environment variables ● export – set variable in the environment e.g. `export BASH_HOME=~` ● set/unset – pick environment variables ● `set BASH_HOME=”asdf”` ● `unset BASH_HOME`    
  • 26. Let's put it to the test! Exercise Identify the ff commands: unzip, strip, touch, finger, grep, mount, fsck, more, yes, fsck, fsck, fsck, umount, sleep    
  • 27. THE END... Thanks! Please mail me your feedback! ---------------------------- Nap Ramirez napramirez@gmail.com    
  • 28. This work is licensed under the Creative Commons Attribution 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.