SlideShare a Scribd company logo
1 of 19
Download to read offline
ICP-1002: ICT Laboratory
Introduction to Linux      Lab 1 – Introduction Linux and UNIX File System




                                        ICT 1002 – Introduction to Linux

                                        Liam Kurmos
                                        Hashim Yaqub
ICP-1002: ICT Laboratory
Introduction to Linux         Lab 1b – Introduction And File System



                           Operating Systems

                  Kernel                     Shell
                                                                        User
                                                                        Application




                                      ●Microsoft DOS text only shell

                                      ●Windows 95 introduced Graphical Shell
                Device                (GUI)
                Drivers
                                      (Apple introduced GUIs much earlier)

                                      ...long before all this... there was UNIX
ICP-1002: ICT Laboratory
Introduction to Linux          Lab 1b – Introduction And File System



                           UNIX … since 1969
           ●Originally created to run on large main frame
           systems.
           ●Multi-user from the start
           ●Has forked into many many different
           implementations over the years.
           ●Linux is opensource UNIX
ICP-1002: ICT Laboratory
Introduction to Linux         Lab 1b – Introduction And File System



                       GNU / Linux – Open Source UNIX
           ●Open Source operating system.
           ●Linux is the Kernel. Developed by Linus Torvalds 1992
           ●Leading server operating system, and runs the 10
           fastest supercomputer
           ●Linux is open source, secure.
           ●Runs on the desktop too!
ICP-1002: ICT Laboratory
Introduction to Linux         Lab 1b – Introduction And File System



                       Log in to your Virtual Machine
           ●Find Putty TTY on the windows system
           ●Connect to your Virtual Machine 147.143.75.XX where
           XX is your unique machine.
           ●You have logged in as the root user. The superuser.
           First thing to do, change the password!
           ●Super user has power which can be dangerous. Create
           another user!
ICP-1002: ICT Laboratory
Introduction to Linux         Lab 1b – Introduction And File System



                       Change the root password... before
                       someone else does.

           ●Changing the password is easy. Just use the command:
                 passwd
           ●If in doubt you can always check what a command does
           with the man command (manual).
                 man passwd
ICP-1002: ICT Laboratory
Introduction to Linux         Lab 1b – Introduction And File System



                       Create a new user & change the
                       password

           ●useradd -m YourNewUsersName
           ●passwd YourNewUsersName


           ●Now type exit and log back in with your new user.
ICP-1002: ICT Laboratory
Introduction to Linux          Lab 1b – Introduction And File System



                           Heirarchical tree structures.


                                    Root Node                          Node



                                                                       Parent
                                                                       Node


                                                                       Child Node



                                                                       Leaf Node
ICP-1002: ICT Laboratory
Introduction to Linux            Lab 1b – Introduction And File System




                A filesystem is a heirarchical tree structure.


                                    Root
                             /      Directory


                 etc
                       etc          homedir



                                           eepa02


                             Documents          Pictures     Code


                                                           SomeJavaCode.java
ICP-1002: ICT Laboratory
Introduction to Linux           Lab 1b – Introduction And File System


            A path specifies a chain in the structure.

           /homedir/eepa02/Code/SomeJavaCode.java

                                                   •The first / represents the root dir.
                                                   •Then a slash after each dir.



                                 Root
                            /
                                 Directory

                 etc etc          homedir


                                       eepa02


                           Documents         Pictures      Code

                                                        SomeJavaCode.java
ICP-1002: ICT Laboratory
Introduction to Linux                Lab 1b – Introduction And File System


            Exercise: Create the following structure in
            your home dir. List the commands you used to
            make them.
                                                    YourHomeDir
    You will need the commands

    cd DirectoryName
    ls DirectoryName                              Ex 1-1
    mkdir DirectoryName
    pwd

    . is a special director that
    means the current directory                  Granny

    .. is a special directory that
    means the parent dir.
                                           Mum


                                     Daughter1      Daughter2     Daughter3
ICP-1002: ICT Laboratory
Introduction to Linux                 Lab 1b – Introduction And File System


            Exercise: Create the following structure in
            your home dir. List the commands you used to
            make them.
                                                     YourHomeDir


                                                     Animals
                           Reptiles
                                                                         Mammals
                                                 Birds
                    Snakes
                                                                                      Bats
                                            Eagles                  Falcons


                                                GoldenEagles                  Bears
ICP-1002: ICT Laboratory
Introduction to Linux             Lab 1c – Introduction And File System


            Exercise: Write down the absolute directory
            paths for the paths in green
                                                                  /


                                                           homedir


                                                         ee....

                                                    Animals
                               Reptiles
                                                                          Mammals
                                                 Birds
                              Snakes
                                                                                        Birds
                                           Eagles                     Falcons
                     Vipers
                                 Pythons
                                             GoldenEagles                       Birds

                                  RoyalPythons
ICP-1002: ICT Laboratory
Introduction to Linux             Lab 1c – Introduction And File System


            Exercise: Write down the absolute directory
            paths for the paths in green
                                                                  /


                                                           homedir


                                                         ee....

                                                    Animals
                               Reptiles
                                                                          Mammals
                                                 Birds
                              Snakes
                                                                                        Birds
                                           Eagles                     Falcons
                     Vipers
                                 Pythons
                                             GoldenEagles                       Birds

                                  RoyalPythons
ICP-1002: ICT Laboratory
Introduction to Linux                 Lab 1c – Introduction And File System


            Exercise: Write down the absolute directory
            paths for the paths in green
                                                                        /


                                                                 homedir


                                                               ee....

                                                          Animals
                                     Reptiles
                                                                                Mammals
                                                       Birds
                                    Snakes
                                                                                              Birds
                                                 Eagles                     Falcons
                           Vipers
                                       Pythons
                                                   GoldenEagles                       Birds

                                        RoyalPythons
ICP-1002: ICT Laboratory
Introduction to Linux               Lab 1c – Introduction And File System


  The relative path from Snakes to birds is ./../../Mammals/Birds, or
  equivalently ../../Mammals/Birds. The first dot just means 'this directory' so isn't
  strictly necessary but makes it clear were talking about a relative path.


                                                /
                                                                    Write down relative paths for the following:
                                         homedir                    1) Mammals to homedir
                                                                    2) Reptiles to Mammals
                                                                    3) GoldenEagles to RoyalPythons
                                      ee....

                                    Animals
              Reptiles
                                                        Mammals
                                 Birds
           Snakes
                           Eagles                   Falcons       Birds
    Vipers
                Pythons          GoldenEagles             Birds

                  RoyalPythons
ICP-1002: ICT Laboratory
Introduction to Linux               Lab 1c – Introduction And File System


  The copy command (cp) can be used to copy both files and directories, however
  as a safety measure when you copy directory you need to use the r – switch. So if
  you had the structure on the left. Typing:
   cp -r /homedir/eeXYZ/Jones/Granny /homedir/eeXYZ/Hughes
  would give the structure on the right. (on most unix systems switches are allowed
  at the end of the command, after the paths instead)
                 /                                 /
               homedir                                 homedir
               ee....                                  ee....
             Jones         Hughes                    Jones      Hughes


         Granny                                 Granny                          Granny
      Mum                                     Mum                             Mum
 Daughter1   Daughter2 Daughter3         Daughter1   Daughter2 Daughter3 Daughter1   Daughter2 Daughter3



                     If you were currently in the home directory eeXYZ, which you can always get to
                     by typing:
                       cd ~
                     The you could use relative paths and just type:
                       cp -r ./Jones/Granny ./Hughes
ICP-1002: ICT Laboratory
Introduction to Linux                   Lab 1c – Introduction And File System


  You can rename a directory with the move command mv. So if you were in the
  home directory and had the structure on the left (which we created ealier). Typing
  mv ./Animals ./African
  Would give the structure on the right.



                                                                                   eeXYZ
                               eeXYZ
                                                                                  African
                              Animals                            Reptiles
          Reptiles                                                                                 Mammals
                                               Mammals                         Birds
                           Birds                                Snakes
        Snakes                                                                                               Bats
                                                         Bats               Eagles             Falcons
                     Eagles                Falcons

                                                                               Golden Eagles        Bears
                           Golden Eagles        Bears
ICP-1002: ICT Laboratory
Introduction to Linux                  Lab 1c – Introduction And File System


  Create the following structure. You can use mv and cp to save time. Use relative
  paths.
                                           /
                                                     homedir
                                                     ee....

                                                                                               European
                                                                                                Asian
                                                                                   Reptiles
                                                                                                                Mammals
                                                                                               Birds
                       African                                                    Snakes
         Reptiles
                                      Mammals                                               Eagles            Falcons   Bats
                     Birds
       Snakes                                                                                 Golden Eagles       Bears
                Eagles              Falcons   Bats                  Asian
                                                     Reptiles
                                                                                  Mammals
                                                                 Birds
                    Golden Eagles       Bears    Snakes
                                                              Eagles            Falcons    Bats

                                                                Golden Eagles       Bears

More Related Content

What's hot

Rootkit&honeypot aalonso-dcu-dec09
Rootkit&honeypot aalonso-dcu-dec09Rootkit&honeypot aalonso-dcu-dec09
Rootkit&honeypot aalonso-dcu-dec09Angelill0
 
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...IBM India Smarter Computing
 
Using the IBM XIV Storage System in OpenStack Cloud Environments
Using the IBM XIV Storage System in OpenStack Cloud Environments Using the IBM XIV Storage System in OpenStack Cloud Environments
Using the IBM XIV Storage System in OpenStack Cloud Environments IBM India Smarter Computing
 
Ami device driver_services ver. 1.1
Ami device driver_services ver.  1.1Ami device driver_services ver.  1.1
Ami device driver_services ver. 1.1Sunil Sam
 
Visual Exploration of Large-Scale System Evolution
Visual Exploration of Large-Scale System EvolutionVisual Exploration of Large-Scale System Evolution
Visual Exploration of Large-Scale System EvolutionRichard Wettel
 
Red Hat System Administration
Red Hat System AdministrationRed Hat System Administration
Red Hat System AdministrationRafi Rahimov
 
How to installation wildfly 10.1.0 final
How to installation wildfly 10.1.0 finalHow to installation wildfly 10.1.0 final
How to installation wildfly 10.1.0 finalJaeock Shim
 
Shorten Device Boot Time for Automotive IVI and Navigation Systems
Shorten Device Boot Time for Automotive IVI and Navigation SystemsShorten Device Boot Time for Automotive IVI and Navigation Systems
Shorten Device Boot Time for Automotive IVI and Navigation SystemsNational Cheng Kung University
 

What's hot (17)

Oslib rm
Oslib rmOslib rm
Oslib rm
 
Android Optimization: Myth and Reality
Android Optimization: Myth and RealityAndroid Optimization: Myth and Reality
Android Optimization: Myth and Reality
 
Unix v6 Internals
Unix v6 InternalsUnix v6 Internals
Unix v6 Internals
 
Rootkit&honeypot aalonso-dcu-dec09
Rootkit&honeypot aalonso-dcu-dec09Rootkit&honeypot aalonso-dcu-dec09
Rootkit&honeypot aalonso-dcu-dec09
 
Android platform
Android platform Android platform
Android platform
 
Discover System Facilities inside Your Android Phone
Discover System Facilities inside Your Android Phone Discover System Facilities inside Your Android Phone
Discover System Facilities inside Your Android Phone
 
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...
 
Using the IBM XIV Storage System in OpenStack Cloud Environments
Using the IBM XIV Storage System in OpenStack Cloud Environments Using the IBM XIV Storage System in OpenStack Cloud Environments
Using the IBM XIV Storage System in OpenStack Cloud Environments
 
L4 Microkernel :: Design Overview
L4 Microkernel :: Design OverviewL4 Microkernel :: Design Overview
L4 Microkernel :: Design Overview
 
Android Virtualization: Opportunity and Organization
Android Virtualization: Opportunity and OrganizationAndroid Virtualization: Opportunity and Organization
Android Virtualization: Opportunity and Organization
 
Hints for L4 Microkernel
Hints for L4 MicrokernelHints for L4 Microkernel
Hints for L4 Microkernel
 
Ami device driver_services ver. 1.1
Ami device driver_services ver.  1.1Ami device driver_services ver.  1.1
Ami device driver_services ver. 1.1
 
Visual Exploration of Large-Scale System Evolution
Visual Exploration of Large-Scale System EvolutionVisual Exploration of Large-Scale System Evolution
Visual Exploration of Large-Scale System Evolution
 
Red Hat System Administration
Red Hat System AdministrationRed Hat System Administration
Red Hat System Administration
 
Walking around linux kernel
Walking around linux kernelWalking around linux kernel
Walking around linux kernel
 
How to installation wildfly 10.1.0 final
How to installation wildfly 10.1.0 finalHow to installation wildfly 10.1.0 final
How to installation wildfly 10.1.0 final
 
Shorten Device Boot Time for Automotive IVI and Navigation Systems
Shorten Device Boot Time for Automotive IVI and Navigation SystemsShorten Device Boot Time for Automotive IVI and Navigation Systems
Shorten Device Boot Time for Automotive IVI and Navigation Systems
 

Viewers also liked

Operating Systems 3
Operating Systems 3Operating Systems 3
Operating Systems 3hutchison
 
Operating Systems 1
Operating Systems 1Operating Systems 1
Operating Systems 1hutchison
 
Intro tounix
Intro tounixIntro tounix
Intro tounixdjprince
 
Unix Introduction
Unix IntroductionUnix Introduction
Unix IntroductionAnanthi
 
Linux architecture
Linux architectureLinux architecture
Linux architecturemcganesh
 
Linux ppt
Linux pptLinux ppt
Linux pptlincy21
 
An Introduction to Linux
An Introduction to LinuxAn Introduction to Linux
An Introduction to Linuxanandvaidya
 
Social Equity Ir 2.0 & Social Media Wmm
Social Equity   Ir 2.0 & Social Media   WmmSocial Equity   Ir 2.0 & Social Media   Wmm
Social Equity Ir 2.0 & Social Media WmmRonald Russo
 
Unix operating system
Unix operating systemUnix operating system
Unix operating systemABhay Panchal
 
Introduction to linux ppt
Introduction to linux pptIntroduction to linux ppt
Introduction to linux pptOmi Vichare
 
Linux.ppt
Linux.ppt Linux.ppt
Linux.ppt onu9
 

Viewers also liked (13)

Cis222 2
Cis222 2Cis222 2
Cis222 2
 
Operating Systems 3
Operating Systems 3Operating Systems 3
Operating Systems 3
 
22 levine
22 levine22 levine
22 levine
 
Operating Systems 1
Operating Systems 1Operating Systems 1
Operating Systems 1
 
Intro tounix
Intro tounixIntro tounix
Intro tounix
 
Unix Introduction
Unix IntroductionUnix Introduction
Unix Introduction
 
Linux architecture
Linux architectureLinux architecture
Linux architecture
 
Linux ppt
Linux pptLinux ppt
Linux ppt
 
An Introduction to Linux
An Introduction to LinuxAn Introduction to Linux
An Introduction to Linux
 
Social Equity Ir 2.0 & Social Media Wmm
Social Equity   Ir 2.0 & Social Media   WmmSocial Equity   Ir 2.0 & Social Media   Wmm
Social Equity Ir 2.0 & Social Media Wmm
 
Unix operating system
Unix operating systemUnix operating system
Unix operating system
 
Introduction to linux ppt
Introduction to linux pptIntroduction to linux ppt
Introduction to linux ppt
 
Linux.ppt
Linux.ppt Linux.ppt
Linux.ppt
 

Similar to Lab1

Group project linux helix
Group project linux helixGroup project linux helix
Group project linux helixJeff Carroll
 
Securing Your Linux System
Securing Your Linux SystemSecuring Your Linux System
Securing Your Linux SystemNovell
 
Online Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in HyderabadOnline Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in HyderabadRavikumar Nandigam
 
Enea Linux and LWRT FTF China 2012
Enea Linux and LWRT FTF China 2012Enea Linux and LWRT FTF China 2012
Enea Linux and LWRT FTF China 2012EneaSoftware
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to UnixSudharsan S
 
Docker introduction
Docker introductionDocker introduction
Docker introductionLayne Peng
 
Linux Operating System
Linux Operating SystemLinux Operating System
Linux Operating SystemKunalKewat1
 
What's LUM Got To Do with It: Deployment Considerations for Linux User Manage...
What's LUM Got To Do with It: Deployment Considerations for Linux User Manage...What's LUM Got To Do with It: Deployment Considerations for Linux User Manage...
What's LUM Got To Do with It: Deployment Considerations for Linux User Manage...Novell
 
Unix_commands_theory
Unix_commands_theoryUnix_commands_theory
Unix_commands_theoryNiti Patel
 
Linux operating system ppt
Linux operating system pptLinux operating system ppt
Linux operating system pptAchyut Sinha
 
linuxoperatingsystemppt-181008162908.pptx
linuxoperatingsystemppt-181008162908.pptxlinuxoperatingsystemppt-181008162908.pptx
linuxoperatingsystemppt-181008162908.pptxRyanSyahrul1
 
Reconstructive Software Archaeology
Reconstructive Software ArchaeologyReconstructive Software Archaeology
Reconstructive Software ArchaeologyDoctorWkt
 

Similar to Lab1 (20)

Group project linux helix
Group project linux helixGroup project linux helix
Group project linux helix
 
Securing Your Linux System
Securing Your Linux SystemSecuring Your Linux System
Securing Your Linux System
 
Linux basic
Linux basicLinux basic
Linux basic
 
Ceh v5 module 18 linux hacking
Ceh v5 module 18 linux hackingCeh v5 module 18 linux hacking
Ceh v5 module 18 linux hacking
 
Online Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in HyderabadOnline Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in Hyderabad
 
Enea Linux and LWRT FTF China 2012
Enea Linux and LWRT FTF China 2012Enea Linux and LWRT FTF China 2012
Enea Linux and LWRT FTF China 2012
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
 
Docker introduction
Docker introductionDocker introduction
Docker introduction
 
Linux Operating System
Linux Operating SystemLinux Operating System
Linux Operating System
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
 
What's LUM Got To Do with It: Deployment Considerations for Linux User Manage...
What's LUM Got To Do with It: Deployment Considerations for Linux User Manage...What's LUM Got To Do with It: Deployment Considerations for Linux User Manage...
What's LUM Got To Do with It: Deployment Considerations for Linux User Manage...
 
Unix_commands_theory
Unix_commands_theoryUnix_commands_theory
Unix_commands_theory
 
Introduction to UNIX
Introduction to UNIXIntroduction to UNIX
Introduction to UNIX
 
Linux fundamentals
Linux fundamentalsLinux fundamentals
Linux fundamentals
 
Intro to linux
Intro to linuxIntro to linux
Intro to linux
 
Linux operating system ppt
Linux operating system pptLinux operating system ppt
Linux operating system ppt
 
linuxoperatingsystemppt-181008162908.pptx
linuxoperatingsystemppt-181008162908.pptxlinuxoperatingsystemppt-181008162908.pptx
linuxoperatingsystemppt-181008162908.pptx
 
Linux introduction (eng)
Linux introduction (eng)Linux introduction (eng)
Linux introduction (eng)
 
Reconstructive Software Archaeology
Reconstructive Software ArchaeologyReconstructive Software Archaeology
Reconstructive Software Archaeology
 
linux.pdf
linux.pdflinux.pdf
linux.pdf
 

Recently uploaded

#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 

Recently uploaded (20)

#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 

Lab1

  • 1. ICP-1002: ICT Laboratory Introduction to Linux Lab 1 – Introduction Linux and UNIX File System ICT 1002 – Introduction to Linux Liam Kurmos Hashim Yaqub
  • 2. ICP-1002: ICT Laboratory Introduction to Linux Lab 1b – Introduction And File System Operating Systems Kernel Shell User Application ●Microsoft DOS text only shell ●Windows 95 introduced Graphical Shell Device (GUI) Drivers (Apple introduced GUIs much earlier) ...long before all this... there was UNIX
  • 3. ICP-1002: ICT Laboratory Introduction to Linux Lab 1b – Introduction And File System UNIX … since 1969 ●Originally created to run on large main frame systems. ●Multi-user from the start ●Has forked into many many different implementations over the years. ●Linux is opensource UNIX
  • 4. ICP-1002: ICT Laboratory Introduction to Linux Lab 1b – Introduction And File System GNU / Linux – Open Source UNIX ●Open Source operating system. ●Linux is the Kernel. Developed by Linus Torvalds 1992 ●Leading server operating system, and runs the 10 fastest supercomputer ●Linux is open source, secure. ●Runs on the desktop too!
  • 5. ICP-1002: ICT Laboratory Introduction to Linux Lab 1b – Introduction And File System Log in to your Virtual Machine ●Find Putty TTY on the windows system ●Connect to your Virtual Machine 147.143.75.XX where XX is your unique machine. ●You have logged in as the root user. The superuser. First thing to do, change the password! ●Super user has power which can be dangerous. Create another user!
  • 6. ICP-1002: ICT Laboratory Introduction to Linux Lab 1b – Introduction And File System Change the root password... before someone else does. ●Changing the password is easy. Just use the command: passwd ●If in doubt you can always check what a command does with the man command (manual). man passwd
  • 7. ICP-1002: ICT Laboratory Introduction to Linux Lab 1b – Introduction And File System Create a new user & change the password ●useradd -m YourNewUsersName ●passwd YourNewUsersName ●Now type exit and log back in with your new user.
  • 8. ICP-1002: ICT Laboratory Introduction to Linux Lab 1b – Introduction And File System Heirarchical tree structures. Root Node Node Parent Node Child Node Leaf Node
  • 9. ICP-1002: ICT Laboratory Introduction to Linux Lab 1b – Introduction And File System A filesystem is a heirarchical tree structure. Root / Directory etc etc homedir eepa02 Documents Pictures Code SomeJavaCode.java
  • 10. ICP-1002: ICT Laboratory Introduction to Linux Lab 1b – Introduction And File System A path specifies a chain in the structure. /homedir/eepa02/Code/SomeJavaCode.java •The first / represents the root dir. •Then a slash after each dir. Root / Directory etc etc homedir eepa02 Documents Pictures Code SomeJavaCode.java
  • 11. ICP-1002: ICT Laboratory Introduction to Linux Lab 1b – Introduction And File System Exercise: Create the following structure in your home dir. List the commands you used to make them. YourHomeDir You will need the commands cd DirectoryName ls DirectoryName Ex 1-1 mkdir DirectoryName pwd . is a special director that means the current directory Granny .. is a special directory that means the parent dir. Mum Daughter1 Daughter2 Daughter3
  • 12. ICP-1002: ICT Laboratory Introduction to Linux Lab 1b – Introduction And File System Exercise: Create the following structure in your home dir. List the commands you used to make them. YourHomeDir Animals Reptiles Mammals Birds Snakes Bats Eagles Falcons GoldenEagles Bears
  • 13. ICP-1002: ICT Laboratory Introduction to Linux Lab 1c – Introduction And File System Exercise: Write down the absolute directory paths for the paths in green / homedir ee.... Animals Reptiles Mammals Birds Snakes Birds Eagles Falcons Vipers Pythons GoldenEagles Birds RoyalPythons
  • 14. ICP-1002: ICT Laboratory Introduction to Linux Lab 1c – Introduction And File System Exercise: Write down the absolute directory paths for the paths in green / homedir ee.... Animals Reptiles Mammals Birds Snakes Birds Eagles Falcons Vipers Pythons GoldenEagles Birds RoyalPythons
  • 15. ICP-1002: ICT Laboratory Introduction to Linux Lab 1c – Introduction And File System Exercise: Write down the absolute directory paths for the paths in green / homedir ee.... Animals Reptiles Mammals Birds Snakes Birds Eagles Falcons Vipers Pythons GoldenEagles Birds RoyalPythons
  • 16. ICP-1002: ICT Laboratory Introduction to Linux Lab 1c – Introduction And File System The relative path from Snakes to birds is ./../../Mammals/Birds, or equivalently ../../Mammals/Birds. The first dot just means 'this directory' so isn't strictly necessary but makes it clear were talking about a relative path. / Write down relative paths for the following: homedir 1) Mammals to homedir 2) Reptiles to Mammals 3) GoldenEagles to RoyalPythons ee.... Animals Reptiles Mammals Birds Snakes Eagles Falcons Birds Vipers Pythons GoldenEagles Birds RoyalPythons
  • 17. ICP-1002: ICT Laboratory Introduction to Linux Lab 1c – Introduction And File System The copy command (cp) can be used to copy both files and directories, however as a safety measure when you copy directory you need to use the r – switch. So if you had the structure on the left. Typing: cp -r /homedir/eeXYZ/Jones/Granny /homedir/eeXYZ/Hughes would give the structure on the right. (on most unix systems switches are allowed at the end of the command, after the paths instead) / / homedir homedir ee.... ee.... Jones Hughes Jones Hughes Granny Granny Granny Mum Mum Mum Daughter1 Daughter2 Daughter3 Daughter1 Daughter2 Daughter3 Daughter1 Daughter2 Daughter3 If you were currently in the home directory eeXYZ, which you can always get to by typing: cd ~ The you could use relative paths and just type: cp -r ./Jones/Granny ./Hughes
  • 18. ICP-1002: ICT Laboratory Introduction to Linux Lab 1c – Introduction And File System You can rename a directory with the move command mv. So if you were in the home directory and had the structure on the left (which we created ealier). Typing mv ./Animals ./African Would give the structure on the right. eeXYZ eeXYZ African Animals Reptiles Reptiles Mammals Mammals Birds Birds Snakes Snakes Bats Bats Eagles Falcons Eagles Falcons Golden Eagles Bears Golden Eagles Bears
  • 19. ICP-1002: ICT Laboratory Introduction to Linux Lab 1c – Introduction And File System Create the following structure. You can use mv and cp to save time. Use relative paths. / homedir ee.... European Asian Reptiles Mammals Birds African Snakes Reptiles Mammals Eagles Falcons Bats Birds Snakes Golden Eagles Bears Eagles Falcons Bats Asian Reptiles Mammals Birds Golden Eagles Bears Snakes Eagles Falcons Bats Golden Eagles Bears