You are on page 1of 46

Learn

Linux in 3 Hours
Click to edit Master title style

Agenda
Agenda
Click to edit Master title style
•  Linux distributions
•  Installing Linux
•  Connecting to Linux
•  Exploring the Linux File System
•  Working with commands
•  Finding help about commands
•  Working with users and permissions
•  Verifying network operations
•  Managing software packages
•  Basic process management
•  Where to go from here
•  Q&A
Learn Linux in 3 Hours
Click to edit Master title style

About the Instructor


About your instructor
Click to edit Master title style
•  Linux user since 1992, Linux professional since 1996
•  Linux author, instructor and consultant since 1996
•  Author of
•  Beginning Linux System Administration
•  RHCSA Complete Video Course
•  LFCS Complete Video Course
•  Linux+/LPIC-1 Complete Video Course
•  RHCSA/RHCE Cert Guide
•  and many more, all on safaribooksonline.com
Learn Linux in 3 Hours
Click to edit Master title style

About you
Poll question 1
Click to edit Master title style
•  How would you rate your own Linux knowledge on a
scale 1-5?
•  1
•  2
•  3
•  4
•  5
Poll question 2
Click to edit Master title style
•  Do you have a favorite distribution?
•  not yet
•  Red Hat / CentOS / Fedora
•  Ubuntu /Linux Mint
•  Oracle
•  SUSE
•  Other
Poll question 3
Click to edit Master title style
•  Which job title applies to you best?
•  Systems administrator
•  Developer
•  Devops
•  Manager
•  Student
•  Other
Poll question 4
Click to edit Master title style
•  Which of the following topics would you like to learn
about in this course?
•  Working with commands and other Linux basics
•  User management
•  Permission management
•  Partitions and LVM
•  Service Management
Learn Linux in 3 Hours
Click to edit Master title style

1. Understanding
Distributions
Understanding Open Source
Click to edit Master title style
•  Linux is open source
•  Every developer and vendor can benefit from all work
that has been done in the open source community
•  "Give some, take some"
•  Linux is a leading platform on servers, Internet, Cloud,
IoT, embedded
•  The only environment where it's not leading is on the
end-users desktop
About Linux Distributions
Click to edit Master title style
•  There is no company behind Linux
•  Linux is open source and anybody can put together
some software in an installation disk
•  That's what we call a distribution
•  You better make sure that your favorite distribution is
common and widely supported
Most common Linux Distributions
Click to edit Master title style
•  Red Hat and Family
•  CentOS
•  Fedora
•  Ubuntu and Family
•  Linux Mint
•  Debian
•  SUSE and Family
•  SUSE Leap
Learn Linux in 3 Hours
Click to edit Master title style

2. Installing CentOS
How to install Linux?
Click to edit Master title style
•  To start working with Linux, you'll need to put it on
your computer
•  Instances in cloud are deployed, in all other cases you'll
need to install it
•  Install on physical hardware or in a virtual machine
•  Recommended Requirements
•  1GB of RAM
•  10GB disk spaces
•  Connectivity to the Internet
Learn Linux in 3 Hours
Click to edit Master title style

3. Connecting to Linux
Connecting to Linux
Click to edit Master title style
•  There are different ways to connect to Linux
•  Local graphical login
•  Local console login
•  SSH
•  How your Linux is going to be accessed, depends on
how your Linux is provided
•  And there are different user accounts, determining
your level of access to Linux tools
•  Use sudo for secure administration tasks
Lab: using sudo
Click to edit Master title style
•  As your current user, use sudo to run the command
useradd linda
Learn Linux in 3 Hours
Click to edit Master title style

4. Exploring the Linux File


System
Why does this matter?
Click to edit Master title style
•  On Linux everything is a file
•  Even devices are addressed as files!
•  So it's important to know where you can find stuff
Lab: Finding Files
Click to edit Master title style
•  The motd file is a configuration file. Where can you
find it?
Learn Linux in 3 Hours
Click to edit Master title style

5. Working with Linux


Commands
Working with Linux Commands
Click to edit Master title style
•  To unleash all that Linux has to offer, you'll need CLI
access
•  GUI offers only a limited subset of the command line
•  CLI knowledge is a first step to more advanced Linux
usage: Bash or Python scripting, Ansible or Puppet
configuration management and more
•  Linux has SO many commands to offer and they are the
essential building blocks of everything else
Essential Command Line Skills
Click to edit Master title style
•  Commands are interpreted by the bash shell
•  Case matters
•  Options and Arguments
•  Bash command line completion
•  Bash history
•  Let's have a look!
Lab: Using History
Click to edit Master title style
•  Use history to repeat the last command that started
with ls
•  Use history to repeat the last command that contains
the text "ls"
Learn Linux in 3 Hours
Click to edit Master title style

6. Finding Help about Linux


Commands
Finding Help
Click to edit Master title style
•  Why does this matter?
•  Too many commands, too many options
•  Different help systems are available
•  command --help
•  man and man -k
•  and others that don't matter that much
•  what about Google?
•  Best practice: focus on man -k and command --help
•  Don't forget bash Tab-completion!
Lab: using help
Click to edit Master title style
•  Find the appropriate command to set your system time
1 minute ahead
Learn Linux in 3 Hours
Click to edit Master title style

7. Working with Users and


Permissions
Understanding Users and Permissions
Click to edit Master title style
•  Why does this matter?
•  You won't find many user accounts for people on Linux.
You will find that every service is using user accounts as
well as group membership to get access to system
resources
User Fundamentals
Click to edit Master title style
•  System users and people users are defined in /etc/passwd and /etc/
shadow
•  user[Tab][Tab] and group[Tab][Tab] for managing accounts
•  Don't get overwhelmed by the many options!
•  passwd to set a password, or to lock an account
•  Home directories in /home may contain environment files
Permission Fundamentals
Click to edit Master title style
•  Ownership set the basic environment for working with permissions
•  There are three sets of permissions
•  Basic permissions: Read, write and execute
•  Advanced permissions: SUID, SGID and Sticky bit
•  Access Control lists for when multiple entities need to get access
•  Default permissions allow for one owner only
•  Set ownership with chown or chgrp
•  Set permissions with chmod
Lab: setting up a user environment
Click to edit Master title style
•  Create users lisa and linda and make sure they are a member of the
group students.
•  Create a shared group directory where members of the group
students are allowed to read and write files
•  Make sure that others has no access to this directory
Learn Linux in 3 Hours
Click to edit Master title style

8. Verifying Network
Operations
Verifying Network Operations
Click to edit Master title style
•  Why does this matter?
•  Well...
•  There are many differences between distributions in
how network information is set
•  All distributions use ip as the main tool to verify IP
based settings
•  Do NOT use ifconfig anymore!
Networking Key Tools
Click to edit Master title style
•  ip addr show
•  ip link show
•  ip route show
•  cat /etc/resolv.conf
•  ping
•  dig
•  ss
•  nmap
Lab: Verifying Network Connectivity
Click to edit Master title style
•  Use the appropriate tools to get information about your current
network configuration
•  Can you see if you're using a DHCP server?
•  Test connectivity to a server on the Internet
Learn Linux in 3 Hours
Click to edit Master title style

9. Installing Software
Packages
Installing Software Packages
Click to edit Master title style
•  All Linux distributions are using meta package handlers
that access repositories which contain the packages
•  Many different solutions exist to work with packages in
repositories: yum, dnf, zypper, apt
•  And some legacy solutions exist to work with individual
packages
•  Don't use them except for querying installed packages
Lab: Install software
Click to edit Master title style
•  Install the package that contains the file sepolicy
Learn Linux in 3 Hours
Click to edit Master title style

10. Basic Process


Management
Basic Process Management
Click to edit Master title style
•  It's all about top!
Learn Linux in 3 Hours
Click to edit Master title style

Where to go from here


Where to go from here
Click to edit Master title style
•  Beginning Linux System Administration
•  Getting Certified
•  Distribution Independent
•  LFCS
•  Comptia Linux+ / LPIC-1
•  Red Hat RHCSA
My Titles on Safaribooksonline
Click to edit Master title style
•  Beginning Linux System Administration
•  RHCSA Complete Video Course with Virtual Machines
•  Linux Foundation Certified Sysadmin Complete Video
Course
•  Linux+ / LPIC-1 Complete Video Course
•  Red Hat RHCSA/RHCE Cert Guide
•  All available on safaribooksonline.com
•  Just look for my name: Sander van Vugt
Learn Linux in 3 Hours
Click to edit Master title style

Q&A

You might also like