SlideShare a Scribd company logo
1 of 20
Download to read offline
Linux for Beginners
By:
L.Gobinath
Graduate Teaching Assistant
University of Western Ontario
Motivation
Motivation
History
● Unix Kernel - 1970 in Bell Labs
○ Somewhat open source
● Linux Kernel - 1991 by Linus Torvalds
○ Open source
● GNU - GNU’s Not Unix - The actual operating system
○ Open source
Why GNU/Linux
● Popular Linux Distributions for servers:
○ Ubuntu
○ Debian
○ CentOS
○ Gentoo
○ RedHat
● Why Linux not Windows or ….
○ Security
○ Modulus
○ Stable
○ Free
○ ...
Shell & Bash
● Shell - Part of Unix but available in most Linux distributions
● Bash - A GNU alternative for Shell
Terminal
● A command line tool to interact with Bash
● Example:
○ Gnome Terminal
○ Tilix
○ Terminator
○ Windows Command Prompt*
○ Powershell*
● How to open:
○ Linux - Ctrl + Alt + T
○ Mac - Applications → Utilities → Terminal
○ Windows - Open Command Prompt
Connect to server
● Linux & Mac:
○ ssh -p 22 admin@xxxx.eng.uwo.ca
○ Here xxxx is the server name allocated for your group (Example: foo for Group 1)
○ When prompt, enter the password given by TAs (Meet TAs in person to get the password)
● Windows:
○ Configure Putty
○ If Putty is unable to connect to the server, disable Antivirus/Firewall and try again
What's next?
● Summary of Linux 101 tutorial which is shared on OWL
○ SE 4455B 001 FW17 Resources /Web/00. Linux 101
● Let’s get our hand dirty...
Basic Commands
● Check your sudo permission:
○ sudo -l
● Print Hello World!:
○ echo "Hello world!"
● Terminal Shortcuts:
○ ↑ - Visit the last used commands
○ Ctrl + R - Search in bash history
○ Ctrl + L or clear - Clear the terminal screen
○ Ctrl + U - Delete the current line
○ Ctrl + A - Go to the start of current line
○ Ctrl + C - Terminate running program
○ Ctrl + D or exit - Exit from a command line program
○ Ctrl + Shift + C - Copy to clipboard
○ Ctrl + Shift + V - Paste from clipboard
○ Tab - Auto complete
GNU/Linux
commands are
case sensitive
Paths and Navigation
● Top most parent directory is root
○ /
● User directory is home:
○ /home/<username>
● Print working directory:
○ pwd
● List files:
○ ls
● Change directory:
○ cd <dir-path>
● Path shortcuts: Home: ~ Current directory: ./ Parent directory: ../
Files
● Everything is a file including files, folders, keyboards, monitors
● Extensions makes no difference
○ Linux reads the file and decides on type
○ Use file <file-name> command to check the file
● Create a new empty file
○ touch <file-name>
● Create a new directory
○ mkdir <dir-name>
● Create a directory tree
○ mkdir -p linuxtutorialwork/foo/bar
● Path containing space must be escaped
○ mkdir 'hello world'
○ cd hello world
Better to avoid
spaces when
naming files
Files...
● Remove an empty directory
○ rmdir linuxtutorialwork/foo/bar
● Copy files
○ cp <source> <destination>
● Move files
○ mv <source> <destination>
● Write to a file
○ echo 'Hello World!' > hello.txt
● Append to a file
○ echo 'Hello World!' > hello.txt
● Print a file
○ cat hello.txt
● Remove file and directories with files
○ rm
Ask for Help
● List available parameters and what they can do with --help
○ ls --help
● Check the manual of a command
○ Man ls
● Search for a keyword in manuals
○ man -k create
● A world without Google is hard to imagine
Wildcards
● Any character any number of times: *
○ ls foo*
● Any character exactly once: ?
○ ls f?
● List of characters: [abc] or [a-z]
○ ls [ab]*.txt
NEVER EVER RUN:
sudo rm -rf /*
Installing Softwares
Installing Softwares
● Tons of Linux Distributions are out there
● They may or may not have similar ways to install software
● Let’s install tree
○ Fedora: yum install tree -y
○ Debian: sudo apt install tree
○ Ubuntu: sudo apt install tree
○ Arch: sudo pacman -S tree
● Ubuntu is based on Debian but it has its own softwares
○ Not all applications available for Ubuntu are available for Debian
● When you search for commands, use: how to install … on Debian
Edit Text Files using Nano
Edit Text Files using Nano
Thank You

More Related Content

What's hot

DRAFT Internet and world wide web protocol ; pu t ty ; telnet ; wireshark
DRAFT Internet and world wide web protocol ; pu t ty ; telnet ; wiresharkDRAFT Internet and world wide web protocol ; pu t ty ; telnet ; wireshark
DRAFT Internet and world wide web protocol ; pu t ty ; telnet ; wiresharkmeazza_15
 
Useful linux-commands
Useful linux-commandsUseful linux-commands
Useful linux-commandsHimani Singh
 
First Responder Course - Session 9 - Volatile Evidence Collection [2004]
First Responder Course - Session 9 - Volatile Evidence Collection [2004]First Responder Course - Session 9 - Volatile Evidence Collection [2004]
First Responder Course - Session 9 - Volatile Evidence Collection [2004]Phil Huggins FBCS CITP
 
Linux administration training
Linux administration trainingLinux administration training
Linux administration trainingiman darabi
 
Mp26 : Tachyon, sloppiness is bliss
Mp26 : Tachyon, sloppiness is blissMp26 : Tachyon, sloppiness is bliss
Mp26 : Tachyon, sloppiness is blissMontreal Python
 
Operating Systems 1
Operating Systems 1Operating Systems 1
Operating Systems 1hutchison
 
Libssh2 at FSCONS 2009
Libssh2 at FSCONS 2009Libssh2 at FSCONS 2009
Libssh2 at FSCONS 2009FSCONS
 
Duplicity
DuplicityDuplicity
Duplicitymig5
 
Introduction to Linux, Pico, G++
Introduction to Linux, Pico, G++Introduction to Linux, Pico, G++
Introduction to Linux, Pico, G++Michael Gordon
 
Basic linux bash
Basic linux bashBasic linux bash
Basic linux bash皓鈞 張
 
Accumulo Summit 2015: Accumulo In-Depth: Building Bulk Ingest [Sponsored]
Accumulo Summit 2015: Accumulo In-Depth: Building Bulk Ingest [Sponsored]Accumulo Summit 2015: Accumulo In-Depth: Building Bulk Ingest [Sponsored]
Accumulo Summit 2015: Accumulo In-Depth: Building Bulk Ingest [Sponsored]Accumulo Summit
 
5. configuring multiple switch with files
5. configuring multiple switch with files5. configuring multiple switch with files
5. configuring multiple switch with filesVishnu Vardhan
 
Linux Tor Browser kurulum
Linux Tor Browser kurulumLinux Tor Browser kurulum
Linux Tor Browser kurulumreso95
 
Old school hacking : Exploiting UNIX Wildcards
Old school hacking : Exploiting UNIX WildcardsOld school hacking : Exploiting UNIX Wildcards
Old school hacking : Exploiting UNIX WildcardsUNIDEES Algérie
 

What's hot (20)

Unix Ramblings
Unix RamblingsUnix Ramblings
Unix Ramblings
 
Unix_basics
Unix_basicsUnix_basics
Unix_basics
 
DRAFT Internet and world wide web protocol ; pu t ty ; telnet ; wireshark
DRAFT Internet and world wide web protocol ; pu t ty ; telnet ; wiresharkDRAFT Internet and world wide web protocol ; pu t ty ; telnet ; wireshark
DRAFT Internet and world wide web protocol ; pu t ty ; telnet ; wireshark
 
Useful linux-commands
Useful linux-commandsUseful linux-commands
Useful linux-commands
 
First Responder Course - Session 9 - Volatile Evidence Collection [2004]
First Responder Course - Session 9 - Volatile Evidence Collection [2004]First Responder Course - Session 9 - Volatile Evidence Collection [2004]
First Responder Course - Session 9 - Volatile Evidence Collection [2004]
 
Linux 101
Linux 101Linux 101
Linux 101
 
Linux administration training
Linux administration trainingLinux administration training
Linux administration training
 
Mp26 : Tachyon, sloppiness is bliss
Mp26 : Tachyon, sloppiness is blissMp26 : Tachyon, sloppiness is bliss
Mp26 : Tachyon, sloppiness is bliss
 
Operating Systems 1
Operating Systems 1Operating Systems 1
Operating Systems 1
 
DOS Command
DOS CommandDOS Command
DOS Command
 
Libssh2 at FSCONS 2009
Libssh2 at FSCONS 2009Libssh2 at FSCONS 2009
Libssh2 at FSCONS 2009
 
Duplicity
DuplicityDuplicity
Duplicity
 
Introduction to Linux, Pico, G++
Introduction to Linux, Pico, G++Introduction to Linux, Pico, G++
Introduction to Linux, Pico, G++
 
Basic linux bash
Basic linux bashBasic linux bash
Basic linux bash
 
Zabi
ZabiZabi
Zabi
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Accumulo Summit 2015: Accumulo In-Depth: Building Bulk Ingest [Sponsored]
Accumulo Summit 2015: Accumulo In-Depth: Building Bulk Ingest [Sponsored]Accumulo Summit 2015: Accumulo In-Depth: Building Bulk Ingest [Sponsored]
Accumulo Summit 2015: Accumulo In-Depth: Building Bulk Ingest [Sponsored]
 
5. configuring multiple switch with files
5. configuring multiple switch with files5. configuring multiple switch with files
5. configuring multiple switch with files
 
Linux Tor Browser kurulum
Linux Tor Browser kurulumLinux Tor Browser kurulum
Linux Tor Browser kurulum
 
Old school hacking : Exploiting UNIX Wildcards
Old school hacking : Exploiting UNIX WildcardsOld school hacking : Exploiting UNIX Wildcards
Old school hacking : Exploiting UNIX Wildcards
 

Similar to Linux for Beginners

Linux tech talk
Linux tech talkLinux tech talk
Linux tech talkPrince Raj
 
(Practical) linux 101
(Practical) linux 101(Practical) linux 101
(Practical) linux 101Arie Bregman
 
Linux: A Getting Started Presentation
Linux: A Getting Started PresentationLinux: A Getting Started Presentation
Linux: A Getting Started PresentationNap Ramirez
 
Quick Guide with Linux Command Line
Quick Guide with Linux Command LineQuick Guide with Linux Command Line
Quick Guide with Linux Command LineAnuchit Chalothorn
 
Making the Move to Linux from an Enterprise Perspective
Making the Move to Linux from an Enterprise PerspectiveMaking the Move to Linux from an Enterprise Perspective
Making the Move to Linux from an Enterprise PerspectiveAll Things Open
 
(Practical) linux 104
(Practical) linux 104(Practical) linux 104
(Practical) linux 104Arie Bregman
 
Module 3 Using Linux Softwares.
Module 3 Using Linux Softwares.Module 3 Using Linux Softwares.
Module 3 Using Linux Softwares.Tushar B Kute
 
Tech talk 01.06.2017
Tech talk 01.06.2017Tech talk 01.06.2017
Tech talk 01.06.2017AboutYouGmbH
 
Linux basics and commands - from lynxbee.com
Linux basics and commands - from lynxbee.comLinux basics and commands - from lynxbee.com
Linux basics and commands - from lynxbee.comGreen Ecosystem
 
2018-Summer-Tutorial-Intro-to-Linux.pdf
2018-Summer-Tutorial-Intro-to-Linux.pdf2018-Summer-Tutorial-Intro-to-Linux.pdf
2018-Summer-Tutorial-Intro-to-Linux.pdfsanjeevkuraganti
 
The structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformaticsThe structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformaticsBITS
 
Linux kernel modules
Linux kernel modulesLinux kernel modules
Linux kernel modulesEddy Reyes
 
Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Chander Pandey
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commandsSagar Kumar
 
008-Basic-Linux-Commands.pdf
008-Basic-Linux-Commands.pdf008-Basic-Linux-Commands.pdf
008-Basic-Linux-Commands.pdfssuser584832
 

Similar to Linux for Beginners (20)

Linux tech talk
Linux tech talkLinux tech talk
Linux tech talk
 
(Practical) linux 101
(Practical) linux 101(Practical) linux 101
(Practical) linux 101
 
Introduction to Linux
Introduction to LinuxIntroduction to Linux
Introduction to Linux
 
Linux: A Getting Started Presentation
Linux: A Getting Started PresentationLinux: A Getting Started Presentation
Linux: A Getting Started Presentation
 
Quick Guide with Linux Command Line
Quick Guide with Linux Command LineQuick Guide with Linux Command Line
Quick Guide with Linux Command Line
 
Making the Move to Linux from an Enterprise Perspective
Making the Move to Linux from an Enterprise PerspectiveMaking the Move to Linux from an Enterprise Perspective
Making the Move to Linux from an Enterprise Perspective
 
(Practical) linux 104
(Practical) linux 104(Practical) linux 104
(Practical) linux 104
 
Ubuntu for beginners
Ubuntu for beginnersUbuntu for beginners
Ubuntu for beginners
 
Module 3 Using Linux Softwares.
Module 3 Using Linux Softwares.Module 3 Using Linux Softwares.
Module 3 Using Linux Softwares.
 
Tech talk 01.06.2017
Tech talk 01.06.2017Tech talk 01.06.2017
Tech talk 01.06.2017
 
Linux basics and commands - from lynxbee.com
Linux basics and commands - from lynxbee.comLinux basics and commands - from lynxbee.com
Linux basics and commands - from lynxbee.com
 
2018-Summer-Tutorial-Intro-to-Linux.pdf
2018-Summer-Tutorial-Intro-to-Linux.pdf2018-Summer-Tutorial-Intro-to-Linux.pdf
2018-Summer-Tutorial-Intro-to-Linux.pdf
 
The structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformaticsThe structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformatics
 
Dev day linux redu
Dev day linux reduDev day linux redu
Dev day linux redu
 
Linux kernel modules
Linux kernel modulesLinux kernel modules
Linux kernel modules
 
Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01
 
Linux Basics.pptx
Linux Basics.pptxLinux Basics.pptx
Linux Basics.pptx
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
008-Basic-Linux-Commands.pdf
008-Basic-Linux-Commands.pdf008-Basic-Linux-Commands.pdf
008-Basic-Linux-Commands.pdf
 
Mac OSX Terminal 101
Mac OSX Terminal 101Mac OSX Terminal 101
Mac OSX Terminal 101
 

Recently uploaded

Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesŁukasz Chruściel
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEEVICTOR MAESTRE RAMIREZ
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样umasea
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Velvetech LLC
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 

Recently uploaded (20)

Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New Features
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 

Linux for Beginners

  • 1. Linux for Beginners By: L.Gobinath Graduate Teaching Assistant University of Western Ontario
  • 4. History ● Unix Kernel - 1970 in Bell Labs ○ Somewhat open source ● Linux Kernel - 1991 by Linus Torvalds ○ Open source ● GNU - GNU’s Not Unix - The actual operating system ○ Open source
  • 5. Why GNU/Linux ● Popular Linux Distributions for servers: ○ Ubuntu ○ Debian ○ CentOS ○ Gentoo ○ RedHat ● Why Linux not Windows or …. ○ Security ○ Modulus ○ Stable ○ Free ○ ...
  • 6. Shell & Bash ● Shell - Part of Unix but available in most Linux distributions ● Bash - A GNU alternative for Shell
  • 7. Terminal ● A command line tool to interact with Bash ● Example: ○ Gnome Terminal ○ Tilix ○ Terminator ○ Windows Command Prompt* ○ Powershell* ● How to open: ○ Linux - Ctrl + Alt + T ○ Mac - Applications → Utilities → Terminal ○ Windows - Open Command Prompt
  • 8. Connect to server ● Linux & Mac: ○ ssh -p 22 admin@xxxx.eng.uwo.ca ○ Here xxxx is the server name allocated for your group (Example: foo for Group 1) ○ When prompt, enter the password given by TAs (Meet TAs in person to get the password) ● Windows: ○ Configure Putty ○ If Putty is unable to connect to the server, disable Antivirus/Firewall and try again
  • 9. What's next? ● Summary of Linux 101 tutorial which is shared on OWL ○ SE 4455B 001 FW17 Resources /Web/00. Linux 101 ● Let’s get our hand dirty...
  • 10. Basic Commands ● Check your sudo permission: ○ sudo -l ● Print Hello World!: ○ echo "Hello world!" ● Terminal Shortcuts: ○ ↑ - Visit the last used commands ○ Ctrl + R - Search in bash history ○ Ctrl + L or clear - Clear the terminal screen ○ Ctrl + U - Delete the current line ○ Ctrl + A - Go to the start of current line ○ Ctrl + C - Terminate running program ○ Ctrl + D or exit - Exit from a command line program ○ Ctrl + Shift + C - Copy to clipboard ○ Ctrl + Shift + V - Paste from clipboard ○ Tab - Auto complete GNU/Linux commands are case sensitive
  • 11. Paths and Navigation ● Top most parent directory is root ○ / ● User directory is home: ○ /home/<username> ● Print working directory: ○ pwd ● List files: ○ ls ● Change directory: ○ cd <dir-path> ● Path shortcuts: Home: ~ Current directory: ./ Parent directory: ../
  • 12. Files ● Everything is a file including files, folders, keyboards, monitors ● Extensions makes no difference ○ Linux reads the file and decides on type ○ Use file <file-name> command to check the file ● Create a new empty file ○ touch <file-name> ● Create a new directory ○ mkdir <dir-name> ● Create a directory tree ○ mkdir -p linuxtutorialwork/foo/bar ● Path containing space must be escaped ○ mkdir 'hello world' ○ cd hello world Better to avoid spaces when naming files
  • 13. Files... ● Remove an empty directory ○ rmdir linuxtutorialwork/foo/bar ● Copy files ○ cp <source> <destination> ● Move files ○ mv <source> <destination> ● Write to a file ○ echo 'Hello World!' > hello.txt ● Append to a file ○ echo 'Hello World!' > hello.txt ● Print a file ○ cat hello.txt ● Remove file and directories with files ○ rm
  • 14. Ask for Help ● List available parameters and what they can do with --help ○ ls --help ● Check the manual of a command ○ Man ls ● Search for a keyword in manuals ○ man -k create ● A world without Google is hard to imagine
  • 15. Wildcards ● Any character any number of times: * ○ ls foo* ● Any character exactly once: ? ○ ls f? ● List of characters: [abc] or [a-z] ○ ls [ab]*.txt NEVER EVER RUN: sudo rm -rf /*
  • 17. Installing Softwares ● Tons of Linux Distributions are out there ● They may or may not have similar ways to install software ● Let’s install tree ○ Fedora: yum install tree -y ○ Debian: sudo apt install tree ○ Ubuntu: sudo apt install tree ○ Arch: sudo pacman -S tree ● Ubuntu is based on Debian but it has its own softwares ○ Not all applications available for Ubuntu are available for Debian ● When you search for commands, use: how to install … on Debian
  • 18. Edit Text Files using Nano
  • 19. Edit Text Files using Nano