SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Downloaden Sie, um offline zu lesen
AIR FORCE ASSOCIATION’S
NATIONAL YOUTH CYBER EDUCATION PROGRAM
CYBERPATRIOT
www.uscyberpatriot.org
UNIT SEVEN
Introduction to Linux and Ubuntu
AIR FORCE ASSOCIATION’S
NATIONAL YOUTH CYBER EDUCATION PROGRAM
CYBERPATRIOT
www.uscyberpatriot.org
SECTION ONE
What is Linux?
1
© Air Force Association
• Linux refers to a family of operating
systems modeled off of Unix
• Can perform many of the same
functions as Windows or OS X
• Built in a collaborative, open-source
environment
‐ Anyone may use, modify, or distribute the
Linux kernel
‐ Anyone can develop software to run on the
Linux kernel
‐ Many programmers collaborate to develop or
improve Linux programs
‐ Many Linux operating systems and add-on
programs are free
A Family of Operating Systems
2
Source: http://scienceblogs.com/gregladen/category/technology/linux/
Sources: http://www.linuxfederation.com/linux-everywhere/, http://techland.time.com/2012/06/19/what-exactly-is-a-supercomputer/,
http://www.unixmen.com/why-do-super-computers-use-linux/
© Air Force Association
• A kernel is the core component of an OS
‐ Windows operating systems have kernels,
but since they are not open-source or
packaged separately for programmers to
build off, they are less-often discussed
• Manages system resources (Memory,
Processes, Input and Output Devices)
• When a user does something in the shell
(the OS’s user interface and
applications), the kernel translates the
command and prioritizes it against other
requests for resources, so that it can be
understood and executed by the CPU
Linux Kernel
3
User
Shell
Kernel
CPU
Devices Memory
Operating
System
Source: https://help.ubuntu.com/8.04/serverguide/C/user-management.html
© Air Force Association
• There are many different flavors (OSs)
built off the Linux kernel
‐ Ubuntu: Most popular flavor. It is free and is
the most user-friendly.
‐ Mint: A popular variation of Linux
‐ Red Hat: Designed by a company that develops
specialized flavors for government and big
business
‐ Fedora: An open-source, free version of Red
Hat. Used frequently as a test bed for Red Hat
programs.
• These flavors are similar at the basic level,
but can have very different interfaces and
specialized commands.
Different Linux Operating Systems
4
Source: https://fedoraproject.org/
Source: http://www.linuxmint.com/
Source: http://www.redhat.com/
Source: http://www.ubuntu.com/
Sources: http://distrowatch.com/dwres.php?resource=major, http://www.sitepoint.com/unix-style-operating-systems/
© Air Force Association
• Cheaper
‐ Because Linux is open-source, there is often no cost for flavors or their applications
‐ Still many more Windows programs because programmers have a financial incentive to
develop them
• Graphical User Interface (GUI) can be changed on Linux
‐ Windows and Linux both have GUIs to make it easier for users to navigate them
‐ Linux menus, icons, and other components can be more customized than Windows ones
• Some tasks can only be run in the command line
‐ Command line is a GUI alternative that allows users to execute commands by text
• Less malware on Linux
‐ Since most organizations still use Windows, those systems are more lucrative targets for
attackers
‐ The open-source Linux community sometimes develops and distributes patches more
quickly than Microsoft and Apple
• Certain hardware is not built to work with Linux
‐ Hardware developers are not as likely to make their products compatible with Linux, as
many more people use Windows
5
Differences with Windows
Source: http://learntowriteblog.blogspot.com/2011/04/differences-and-similarities-between.html
© Air Force Association
• Can be servers and workstations
‐ Linux servers and workstations are more
similar than Windows ones. Linux servers
come pre-installed with server applications
• Can complete similar tasks
‐ There are Linux programs that function like to
Microsoft Office (LibreOffice), Outlook
(Thunderbird), etc.
• Are stable and have significant support
• Subject to very similar vulnerabilities
‐ Linux systems are targeted less frequently by
malware, but still have many of the same
vulnerabilities and patches (firewalls,
password policy, etc.)
6
Similarities to Windows
Source: http://commons.wikimedia.org/wiki/File:Mozilla_thunderbird_empty_screenshot.png
Source: http://es.libreoffice.org/assets/Uploads/EN-
Project_images/4.0NewFeatures/Writer/Comment-text-range.png?r=45758
Sources: https://help.ubuntu.com/community/ServerFaq#What.27s_the_difference_between_desktop_and_server.3F,
http://blog.computerlagoon.com/2013/04/07/similarities-of-windows-and-linux/
Mozilla Thunderbird
LibreOffice
AIR FORCE ASSOCIATION’S
NATIONAL YOUTH CYBER EDUCATION PROGRAM
CYBERPATRIOT
www.uscyberpatriot.org
SECTION TWO
Ubuntu Terminology and Concepts
7
© Air Force Association
• Account types: User and Root
• Root – the Linux Administrator account
‐ Like the built-in Administrator in Windows, Linux comes
with a built-in root account
‐ A system can have multiple root accounts
‐ Users can switch whether their actions are carried out as
a user or root
‐ When someone enacts root permissions, he or she can
access all of the files and run all commands on a system,
as well as set policies for other users
• Root actions require a password in both GUI and
command line
• Authentication vs. Authorization
‐ Root users are authorized to do many different tasks, but
they must first authenticate their identity by entering
their password
8
The Root Account
Source: http://eswalls.com/wp-content/uploads/2014/01/i-am-root.png
Source: http://www.cyberciti.biz/faq/authentication-vs-authorization/
© Air Force Association
• Different than the Windows file system
‐ Does not specify on which drive a folder is stored
and uses forward slashes (/) to identify root
directories
• Example:
‐ Windows: C:Documentshello.txt
‐ Linux: /home/CyberPatriot/hello.txt
• Important folders:
‐ /home: stores each user’s documents, media files,
etc. Users can only access their own folders, unless
they have enacted root permissions
‐ /boot: contains startup files and kernel files. Should
not be modified unless you are an expert user.
• The file system can be accessed by clicking
the orange folder on your Ubuntu menu bar
9
Ubuntu File System
© Air Force Association
• Linux software is bundled into
packages
• Packages are managed by
package managers
‐ In Ubuntu, the package
manager is called “Ubuntu
Software Center.”
‐ It looks and functions a lot like
Mac’s App Store
‐ Many programs are free
• To access Ubuntu Software
Center, click the shopping bag
on your Ubuntu menu bar
• Users must enact root
permissions to install, uninstall,
or modify software.
Adding and Removing Software
10
Source: https://help.ubuntu.com/community/InstallingSoftware
Use to manage or
uninstall software you
have already installed
Use to view a log of all
the recent software
installs, removals, and
updates on your system
Use to find and
download free and pay-
for-use software
AIR FORCE ASSOCIATION’S
NATIONAL YOUTH CYBER EDUCATION PROGRAM
CYBERPATRIOT
www.uscyberpatriot.org
SECTION THREE
Introduction to Ubuntu Command Line
11
© Air Force Association
Pros
• Provides the user more control
‐ Unlike the GUI, which pre-programs certain
tasks, command line allows you to send more
detailed and customized commands
• Only option for some tasks in Ubuntu
• Saves clicking time because it just
requires a keyboard
• Uses less of the computer’s processing
power than the GUI (no animations or
graphical processing)
• Can be made easier with scripting
‐ Scripts are sequenced lists of commands that
allow users to send multiple commands at once
‐ Can be used for routine tasks like backing up
files, monitoring a system, and quickly gathering
information about memory and processes
12
Command Line Pros and Cons
Source: http://i.stack.imgur.com/2hBJf.png
Cons
• Not as user-friendly
‐ Requires memorizing commands or using a
reference
• Harder to multitask
‐ Having multiple command line windows open
at once can be confusing, since they look nearly
identical
Source: http://www.computerhope.com/issues/ch000619.htm
© Air Force Association
• Command line is accessed through a program called Terminal
• Click the Ubuntu Button on the Ubuntu menu bar→ Search
“Terminal” → Open Terminal
13
Accessing Terminal
© Air Force Association
• When typing commands in Terminal, it is very important to pay
attention to capitalization and spaces
• Hitting Enter will execute your command and hitting Ctrl+D will
close any commands you have running or exit the Terminal
• There are numerous Ubuntu command databases and
command line tutorials online. Here are a few sites:
‐ https://help.ubuntu.com/community/UsingTheTerminal
‐ http://ryanstutorials.net/linuxtutorial/
‐ http://manpages.ubuntu.com/
‐ http://ubuntu-manual.org/
14
Using Terminal
© Air Force Association
1. In Terminal, type
cat –n > /home/cyberpatriot/Documents/hello2.txt
**Make sure to capitalize Documents and to put the spaces before –n, >, and /home
2. Hit Enter to execute the command
3. Type This is another test. Hello Again!
4. Hit Enter to execute the command
5. Type Ctrl+D to close your commands
15
Sample Command
© Air Force Association
1. Close Terminal and open the Home Folder by clicking the
orange folder on the Ubuntu menu bar
2. Navigate to the Documents folder
3. Double-click the hello2.txt file
• The commands you just entered created this text document
‐ It includes the file name you selected, the text typed, and a “1” at the
beginning of the line of text. The next few slides will examine why.
16
Sample Command (cont.)
© Air Force Association
• Rules that govern how command are written
‐ Writing commands requires some memorization. However, commands all
have common components.
• Similar to English grammar in that there are different components and
they must be in a certain order to be understood by the audience
17
Command Syntax
Source: http://www.linfo.org/cat.html
English Grammar Example:
The boy pet the dog.
Subject – The boy
Verb - pet
Object – the dog.
• We know that the subject (the boy) is performing
an action (petting) and that action is happening to
the object of the sentence (the dog).
• A different order (e.g. Verb+Subject+Object) does
not make sense
• Command Syntax similarly dictates meaning and
governs sequencing
© Air Force Association
• Command: tells computer what you want it to do
‐ All other components of the syntax depend on what the command is
‐ The “cat” command creates, displays, or copies files
• Option: customizes the output of the command
‐ “-n“ told the computer to add a number to each line of text in the file you created
‐ The effect an option has varies by command
‐ Not required for all commands
• Operator: directs the output of the command
‐ Not required for all commands
• File Name/Location: Tells the OS to which file you want the command and options to happen
• Like English sentences, Command Syntax can get very complex
18
Command Syntax
(First command from Slide 15)
Command
File Name/Location
cat –n > /home/cybepatriot/Documents/hello2.txt
Operator
Option
Source: http://www.linfo.org/cat.html
© Air Force Association
• Allows an authorized user (one with root permissions) to temporarily
elevate their privileges using their own password instead of having to
know the password belonging to the built-in root account
• This command must be used to perform administrative tasks (e.g.
adding a user account)
‐ Example: To add “archimedes“ as a user on your system, type adduser
archimedes and hit Enter
‐ You will get the error message below because you have not authenticated
yourself
‐ Note: user names must be lower case
19
The sudo Command
© Air Force Association
• Now try adding “archimedes” as a user by entering the
sudo command first:
‐ Type sudo adduser archimedes
‐ Hit Enter
‐ When prompted, type in your password and hit Enter
• Note: Your password will not be visible when you type. This is an
Ubuntu security feature.
• Remember, the sudo command will only work if your are using an
account with root permissions
‐ When prompted, type a password and any other details you wish to add
to the user account
‐ Hit Enter
20
The sudo Command (cont.)
© Air Force Association
• The sudo su command is a variation of the sudo command
‐ It tells the command line that you want to run all of the subsequent
commands in your current session as root, so that you do not have to
enter the sudo command and your password each time
• Try adding “riemann“ as a user on your system using the
sudo su command:
– Exit the Terminal and then restart it
– Type sudo su
– Hit Enter
– When prompted, type in your password
– Type adduser riemann
– Hit Enter
– Type a password and any other details you want to add to the user’s
account
– Hit Enter
21
The sudo su Command
© Air Force Association
• To check that accounts for “archimedes” and “riemann” were created
when you entered your commands, click the gear icon on your
Ubuntu menu bar and click the User Accounts button
22
Confirm Creation of User Accounts

Weitere ähnliche Inhalte

Was ist angesagt?

An Introduction to Linux
An Introduction to LinuxAn Introduction to Linux
An Introduction to Linuxanandvaidya
 
linux os-basics,Devops training in Hyderabad
linux os-basics,Devops training in Hyderabadlinux os-basics,Devops training in Hyderabad
linux os-basics,Devops training in HyderabadDevops Trainer
 
Linux power management: are you doing it right?
Linux power management: are you doing it right?Linux power management: are you doing it right?
Linux power management: are you doing it right?Chris Simmonds
 
A general Overview of linux !!
A general Overview of linux !!A general Overview of linux !!
A general Overview of linux !!jainema23
 
Embedded linux system development (slides)
Embedded linux system development (slides)Embedded linux system development (slides)
Embedded linux system development (slides)Jaime Barragan
 
Group 5 Report Effect
Group 5 Report EffectGroup 5 Report Effect
Group 5 Report Effectjorence
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linuxplarsen67
 
Prizm Installation Guide
Prizm Installation GuidePrizm Installation Guide
Prizm Installation Guidevjvarenya
 
Read-only rootfs: theory and practice
Read-only rootfs: theory and practiceRead-only rootfs: theory and practice
Read-only rootfs: theory and practiceChris Simmonds
 
Why linux is better than windows
Why linux is better than windowsWhy linux is better than windows
Why linux is better than windowsShiwang Kalkhanda
 
Open source operating systems
Open source operating systemsOpen source operating systems
Open source operating systemsTushar B Kute
 
Quick and Easy Device Drivers for Embedded Linux Using UIO
Quick and Easy Device Drivers for Embedded Linux Using UIOQuick and Easy Device Drivers for Embedded Linux Using UIO
Quick and Easy Device Drivers for Embedded Linux Using UIOChris Simmonds
 
Hillel kobrovski Linux security overview for ciso
Hillel kobrovski   Linux security overview for cisoHillel kobrovski   Linux security overview for ciso
Hillel kobrovski Linux security overview for cisoHillel Kobrovski
 
ZendCon - Linux 101
ZendCon - Linux 101ZendCon - Linux 101
ZendCon - Linux 101Justin Reock
 
Android rpi-csimmonds-fosdem-2019
Android rpi-csimmonds-fosdem-2019Android rpi-csimmonds-fosdem-2019
Android rpi-csimmonds-fosdem-2019Chris Simmonds
 
Yocto project and open embedded training
Yocto project and open embedded trainingYocto project and open embedded training
Yocto project and open embedded trainingH Ming
 

Was ist angesagt? (20)

An Introduction to Linux
An Introduction to LinuxAn Introduction to Linux
An Introduction to Linux
 
linux os-basics,Devops training in Hyderabad
linux os-basics,Devops training in Hyderabadlinux os-basics,Devops training in Hyderabad
linux os-basics,Devops training in Hyderabad
 
Linux power management: are you doing it right?
Linux power management: are you doing it right?Linux power management: are you doing it right?
Linux power management: are you doing it right?
 
comparing windows and linux ppt
comparing windows and linux pptcomparing windows and linux ppt
comparing windows and linux ppt
 
A general Overview of linux !!
A general Overview of linux !!A general Overview of linux !!
A general Overview of linux !!
 
Embedded linux system development (slides)
Embedded linux system development (slides)Embedded linux system development (slides)
Embedded linux system development (slides)
 
Intro tounix
Intro tounixIntro tounix
Intro tounix
 
Group 5 Report Effect
Group 5 Report EffectGroup 5 Report Effect
Group 5 Report Effect
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linux
 
Prizm Installation Guide
Prizm Installation GuidePrizm Installation Guide
Prizm Installation Guide
 
Read-only rootfs: theory and practice
Read-only rootfs: theory and practiceRead-only rootfs: theory and practice
Read-only rootfs: theory and practice
 
Linux vs windows
Linux vs windowsLinux vs windows
Linux vs windows
 
Why linux is better than windows
Why linux is better than windowsWhy linux is better than windows
Why linux is better than windows
 
Open source operating systems
Open source operating systemsOpen source operating systems
Open source operating systems
 
Quick and Easy Device Drivers for Embedded Linux Using UIO
Quick and Easy Device Drivers for Embedded Linux Using UIOQuick and Easy Device Drivers for Embedded Linux Using UIO
Quick and Easy Device Drivers for Embedded Linux Using UIO
 
Hillel kobrovski Linux security overview for ciso
Hillel kobrovski   Linux security overview for cisoHillel kobrovski   Linux security overview for ciso
Hillel kobrovski Linux security overview for ciso
 
ZendCon - Linux 101
ZendCon - Linux 101ZendCon - Linux 101
ZendCon - Linux 101
 
Linux os and its features
Linux os and its featuresLinux os and its features
Linux os and its features
 
Android rpi-csimmonds-fosdem-2019
Android rpi-csimmonds-fosdem-2019Android rpi-csimmonds-fosdem-2019
Android rpi-csimmonds-fosdem-2019
 
Yocto project and open embedded training
Yocto project and open embedded trainingYocto project and open embedded training
Yocto project and open embedded training
 

Ähnlich wie Unit+seven+ +introduction+to+linux+and+ubuntu

Intro tounix (1)
Intro tounix (1)Intro tounix (1)
Intro tounix (1)Raj Mirje
 
Chapter 1 - Introduction to Operating System.pptx
Chapter 1 - Introduction to Operating System.pptxChapter 1 - Introduction to Operating System.pptx
Chapter 1 - Introduction to Operating System.pptxgowthamiv26
 
Overview on Open Source Technology.pptx
Overview on Open Source Technology.pptxOverview on Open Source Technology.pptx
Overview on Open Source Technology.pptxDrRShaliniVISTAS
 
Unix linux talk_by_pk_mishra_v1.8
Unix linux talk_by_pk_mishra_v1.8Unix linux talk_by_pk_mishra_v1.8
Unix linux talk_by_pk_mishra_v1.8PK Mishra
 
Intro To Linux
Intro To LinuxIntro To Linux
Intro To Linuxtechlug
 
Introduction to linux at Introductory Bioinformatics Workshop
Introduction to linux at Introductory Bioinformatics WorkshopIntroduction to linux at Introductory Bioinformatics Workshop
Introduction to linux at Introductory Bioinformatics WorkshopSetor Amuzu
 
Opeating system programs
Opeating system programsOpeating system programs
Opeating system programsJotham Gadot
 
01 linux history overview
01 linux history overview01 linux history overview
01 linux history overviewShay Cohen
 
Linux Kernel and Driver Development Training
Linux Kernel and Driver Development TrainingLinux Kernel and Driver Development Training
Linux Kernel and Driver Development TrainingStephan Cadene
 
Lec 01_Linux System Administration (1).pptx
Lec 01_Linux System Administration (1).pptxLec 01_Linux System Administration (1).pptx
Lec 01_Linux System Administration (1).pptxShabanaShafi3
 
1.1.1.Introduction.pdf
1.1.1.Introduction.pdf1.1.1.Introduction.pdf
1.1.1.Introduction.pdfbemnitekalegn
 
Preparing_Your_Computer.pdf
Preparing_Your_Computer.pdfPreparing_Your_Computer.pdf
Preparing_Your_Computer.pdfprago1
 
Fos sintro pres-dav
Fos sintro pres-davFos sintro pres-dav
Fos sintro pres-davParin Sharma
 

Ähnlich wie Unit+seven+ +introduction+to+linux+and+ubuntu (20)

Intro tounix (1)
Intro tounix (1)Intro tounix (1)
Intro tounix (1)
 
Chapter 1 - Introduction to Operating System.pptx
Chapter 1 - Introduction to Operating System.pptxChapter 1 - Introduction to Operating System.pptx
Chapter 1 - Introduction to Operating System.pptx
 
Linux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell ScriptingLinux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell Scripting
 
Linux Systems: Getting started with setting up an Embedded platform
Linux Systems: Getting started with setting up an Embedded platformLinux Systems: Getting started with setting up an Embedded platform
Linux Systems: Getting started with setting up an Embedded platform
 
Overview on Open Source Technology.pptx
Overview on Open Source Technology.pptxOverview on Open Source Technology.pptx
Overview on Open Source Technology.pptx
 
Linux systems - Getting started with setting up and embedded platform
Linux systems - Getting started with setting up and embedded platformLinux systems - Getting started with setting up and embedded platform
Linux systems - Getting started with setting up and embedded platform
 
Linux
LinuxLinux
Linux
 
Unix linux talk_by_pk_mishra_v1.8
Unix linux talk_by_pk_mishra_v1.8Unix linux talk_by_pk_mishra_v1.8
Unix linux talk_by_pk_mishra_v1.8
 
Intro To Linux
Intro To LinuxIntro To Linux
Intro To Linux
 
OS ppt.pdf
OS ppt.pdfOS ppt.pdf
OS ppt.pdf
 
Introduction to linux at Introductory Bioinformatics Workshop
Introduction to linux at Introductory Bioinformatics WorkshopIntroduction to linux at Introductory Bioinformatics Workshop
Introduction to linux at Introductory Bioinformatics Workshop
 
Linux Operating System
Linux Operating SystemLinux Operating System
Linux Operating System
 
Opeating system programs
Opeating system programsOpeating system programs
Opeating system programs
 
01 linux history overview
01 linux history overview01 linux history overview
01 linux history overview
 
Linux Kernel and Driver Development Training
Linux Kernel and Driver Development TrainingLinux Kernel and Driver Development Training
Linux Kernel and Driver Development Training
 
Lec 01_Linux System Administration (1).pptx
Lec 01_Linux System Administration (1).pptxLec 01_Linux System Administration (1).pptx
Lec 01_Linux System Administration (1).pptx
 
1.1.1.Introduction.pdf
1.1.1.Introduction.pdf1.1.1.Introduction.pdf
1.1.1.Introduction.pdf
 
Preparing_Your_Computer.pdf
Preparing_Your_Computer.pdfPreparing_Your_Computer.pdf
Preparing_Your_Computer.pdf
 
Top 10 Tips for Beginning Linux Users
Top 10 Tips for Beginning Linux UsersTop 10 Tips for Beginning Linux Users
Top 10 Tips for Beginning Linux Users
 
Fos sintro pres-dav
Fos sintro pres-davFos sintro pres-dav
Fos sintro pres-dav
 

Mehr von Erdo Deshiant Garnaby

Mehr von Erdo Deshiant Garnaby (16)

Hackers Cracker Network Intruder
Hackers Cracker Network IntruderHackers Cracker Network Intruder
Hackers Cracker Network Intruder
 
Computer Security Hacking
Computer Security HackingComputer Security Hacking
Computer Security Hacking
 
Org Design
Org DesignOrg Design
Org Design
 
HOS Talent management presentation
HOS Talent management presentationHOS Talent management presentation
HOS Talent management presentation
 
Talent management
Talent managementTalent management
Talent management
 
Unit+nine+ +additional+topics+and+resources
Unit+nine+ +additional+topics+and+resourcesUnit+nine+ +additional+topics+and+resources
Unit+nine+ +additional+topics+and+resources
 
Unit+seven+ +introduction+to+linux+and+ubuntu
Unit+seven+ +introduction+to+linux+and+ubuntuUnit+seven+ +introduction+to+linux+and+ubuntu
Unit+seven+ +introduction+to+linux+and+ubuntu
 
Unit+eight+ +ubuntu+security
Unit+eight+ +ubuntu+securityUnit+eight+ +ubuntu+security
Unit+eight+ +ubuntu+security
 
Unit+six+ +windows+file+protections+and+monitoring
Unit+six+ +windows+file+protections+and+monitoringUnit+six+ +windows+file+protections+and+monitoring
Unit+six+ +windows+file+protections+and+monitoring
 
microsoft+windows+security
microsoft+windows+securitymicrosoft+windows+security
microsoft+windows+security
 
Unit+three+ +computer+basics+and+virtual+machines
Unit+three+ +computer+basics+and+virtual+machinesUnit+three+ +computer+basics+and+virtual+machines
Unit+three+ +computer+basics+and+virtual+machines
 
Unit+eight+ +ubuntu+security
Unit+eight+ +ubuntu+securityUnit+eight+ +ubuntu+security
Unit+eight+ +ubuntu+security
 
Unit+two+ +cyber+ethics+and+online+safety
Unit+two+ +cyber+ethics+and+online+safetyUnit+two+ +cyber+ethics+and+online+safety
Unit+two+ +cyber+ethics+and+online+safety
 
Unit+four+ +principles+of+cybersecurity
Unit+four+ +principles+of+cybersecurityUnit+four+ +principles+of+cybersecurity
Unit+four+ +principles+of+cybersecurity
 
introduction to cyber patriot and cyber security
introduction to cyber patriot and cyber securityintroduction to cyber patriot and cyber security
introduction to cyber patriot and cyber security
 
Cyber Ethics
Cyber EthicsCyber Ethics
Cyber Ethics
 

Kürzlich hochgeladen

Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...Nikki Chapple
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkPixlogix Infotech
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Mark Simos
 
QMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdfQMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdfROWELL MARQUINA
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
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
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
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
 
Digital Tools & AI in Career Development
Digital Tools & AI in Career DevelopmentDigital Tools & AI in Career Development
Digital Tools & AI in Career DevelopmentMahmoud Rabie
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Kaya Weers
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024TopCSSGallery
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesManik S Magar
 
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...itnewsafrica
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Nikki Chapple
 

Kürzlich hochgeladen (20)

Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App Framework
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
 
QMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdfQMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdf
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
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
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
How Tech Giants Cut Corners to Harvest Data for A.I.
How Tech Giants Cut Corners to Harvest Data for A.I.How Tech Giants Cut Corners to Harvest Data for A.I.
How Tech Giants Cut Corners to Harvest Data for A.I.
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
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...
 
Digital Tools & AI in Career Development
Digital Tools & AI in Career DevelopmentDigital Tools & AI in Career Development
Digital Tools & AI in Career Development
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
 
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
 

Unit+seven+ +introduction+to+linux+and+ubuntu

  • 1. AIR FORCE ASSOCIATION’S NATIONAL YOUTH CYBER EDUCATION PROGRAM CYBERPATRIOT www.uscyberpatriot.org UNIT SEVEN Introduction to Linux and Ubuntu
  • 2. AIR FORCE ASSOCIATION’S NATIONAL YOUTH CYBER EDUCATION PROGRAM CYBERPATRIOT www.uscyberpatriot.org SECTION ONE What is Linux? 1
  • 3. © Air Force Association • Linux refers to a family of operating systems modeled off of Unix • Can perform many of the same functions as Windows or OS X • Built in a collaborative, open-source environment ‐ Anyone may use, modify, or distribute the Linux kernel ‐ Anyone can develop software to run on the Linux kernel ‐ Many programmers collaborate to develop or improve Linux programs ‐ Many Linux operating systems and add-on programs are free A Family of Operating Systems 2 Source: http://scienceblogs.com/gregladen/category/technology/linux/ Sources: http://www.linuxfederation.com/linux-everywhere/, http://techland.time.com/2012/06/19/what-exactly-is-a-supercomputer/, http://www.unixmen.com/why-do-super-computers-use-linux/
  • 4. © Air Force Association • A kernel is the core component of an OS ‐ Windows operating systems have kernels, but since they are not open-source or packaged separately for programmers to build off, they are less-often discussed • Manages system resources (Memory, Processes, Input and Output Devices) • When a user does something in the shell (the OS’s user interface and applications), the kernel translates the command and prioritizes it against other requests for resources, so that it can be understood and executed by the CPU Linux Kernel 3 User Shell Kernel CPU Devices Memory Operating System Source: https://help.ubuntu.com/8.04/serverguide/C/user-management.html
  • 5. © Air Force Association • There are many different flavors (OSs) built off the Linux kernel ‐ Ubuntu: Most popular flavor. It is free and is the most user-friendly. ‐ Mint: A popular variation of Linux ‐ Red Hat: Designed by a company that develops specialized flavors for government and big business ‐ Fedora: An open-source, free version of Red Hat. Used frequently as a test bed for Red Hat programs. • These flavors are similar at the basic level, but can have very different interfaces and specialized commands. Different Linux Operating Systems 4 Source: https://fedoraproject.org/ Source: http://www.linuxmint.com/ Source: http://www.redhat.com/ Source: http://www.ubuntu.com/ Sources: http://distrowatch.com/dwres.php?resource=major, http://www.sitepoint.com/unix-style-operating-systems/
  • 6. © Air Force Association • Cheaper ‐ Because Linux is open-source, there is often no cost for flavors or their applications ‐ Still many more Windows programs because programmers have a financial incentive to develop them • Graphical User Interface (GUI) can be changed on Linux ‐ Windows and Linux both have GUIs to make it easier for users to navigate them ‐ Linux menus, icons, and other components can be more customized than Windows ones • Some tasks can only be run in the command line ‐ Command line is a GUI alternative that allows users to execute commands by text • Less malware on Linux ‐ Since most organizations still use Windows, those systems are more lucrative targets for attackers ‐ The open-source Linux community sometimes develops and distributes patches more quickly than Microsoft and Apple • Certain hardware is not built to work with Linux ‐ Hardware developers are not as likely to make their products compatible with Linux, as many more people use Windows 5 Differences with Windows Source: http://learntowriteblog.blogspot.com/2011/04/differences-and-similarities-between.html
  • 7. © Air Force Association • Can be servers and workstations ‐ Linux servers and workstations are more similar than Windows ones. Linux servers come pre-installed with server applications • Can complete similar tasks ‐ There are Linux programs that function like to Microsoft Office (LibreOffice), Outlook (Thunderbird), etc. • Are stable and have significant support • Subject to very similar vulnerabilities ‐ Linux systems are targeted less frequently by malware, but still have many of the same vulnerabilities and patches (firewalls, password policy, etc.) 6 Similarities to Windows Source: http://commons.wikimedia.org/wiki/File:Mozilla_thunderbird_empty_screenshot.png Source: http://es.libreoffice.org/assets/Uploads/EN- Project_images/4.0NewFeatures/Writer/Comment-text-range.png?r=45758 Sources: https://help.ubuntu.com/community/ServerFaq#What.27s_the_difference_between_desktop_and_server.3F, http://blog.computerlagoon.com/2013/04/07/similarities-of-windows-and-linux/ Mozilla Thunderbird LibreOffice
  • 8. AIR FORCE ASSOCIATION’S NATIONAL YOUTH CYBER EDUCATION PROGRAM CYBERPATRIOT www.uscyberpatriot.org SECTION TWO Ubuntu Terminology and Concepts 7
  • 9. © Air Force Association • Account types: User and Root • Root – the Linux Administrator account ‐ Like the built-in Administrator in Windows, Linux comes with a built-in root account ‐ A system can have multiple root accounts ‐ Users can switch whether their actions are carried out as a user or root ‐ When someone enacts root permissions, he or she can access all of the files and run all commands on a system, as well as set policies for other users • Root actions require a password in both GUI and command line • Authentication vs. Authorization ‐ Root users are authorized to do many different tasks, but they must first authenticate their identity by entering their password 8 The Root Account Source: http://eswalls.com/wp-content/uploads/2014/01/i-am-root.png Source: http://www.cyberciti.biz/faq/authentication-vs-authorization/
  • 10. © Air Force Association • Different than the Windows file system ‐ Does not specify on which drive a folder is stored and uses forward slashes (/) to identify root directories • Example: ‐ Windows: C:Documentshello.txt ‐ Linux: /home/CyberPatriot/hello.txt • Important folders: ‐ /home: stores each user’s documents, media files, etc. Users can only access their own folders, unless they have enacted root permissions ‐ /boot: contains startup files and kernel files. Should not be modified unless you are an expert user. • The file system can be accessed by clicking the orange folder on your Ubuntu menu bar 9 Ubuntu File System
  • 11. © Air Force Association • Linux software is bundled into packages • Packages are managed by package managers ‐ In Ubuntu, the package manager is called “Ubuntu Software Center.” ‐ It looks and functions a lot like Mac’s App Store ‐ Many programs are free • To access Ubuntu Software Center, click the shopping bag on your Ubuntu menu bar • Users must enact root permissions to install, uninstall, or modify software. Adding and Removing Software 10 Source: https://help.ubuntu.com/community/InstallingSoftware Use to manage or uninstall software you have already installed Use to view a log of all the recent software installs, removals, and updates on your system Use to find and download free and pay- for-use software
  • 12. AIR FORCE ASSOCIATION’S NATIONAL YOUTH CYBER EDUCATION PROGRAM CYBERPATRIOT www.uscyberpatriot.org SECTION THREE Introduction to Ubuntu Command Line 11
  • 13. © Air Force Association Pros • Provides the user more control ‐ Unlike the GUI, which pre-programs certain tasks, command line allows you to send more detailed and customized commands • Only option for some tasks in Ubuntu • Saves clicking time because it just requires a keyboard • Uses less of the computer’s processing power than the GUI (no animations or graphical processing) • Can be made easier with scripting ‐ Scripts are sequenced lists of commands that allow users to send multiple commands at once ‐ Can be used for routine tasks like backing up files, monitoring a system, and quickly gathering information about memory and processes 12 Command Line Pros and Cons Source: http://i.stack.imgur.com/2hBJf.png Cons • Not as user-friendly ‐ Requires memorizing commands or using a reference • Harder to multitask ‐ Having multiple command line windows open at once can be confusing, since they look nearly identical Source: http://www.computerhope.com/issues/ch000619.htm
  • 14. © Air Force Association • Command line is accessed through a program called Terminal • Click the Ubuntu Button on the Ubuntu menu bar→ Search “Terminal” → Open Terminal 13 Accessing Terminal
  • 15. © Air Force Association • When typing commands in Terminal, it is very important to pay attention to capitalization and spaces • Hitting Enter will execute your command and hitting Ctrl+D will close any commands you have running or exit the Terminal • There are numerous Ubuntu command databases and command line tutorials online. Here are a few sites: ‐ https://help.ubuntu.com/community/UsingTheTerminal ‐ http://ryanstutorials.net/linuxtutorial/ ‐ http://manpages.ubuntu.com/ ‐ http://ubuntu-manual.org/ 14 Using Terminal
  • 16. © Air Force Association 1. In Terminal, type cat –n > /home/cyberpatriot/Documents/hello2.txt **Make sure to capitalize Documents and to put the spaces before –n, >, and /home 2. Hit Enter to execute the command 3. Type This is another test. Hello Again! 4. Hit Enter to execute the command 5. Type Ctrl+D to close your commands 15 Sample Command
  • 17. © Air Force Association 1. Close Terminal and open the Home Folder by clicking the orange folder on the Ubuntu menu bar 2. Navigate to the Documents folder 3. Double-click the hello2.txt file • The commands you just entered created this text document ‐ It includes the file name you selected, the text typed, and a “1” at the beginning of the line of text. The next few slides will examine why. 16 Sample Command (cont.)
  • 18. © Air Force Association • Rules that govern how command are written ‐ Writing commands requires some memorization. However, commands all have common components. • Similar to English grammar in that there are different components and they must be in a certain order to be understood by the audience 17 Command Syntax Source: http://www.linfo.org/cat.html English Grammar Example: The boy pet the dog. Subject – The boy Verb - pet Object – the dog. • We know that the subject (the boy) is performing an action (petting) and that action is happening to the object of the sentence (the dog). • A different order (e.g. Verb+Subject+Object) does not make sense • Command Syntax similarly dictates meaning and governs sequencing
  • 19. © Air Force Association • Command: tells computer what you want it to do ‐ All other components of the syntax depend on what the command is ‐ The “cat” command creates, displays, or copies files • Option: customizes the output of the command ‐ “-n“ told the computer to add a number to each line of text in the file you created ‐ The effect an option has varies by command ‐ Not required for all commands • Operator: directs the output of the command ‐ Not required for all commands • File Name/Location: Tells the OS to which file you want the command and options to happen • Like English sentences, Command Syntax can get very complex 18 Command Syntax (First command from Slide 15) Command File Name/Location cat –n > /home/cybepatriot/Documents/hello2.txt Operator Option Source: http://www.linfo.org/cat.html
  • 20. © Air Force Association • Allows an authorized user (one with root permissions) to temporarily elevate their privileges using their own password instead of having to know the password belonging to the built-in root account • This command must be used to perform administrative tasks (e.g. adding a user account) ‐ Example: To add “archimedes“ as a user on your system, type adduser archimedes and hit Enter ‐ You will get the error message below because you have not authenticated yourself ‐ Note: user names must be lower case 19 The sudo Command
  • 21. © Air Force Association • Now try adding “archimedes” as a user by entering the sudo command first: ‐ Type sudo adduser archimedes ‐ Hit Enter ‐ When prompted, type in your password and hit Enter • Note: Your password will not be visible when you type. This is an Ubuntu security feature. • Remember, the sudo command will only work if your are using an account with root permissions ‐ When prompted, type a password and any other details you wish to add to the user account ‐ Hit Enter 20 The sudo Command (cont.)
  • 22. © Air Force Association • The sudo su command is a variation of the sudo command ‐ It tells the command line that you want to run all of the subsequent commands in your current session as root, so that you do not have to enter the sudo command and your password each time • Try adding “riemann“ as a user on your system using the sudo su command: – Exit the Terminal and then restart it – Type sudo su – Hit Enter – When prompted, type in your password – Type adduser riemann – Hit Enter – Type a password and any other details you want to add to the user’s account – Hit Enter 21 The sudo su Command
  • 23. © Air Force Association • To check that accounts for “archimedes” and “riemann” were created when you entered your commands, click the gear icon on your Ubuntu menu bar and click the User Accounts button 22 Confirm Creation of User Accounts