You are on page 1of 217

Comprehensive, hands-on training that solves real-world problems

Red Hat System Administration I

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


DAY ONE DAY TWO DAY THREE DAY FOUR DAY FIVE

Working with Processes


Introduction Networking File System
Text Files (continued)

Local Users Virtualizing


Command Line Services Archiving Files
and Groups Systems

Managing Files Permissions OpenSSH Software


Review
Packages

Getting Help Processes Logs

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


DAY ONE
Introduction
Introduction

Command Line ● Welcome to Class


● Course Objectives and
Managing Files Structure
● Orientation to Classroom
Getting Help Network
● Internationalization

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


Welcome to Class

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


Course Objectives and Structure

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


DAY ONE DAY TWO DAY THREE DAY FOUR DAY FIVE

Working with Processes


Introduction Networking File System
Text Files (continued)

Local Users Virtualizing


Command Line Services Archiving Files
and Groups Systems

Managing Files Permissions OpenSSH Software


Review
Packages

Getting Help Processes Logs

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


Orientation to Classroom Network

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


Internationalization

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


DAY ONE Chapter 1:
Accessing the Command
Introduction
Line
Command Line ● Using the Local Console
● Using the Desktop
Managing Files ● Using the BASH Shell

Getting Help

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


Goal:

To login to a Linux system and run simple commands using the


shell.

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


Objectives:

● Use Bash shell syntax 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-20140606 Copyright © 2014 Red Hat, Inc.


Accessing the Command-Line
Using the Local Console

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


Quiz:
Local Console Access Terms

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


Accessing the Command-Line
Using the Desktop

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


RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
Executing Commands
Using the BASH Shell

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


Quiz:
BASH Commands and Keyboard
Shortcuts

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


Lab:
Accessing the Command Line

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


DAY ONE Chapter 2:
Managing Files From the
Introduction
Command Line
Command Line ● The Linux File System Hierarchy
● Locating Files by Name
Managing Files ● Managing Files Using
Command-Line Tools
Getting Help
● Matching File Names Using Path
Name Expansion

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


Goal:

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


from the Bash shell prompt.

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


Objectives:

● Identify the purpose for important 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
arguments to shell commands.

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


The Linux File System Hierarchy

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


RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
Quiz:
File System Hierarchy

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


Locating Files by Name

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


RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
Quiz:
Locating Files and Directories

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


Managing Files Using Command-Line Tools

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


Practice:
Command-Line File Management

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


Matching File Names Using
Path Name Expansion

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


Quiz:
Path Name Expansion

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


Lab:
Managing Files with Shell Expansion

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


DAY ONE Chapter 3:
Getting Help in Red Hat
Introduction
Enterprise Linux
Command Line ● Reading Documentation Using
man Command
Managing Files ● Reading Documentation Using
pinfo Command
Getting Help ● Reading Documentation in
/usr/share/doc
● Getting Help From Red Hat

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


Goal:

To resolve problems by using on-line help systems and Red Hat


support utilities.

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


Objectives:

● 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-20140606 Copyright © 2014 Red Hat, Inc.


Reading Documentation Using
man Command

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


Practice:
Using the man Command

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


Reading Documentation
Using pinfo Command

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


Reading Documentation
Using pinfo Command

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


RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
Practice:
Using the pinfo Command

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


Reading Documentation
in /usr/share/doc

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


Practice:
Viewing Package Documentation

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


Getting Help From Red Hat

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


Practice:
Creating and Viewing an SoS Report

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


RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
Lab:
Viewing and Printing Help Documentation

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


DAY TWO Chapter 4:
Working with Creating, Viewing, and
Text Files Editing Text Files
Local Users ● Redirecting Output to a File or
and Groups
Program
Permissions ● Editing Text Files from the Shell
Prompt
Processes ● Editing Text Files with a
Graphical Editor

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


Goal:

To create, view, and edit text files from command output or in an


editor.

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


Objectives:

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


program.
● Edit existing text files and create new files from the 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-20140606 Copyright © 2014 Red Hat, Inc.


Redirecting Output to a File or Program

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


RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
Quiz:
I/O Redirection and Pipelines

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


Editing Text Files from the Shell Prompt

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


RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
Practice:
Editing Files with Vim

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


Editing Text Files with a Graphical Editor

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


RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
Practice:
Copying Text Between Windows

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


Lab:
Creating, Viewing, and, Editing Text Files

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


DAY TWO Chapter 5:
Working with Managing Local Linux
Text Files Users and Groups
Local Users ● Users and Groups
and Groups
● Gaining Superuser Access
Permissions ● Managing Local User Accounts
Processes
● Managing Local Group Accounts
● Managing User Passwords

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


Goal:

To manage local Linux users and groups and administer local


password policies.

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


Objectives:

● 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 accounts.
● Create, modify, and delete locally defined group accounts.
● Lock accounts manually or by setting a password-aging policy
in the shadow password file.

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


Users and Groups

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


Quiz:
User and Group Concepts

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


Gaining Superuser Access

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


Practice:
Running Commands as root

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


Managing Local User Accounts

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


Practice:
Creating Users Using
Command-line Tools

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


Managing Local Group Accounts

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


Practice:
Managing Groups Using
Command-line Tools

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


Managing User Passwords

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


RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
Practice:
Managing User Password Aging

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


Lab:
Managing Local Linux Users and Groups

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


DAY TWO Chapter 6:
Controlling Access to Files
Working with with Linux File System
Text Files
Permissions
Local Users ● Linux File System Permissions
and Groups
● Managing File System
Permissions Permissions from the Command
Line
Processes ● Managing Default Permissions
and File Access

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


Goal:

● To set Linux file system permissions on files and interpret the


security effects of different permission settings.

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


Objectives:

● 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 writable by members of the group which owns
the directory, using special permissions and default umask
settings.

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


Linux File System Permissions

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


RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
Quiz:
Interpreting File and Directory
Permissions

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


Managing File System Permissions from the
Command Line

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


Practice:
Managing File Security from the
Command Line

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


Managing Default Permissions
and File Access

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


Practice:
Controlling New File Permissions
and Ownership

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


Lab:
Controlling Access to Files with Linux File
System Permissions

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


DAY TWO Chapter 7:
Working with Monitoring and Managing
Text Files Linux Processes
Local Users ● Processes
and Groups
● Controlling Jobs
Permissions ● Killing Processes
Processes
● Monitoring Process Activity

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


Goal:

To evaluate and control processes running on a Red Hat


Enterprise Linux system.

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


Objectives:

● 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-20140606 Copyright © 2014 Red Hat, Inc.


Processes

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


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

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


Controlling Jobs

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


Practice:
Background and Foreground
Processes

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


Killing Processes

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


Practice:
Killing Processes

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


Monitoring Process Activity

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


Practice:
Monitoring Process Activity

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


Lab:
Monitoring and Managing Linux Processes

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


DAY THREE Chapter 8:
Controlling Services and
Processes
Daemons
Services ● Identifying Automatically
Started System Processes
OpenSSH ● Controlling System Services

Logs

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


Goal:

To control and monitor network services and system daemons


using systemd.

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


Objectives:

● List system daemons and network services started by systemd


service and socket units.
● Control system daemons and network services using
systemctl.

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


Identifying Automatically Started System
Processes

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


Practice:
Identify the status of systemd units

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


Controlling System Services

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


Practice:
Using systemctl to Manage
Services

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


Lab:
Controlling Services and Daemons

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


DAY THREE Chapter 9:
Configuring and Securing
Processes
OpenSSH Service
Services ● Accessing the Remote
Command Line with SSH
OpenSSH ● Configuring SSH Key-based
Authentication
Logs ● Customizing SSH Service
Configuration

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


Goal:

To configure secure command-line access on remote systems


using OpenSSH.

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


Objectives:

● 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 restrict direct logins as root
or to disable password-based authentication.

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


Accessing the Remote Command Line
with SSH

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


Practice:
Accessing the Remote
Command-Line

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


Configuring SSH Key-based Authentication

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


Practice:
Using SSH Key-based Authentication

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


Customizing SSH Service Configuration

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


Practice:
Restricting SSH Logins

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


Lab:
Configuring and Securing
OpenSSH Service

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


DAY THREE Chapter 10:
Analyzing and Storing
Processes
Logs
Services ● System Log Architecture
● Reviewing Syslog Files
OpenSSH ● Reviewing systemd Journal
Entries
Logs
● Preserving the systemd Journal
● Maintaining Accurate Time

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


Goal:

To locate and accurately interpret relevant system log files for


troubleshooting purposes.

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


Objectives:
● Describe the basic syslog architecture in Red Hat Enterprise
Linux 7.
● Interpret entries in relevant syslog files to troubleshoot
problems or review system status.
● Find and interpret log entries in the systemd journal to
troubleshoot problems or review system status.
● Configure systemd-journald to store its journal on disk rather
than in memory.
● Maintain accurate time synchronization and time zone
configuration to ensure correct timestamps in system logs.

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


System Log Architecture

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


Quiz:
System Logging Components

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


Reviewing Syslog Files

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


Practice:
Finding Log Entries

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


Reviewing systemd Journal Entries

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


Practice:
Finding Events with journalctl

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


Preserving the systemd Journal

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


Practice:
Configure a Persistent
systemd Journal

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


Maintaining Accurate Time

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


Quiz:
Adjusting System Time

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


Lab:
Analyzing and Storing Logs

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


DAY FOUR Chapter 11:
Managing Red Hat Linux
Networking
Enterprise Networking
Archiving Files Networking Concepts
Validating Network Configuration
Software Packages
Configuring Networking with nmcli
Editing Network Configuration Files
Configuring hostnames and Name
Resolution

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


Goal:

To configure basic IPv4 networking on Red Hat Enterprise Linux


systems.

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


Objectives:

● Explain fundamental concepts of computer networking.


● Test and review current network configuration with basic
utilities.
● Manage network settings and devices with nmcli and
NetworkManager.
● Modify network settings by editing the configuration files.
● Configure and test system hostname and name resolution.

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


Networking Concepts

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


RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
Quiz:
Networking Concepts

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


Validating Network Configuration

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


Practice:
Examining Network Configuration

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


Configuring Networking with nmcli

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


Practice:
Configuring Networking with nmcli

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


Editing Network Configuration Files

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


Practice:
Editing Network Configuration Files

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


Configuring hostnames and Name Resolution

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


Practice:
Configuring hostnames
and Name Resolution

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


Lab:
Managing Red Hat Enterprise Linux
Networking

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


DAY FOUR Chapter 12:
Archiving and Copying
Networking
Files Between Systems
Archiving Files ● Managing Compressed tar
Archives
Software Packages ● Copying Files Between Systems
Securely
● Synchronizing Files Between
Systems Securely

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


Goal:

To archive and copy files from one system to another.

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


Objectives:

● Use tar to create new compressed archive files and extract


files from existing archive files.
● Copy files securely to or from a remote system running sshd.
● Securely synchronize the contents of a local file or directory
with a remote copy.

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


Managing Compressed tar Archives

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


Practice:
Backing Up and Restoring Files From
a tar Archive

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


Copying Files Between Systems Securely

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


Practice:
Copying Files Over the Network
With scp

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


Synchronizing Files Between
Systems Securely

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


Practice:
Synchronizing Two Directories
Securely with rsync

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


Lab:
Archiving and Copying Files
Between Systems

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


DAY FOUR Chapter 13:
Installing and Updating
Networking
Software Packages
Archiving Files ● Attaching Systems to
Subscriptions for Software
Software Packages Updates
● RPM Software Packages and
YUM
● Managing Software Updates
with yum
● Enabling yum Software
Repositories
● Examining RPM Package Files

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


Goal:

To download, install, update, and manage software packages


from Red Hat and YUM package repositories.

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


Objectives:
● Register systems with your Red Hat account and entitle them
to software updates for installed products.
● Explain what an RPM package is and how RPM packages are
used to manage software on a Red Hat Enterprise Linux
system.
● Find, install, and update software packages using the yum
command.
● Enable and disable use of Red Hat or third-party YUM
repositories.
● Examine and install downloaded software package files.

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


Attaching Systems to Subscriptions for
Software Updates

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


RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
Quiz:
Red Hat Subscription Management

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


RPM Software Packages and Yum

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


Quiz:
RPM Software Packages

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


Managing Software Updates with yum

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


Practice:
Installing and Updating Software
with yum

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


Enabling yum Software Repositories

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


Practice:
Enabling Software Repositories

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


Examining RPM Package Files

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


Practice:
Working with RPM Package Files

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


Lab:
Installing and Updating
Software Packages

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


DAY FIVE Chapter 14:
Accessing Linux File
File System
Systems
Virtualized Systems ● Identifying File Systems and
Devices
Review ● Mounting and Unmounting File
Systems
● Making Links between Files
● Locating Files on the System

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


Goal:

To access and inspect existing file systems on a Red Hat


Enterprise Linux system.

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


Objectives:

● Identify the file system hierarchy.


● Access the contents of file systems.
● Use hard links and symlinks to make multiple names.
● Search for files on mounted file systems.

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


Identifying File Systems and Devices

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


Quiz:
Identifying File Systems and Devices

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


Mounting and Unmounting File Systems

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


Practice:
Mounting and Unmounting
File Systems

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


Making Links Between Files

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


Practice:
Making Links Between Files

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


Locating Files on the System

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


Practice:
Locating Files on the System

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


Lab:
Accessing Linux File Systems

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


DAY FIVE
Chapter 15:
File System Using Virtualized Systems

Virtualized Systems ● Managing a Local Virtualization


Host
Review ● Installing a New Virtual Machine

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


Goal:

To create and use Red Hat Enterprise Linux virtual machines


with Kernel-based Virtual Machine (KVM) and libvirt.

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


Objectives:

● Install a Red Hat Enterprise Linux system as a host for running


virtual machines.
● Perform an interactive install of Red Hat Enterprise Linux on a
virtual machine.

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


Managing a Local Virtualization Host

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


RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
Quiz:
Managing a Local Virtualization Host

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


Installing a New Virtual Machine

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


RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
RH124-RHEL7-en-1-20140606 Copyright © 2014 Red Hat, Inc.
Practice:
Installing a New Virtual Machine

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


Chapter Test:
Using Virtualized Systems

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


DAY FIVE
Chapter 16:
File System Comprehensive Review

Virtualized Systems

Review

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


Goal:

To practice and demonstrate knowledge and skills learned in Red


Hat System Administration I.

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


Objective:

Review course chapters to reinforce knowledge and skills.

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


Comprehensive Review of
System Administration I

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


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

You might also like