Vous êtes sur la page 1sur 217

Comprehensive, hands-on t raining t hat solves real-world

problems

Red Hat Syst em


Administ ration I

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
DAY O N E DAY T W O DAY T H R E E DAY F O U R DAY F I V E

Int roduct i Working Processe Net workin File


on wit h Text s g System
Files (cont inue
Local d) Virt ualizin
Command Service Archiving
Line Users and s Files g
Groups Systems
Managing Permission OpenSS Soft war Revie
Files s H e w
Package
s
Get t ing Processe Log
Help s s

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
DAY O N E
In t r oduct io n
Introductio
n

Welcome to Class
Command ●
Course Objectives
and Str uct ure
Line
Orient ation to

Classroom Network
Managing ●
Internationalization
Files Getting

Help

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
W elco m e t o Class

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Co u rse Objectiv es and S t r uct u re

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
DAY O N E DAY T W O DAY T H R E E DAY F O U R DAY F I V E

Int roduct i Working Processe Net workin File


on wit h Text s g System
Files (cont inue
Local d) Virt ualizin
Command Service Archiving
Line Users and s Files g
Groups Systems
Managing Permission OpenSS Soft war Revie
Files s H e w
Package
s
Get t ing Processe Log
Help s s

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Or ien t a t io n t o Classr oom N e t wo rk

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
In t e rnationali za t io n

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
DAY O N E Chapt e r 1:
Introductio
Accessing the
n Command Line

Using the Local
Command ●
Console Using the

Line Desktop Using the
BASH Shell
Managing

Files Getting

Help

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Goal:

To login to a Linux system and run simple commands


using the shell.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Objectiv es:


Use Bash shell synt ax to enter commands at a Linux

console. Launch applications in a GNOME desktop

environment .
Use Bash features to run commands from a shell
prompt using fewer keystrokes.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
A ccessing t h e Co m m a n d - L i n e
U sing t h e Local Console

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Quiz:
Local Console A ccess Te rm s

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
A ccessing t h e Co m m a n d - L i n e
U sing t h e D esk t op

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
E xecuting Com man ds
U sing t h e B A S H S hell

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Quiz:
B A S H Comm ands and Keyboa rd
S h o rt cu ts

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Lab:
A ccessing t h e Co m m a n d Line

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
DAY O N E Chapt e r 2 :
Introductio
Managing Files From
n the Command Line

The Linux File System
Command ●
Hierarchy Locating Files by

Line Name


Managing Files
Managing Using Command-
Line Tools
Files Getting Matching File Names Using
Path Name Expansion
Help

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Goal:

To copy, move, create, delete, and organize files while


working from the Bash shell prompt .

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Objectiv es:


Identify the purpose for import ant directories on
a Linux system.

Specify files using absolute and relative path

names. Create, copy, move, and remove files and

directories using command-line utilities.
Match one or more file names using shell
expansion as argument s to shell commands.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
T he Linux File Sy st e m H i e ra rchy

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
Quiz:
File Sy st e m H i e ra rchy

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Loca t i n g File s by N a m e

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
Quiz:
Loca t in g File s and D i rect o ries

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Managing File s U sing Co m m a n d - L i n e Tools

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
Co m m a n d - L i n e File Ma n ag em e nt

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
M a tching File N a m es U sing
Pa t h N a m e E xpansion

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Quiz:
Pa t h N a m e E xpansion

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Lab:
Managing File s w i t h S hell E xpansion

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
DAY O N E Chapt e r 3 :
Introductio
Get ting Help in Red
n Hat Ent erprise Linux

Reading Document ation
Command Using man Command

Line Reading Document ation


Using pinfo Command

Managing Reading Documentat ion in


/usr/share/doc

Files Getting Getting Help From Red


Hat
Help

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Goal:

To resolve problems by using on-line help systems and


Red Hat support utilities.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Objectiv es:


Use the man Linux manual

reader. Use the pinfo GNU
Info reader.


Use the Red Hat Package
Manager (RPM) package
documentation.
Use the redhat-support-tool
command.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Reading Docu m e nt at i o n U sing
m a n Co m m a n d

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
U sing t h e m a n Co m m a n d

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Reading Docu m e nt a t io n
U sing pinfo Co m m a n d

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Reading Docu m e nt a t io n
U sing pinfo Co m m a n d

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
P r actic e:
U sing t h e pinfo Co m m a n d

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Reading Docu m e nt a t i o n
in / usr/ sh a re/ doc

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
V iewing Package Docu m e nt a t i o n

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Get t in g Help F r o m Red H a t

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
Cr ea t i n g and V iewing an S oS Repo rt

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
Lab:
V iewing and P r in t in g Help Docu m e nt at i o n

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
DAY T W O Chapt e r 4 :
Working Creating, Viewing,
with Text and Editing Text
Files
Files

Local
Users and Redirect ing Output to a

Groups File or Program

Permission ●
Editing Text Files from the
s Shell Prompt
Editing Text Files
Processes wit h a Graphical
Editor

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Goal:

To create, view, and edit text files from command


output or in an editor.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Objectiv es:


Redirect the text output of a program to a file or to
another program.

Edit existing text files and create new files from t he

shell
prompt with a text editor.
Copy text from a graphical window to a text file using
a text editor running in the graphical environment .

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Redirectin g Ou t p u t t o a File or P r o g ra m

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
Quiz:
I / O Redirect io n and P ipelines

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Editing Tex t File s f r o m t h e S hell P r om pt

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
P r actic e:
Editing File s w i t h V i m

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Editing Tex t File s w i t h a G raphical Ed i tor

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
P r actic e:
Copying Tex t B et ween W indows

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Lab:
Cr eat in g, V iewing, and, Editing Tex t File s

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
DAY T W O Chapt e r 5 :
Working Managing Local
with Text Linux Users and
Files Groups

Local
● Users and Groups
Users and
Groups ● Gaining Superuser
● Access
Permission
s ● Managing Local User
Account s Managing Local
Processes
Group Account s Managing
User Passwords

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Goal:

To manage local Linux users and groups and


administer local password policies.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Objectiv es:


Explain the role of users and groups on a Linux
system and how they are understood by the

computer.


Run commands as the superuser to administer a Linux

system. Create, modify, lock, and delete locally defined
user account s.
Create, modify, and delete locally defined group
account s.
Lock account s manually or by set ting a password-
aging policy in the shadow password file.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
U se rs and G roups

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Quiz:
U se r and G roup Concept s

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Gaining S u p e ruse r A ccess

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
R unning Com mands as r oot

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Managing Local U se r A ccount s

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
Cr ea t i n g U se rs U sing
Co m m a n d - l in e Tools

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Managing Local G roup A ccount s

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
Managing G roups U sing
Co m m a n d - l in e
Tools

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Managing U se r Passwo rds

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
P r actic e:
Managing U se r Passwo rd A ging

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Lab:
Managing Local Linux U se rs and G roups

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
DAY T W O Chapt e r 6 :
Controlling Access t o
Working
with Text
Files with Linux File
Files
Local System Permissions

Linux File System
Users and Permissions
Groups ●

Permission Managing File System


s Permissions from the
Processe ●
Command Line
s Managing Default
Permissions and File
Access

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Goal:


To set Linux file system permissions on files and
interpret the security effect s of different permission
set tings.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Objectiv es:


Explain how the Linux file permissions model

works. Change the permissions and ownership
of files using command-line tools.

Configure a directory in which newly created files
are automatically writ able by members of the group
which owns
the directory, using special permissions and default
umask settings.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Linux File Sy st e m P e rmissions

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
Quiz:
In t e rp retin g File and D i rect o ry
P e rmissi
ons

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Managing File Sy st e m P e rmissions f r o m t h e
Co m m a n d Line

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
Managing File S ecu ri t y f r o m t h e
Co m m a n d Line

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Managing D efa u l t P e rmissions
and File A ccess

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
Cont r olling N ew File P e rmissions
and Ow n e rship

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Lab:
Cont r olling A ccess t o File s w i t h Linux File
Sy st e m P e rmissions

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
DAY T W O Chapt e r 7 :
Working Monitoring and
with Text Managing Linux
Files
Processes

Local
Users and

Processes
Groups ●
Controlling
Permission

Jobs Killing
s Processes
Monitoring
Processes Process
Activity

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Goal:

To evaluate and control processes running on a


Red Hat Enterprise Linux system.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Objectiv es:


List and interpret basic information about processes
running on the system.

Control processes in the shell's session using bash job


control.
Terminate and control processes using signals.
Monitor resource usage and system load due to
process activity.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r ocesses

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
Quiz:
P r ocesses

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Cont r olling J o b s

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
B ackg round and Fo re g round
P r ocesse
s

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Killing P r ocesses

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
Killing P r ocesses

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
M o n i to ring P r ocess A ct i v i ty

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
M o n i to ring P r ocess A ct i v i ty

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Lab:
M o n i to ring and Managing Linux P r ocesses

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
DAY T H R E E Chapt e r 8 :
Processe
Controlling Services
s and Daemons

Ident ifying
Services Automatically Started

System Processes
OpenSS
Controlling System
Services
H Logs

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Goal:

To control and monitor net work services and system


daemons using systemd.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Objectiv es:


List system daemons and net work services st arted by
systemd service and socket unit s.

Control system daemons and network
services using systemctl.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Ident i f ying A u to m a t ica ll y S t a r t ed Sy st e m
P r ocesses

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
Ident i f y t h e st a tus of sy st em d u n i ts

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Cont r olling Sy st e m S e r vices

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
U sing sy st e m ct l t o Ma n a g e
S e r vices

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Lab:
Cont r olling S e r vices and D aemons

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
DAY T H R E E Chapt e r 9 :
Processe
Configuring and
s Securing OpenSSH
Service

Services
Accessing the Remote

Command Line with
OpenSS
SSH

H Logs Configuring SSH Key-


based Authentication
Customizing SSH
Service Configuration

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Goal:

To configure secure command-line access on remote


systems using OpenSSH.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Objectiv es:


Log into a remote system using ssh to run commands
from a shell prompt .

Set up ssh to allow secure password-free logins by

using a
private authentication key file.
Customize sshd configuration to restr ict direct logins
as root or to disable password-based authentication.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
A ccessing t h e Re m ot e Co m m a n d Line
with SSH

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
A ccessing t h e Re m ot e
Co m m a n d -
Line

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Conf iguring S S H Key -b ased A ut he n tic a t i o n

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
U sing S S H Key -b ased A uth e n tic a t i o n

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Cust omizing S S H S e rvice Conf igura t io n

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
Rest r ict in g S S H Logins

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Lab:
Conf iguring and S ecu ring
OpenSS H
S e rvice

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
DAY T H R E E Chapt e r 10:
Analyzing and
Processe
s St oring Logs

System Log
Services ●
Architect ure Reviewing

OpenSS

Syslog Files
Reviewing systemd
H Logs ●
Journal Entr ies

Preserving the systemd
Journal Maint aining
Accurate Time

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Goal:

To locate and accurately interpret relevant system log


files for troubleshooting purposes.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Objectiv es:

Describe the basic syslog architect ure in Red Hat
Enterprise Linux 7.

Interpret entr ies in relevant syslog files to

troubleshoot problems or review system st atus.
Find and interpret log entries in the systemd

journal to
troubleshoot problems or review system st atus.
● Configure systemd-journald to store it s journal on
disk rather than in memory.
Maint ain accurate time synchronization and t ime
zone configuration to ensure correct timest amps in
system logs.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Sy st e m Log A rch i tect u re

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Quiz:
Sy st e m Logging Component s

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Reviewing Sy slog File s

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
Finding Log E nt r ies

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Reviewing sy st em d J o u rnal E nt r ies

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
Finding Event s w i t h journalct l

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r ese r ving t h e sy st em d J o u rnal

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
Conf igure a P e rsist ent
sy st e m d J o u rnal

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Ma i n t aining A ccu ra te T i m e

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Quiz:
A djust in g Sy st e m T i m e

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Lab:
A n a l yzing and S t o ring Logs

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
DAY F O U R Chapt e r 11:
Networking Managing Red Hat
Linux Ent erprise
Archiving Files Net working
Software Net working Concept s
Validating Net work
Packages Configuration Configuring
Net working with nmcli Editing
Network Configuration Files
Configuring host names and
Name Resolution

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Goal:

To configure basic IPv4 networking on Red Hat


Enterprise Linux systems.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Objectiv es:


Explain fundament al concept s of computer

net working. Test and review current network
configuration with basic utilities.

Manage network settings and devices with
nmcli and Net workManager.


Modify network set tings by editing the
configuration files. Configure and test system
hostname and name resolution.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
N e t wo rking Concept s

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
Quiz:
N e t wo rking Concept s

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
V alidating N e t wo rk Conf igura t i o n

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
E xamining N e t wo rk Conf igura t i o n

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Conf iguring N e t wo rking w i t h n m cli

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
Conf iguring N e t wo rking w i t h n m cli

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Editing N e t wo rk Conf igura t i o n File s

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
Editing N e t wo rk Conf igura t i o n File s

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Conf iguring host n a m e s and N a m e Resolution

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
Conf iguring host n a m e s
and N a m e Resolution

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Lab:
Managing Red H a t E nt e rp rise Linux
N e t wo rking

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
DAY F O U R Chapt e r 12:
Networking Archiving and
Copying Files
Archiving Files Bet ween Syst ems

Software Managing Compressed



t ar Archives
Packages Copying Files Between

Systems Securely
Synchronizing Files
Bet ween Systems
Securely

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Goal:

To archive and copy files from one system to


another.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Objectiv es:


Use tar to create new compressed archive files and
ext ract files from existing archive files.
Copy files securely to or from a remote system


running sshd.
Securely synchronize t he content s of a local file or
directory with a remote copy.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Managing Co m p ressed t a r A rchives

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
B acking U p and Rest o ring File s F r o m
a t a r A rchive

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Copying File s B et ween Sy st ems S ecu rely

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
Copying File s Ove r t h e N e t wo rk
W i t h scp

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Synch ronizing File s B et ween
Sy st em s S ecu rely

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
Syn ch ronizing T wo D i rect o ries
S ecu rely w i t h
r sync

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Lab:
A rchiving and Copying File s
B et ween Sy st em s

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
DAY F O U R Chapt e r 13:
Networking Inst alling and
Updating Sof tware
Archiving Files Packages

Software At t aching Systems to


Subscriptions for

Software Updates
Packages
RPM Software Packages

and YUM


Managing Software
Updates with yum
Enabling yum

Software
RH124-RHEL7-en-1- Copyright © Repositories
2014 Red
20140606 Hat, Inc.
Goal:

To download, install, update, and manage sof tware


packages from Red Hat and YUM package
repositories.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Objectiv es:

Register systems with your Red Hat account and
entitle t hem to software updates for installed

product s.
Explain what an RPM package is and how RPM

packages are used to manage software on a Red Hat
Enterprise Linux system.
● Find, inst all, and update sof tware packages using
the yum command.
● Enable and disable use of Red Hat or third-party
YUM
repositories.
Examine and install downloaded sof tware package
files.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
A t t aching Sy st em s t o S ubscr iptions for
S of t wa re U p d a tes

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
Quiz:
Red H a t S ubscr iptio n Ma na g em e nt

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
R P M S of t wa re Packages and Y u m

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Quiz:
R P M S of t wa re Packages

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Managing S of t wa re U p d a tes w i t h y u m

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
Inst alling and U pdating S of t wa re
with yum

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
E nabling y u m S of t wa re Reposi t o ries

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
E nabling S of t wa re Reposi t o ries

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
E xamining R P M Package File s

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
W o rking w i t h R P M Package File s

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Lab:
Inst alling and U pdating
S of t wa re
Packages

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
DAY F I V E Chapt e r 1 4 :
Accessing Linux
File System
File Syst ems
Virt ualized ●
Identifying File Systems
and Devices
Systems Review
Review ●
Mounting and Unmounting
File Systems

Making Links between

Files Locating Files on the
System

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Goal:

To access and inspect exist ing file systems on a


Red Hat Enterprise Linux system.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Objectiv es:


Identify the file system

hierarchy. Access the content s

of file systems.

Use hard links and symlinks to make multiple
names. Search for files on mounted file
systems.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Iden t i f ying File Sy st em s and D evices

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Quiz:
Iden t i f ying File Sy st em s and D evices

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Mo u nt in g and U nmounti n g File Sy st em s

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
Mo u nt in g and U nmounti n g
File
Sy st em s

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Making Links B et ween File s

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
Making Links B et ween File s

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Loca t i n g File s on t h e Sy st e m

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
P r actic e:
Loca t i n g File s on t h e Sy st e m

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Lab:
A ccessing Linux File Sy st ems

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
DAY F I V E
Chapt e r 1 5 :
File System Using Virt ualized
Syst ems
Virt ualized ●

Managing a Local
Systems Review ●
Virt ualization Host
Installing a New Virt ual
Machine

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Goal:

To create and use Red Hat Enterprise Linux virt ual


machines with Kernel-based Virt ual Machine (KVM)
and libvirt .

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Objectiv es:


Install a Red Hat Enterprise Linux system as a host for
running virt ual machines.

Perform an interactive install of Red Hat Enterprise
Linux on a virt ual machine.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Managing a Local V ir t ualiza t i o n H ost

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
Quiz:
Managing a Local V ir t ualiza t io n H ost

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Inst alling a N ew V ir t ual M a chine

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
RH124-RHEL7-en-1- Copyright © 2014 Red
20140606 Hat, Inc.
minimal Virtual
N achine
Fil Virtual Machine View Send
e Key

INSTALLATION RED HAT EN”ERPRISE LINUX 7.0


SUMNARY INSTALLA”ION

LOCALIZATI
ON
DATE & TINE KEYBOA
Arner/cas7/Vew York tiin RD
ezone English
LANGUAGE (U5)
SUPPORT
English (Ll½tea 5
tates)

SOFTWARE

SYSTEN

NETWORK & HOSTNAME


j /red (eth0) cor›nectea

RH124-RHEL7-en-1 Copyright © 2014 Red redh


-20140606 Hãt, InC.
minimal Virtual
N achine
Fil Virtual View Se nd
e Machine Key

CONFIGURATI RED HA” EN”ERPRISE LINUX 7.0


ON INS”ALLA”ION

USER
SETTINGS

lnstallinq setup (2/


3 19)

RH124-RHEL7-en-1 Copyright © 2014 Red Hãt, redh


-20140606 lnC.
P r actic e:
Inst alling a N ew V ir t ual M a chine

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Chapt e r Test :
U sing V ir t uali zed Sy st em s

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
DAY F I V E
Chapt e r 16:
File System Comprehensive
Review
Virt ualized

Systems Review
Review

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Goal:

To practice and demonstrate knowledge and skills


learned in Red Hat System Administration I.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Objectiv e:

Review course chapters to reinforce knowledge


and skills.

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
Co m p rehensiv e Review of
Sy st e m A dminist r a t io n I

RH124-RHEL7-en-1- Copyright © 2014 Red


20140606 Hat, Inc.
RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.