Red Hat RHCSA/RHCE 7 Cert Guide

Series
Pearson
Author
Sander van Vugt  
Publisher
Pearson
Cover
Softcover
Edition
1
Language
English
Total pages
1008
Pub.-date
September 2015
ISBN13
9780789754059
ISBN
0789754053


Product detail

Product Price CHF Available  
9780789754059
Red Hat RHCSA/RHCE 7 Cert Guide
65.00

Description

Red Hat RHCE®/RHCSA™ 7 Cert Guide has a single goal: to help students pass the newest versions of Red Hat's RHCE and RHCSA exams for Red Hat Enterprise Linux 7. The most comprehensive and time-efficient RHCE 7 / RHCSA 7 prep guide available, it's an extraordinarily cost-effective alternative to expensive training. Written by a leading Red Hat trainer, consultant, and speaker, it presents focused, straight-to-the-point coverage of every exam topic.

Features

  • Authoritative coverage by one of the world's leading Red Hat experts, consultants, and instructors
  • Fully reflects the new RHCE 7 and RHCSA 7 exams, covering system configuration and management, operations, advanced administration, network services, security, and more
  • Test-taking strategies, tips, notes, and two full sample exams delivered by the advanced PCPT test engine

Table of Contents

Introduction xxxix

Part 1: RHCSA 3

Chapter 1 Installing Red Hat Enterprise Linux Server 7

“Do I Know This Already?” Quiz 7

Foundation Topics 11

Preparing to Install Red Hat Enterprise Linux 11

  What Is Red Hat Enterprise Linux 7 Server? 11

  Getting the Software 12

  Using CentOS 12

  Other Distributions 13

  Understanding Access to Repositories 13

Understanding Red Hat Enterprise Linux 7 Server Variants and Add-Ons 14

  Setup Requirements 15

  Course Environment Description 16

Performing a Manual Installation 17

Summary 29

Exam Preparation Tasks 29

  Review All Key Topics 29

  Define Key Terms 30

Review Questions 30

End-of-Chapter Labs 30

  Lab 1.1 31

Chapter 2 Using Essential Tools 33

“Do I Know This Already?” Quiz 33

Foundation Topics 36

Basic Shell Skills 36

  Executing Commands 36

  I/O Redirection 37

  Using Pipes 39

  History 40

  Bash Completion 42

Editing Files with vim 42

Understanding the Shell Environment 45

  Understanding Variables 45

  Environment Configuration Files 46

  Using /etc/motd and /etc/issue 46

Finding Help 47

  Using --help 48

  Using man 48

  Finding the Right man Page 48

  Updating mandb 50

  Using info 51

  Using /usr/share/doc Documentation Files 53

Summary 53

Exam Prep Tasks 53

  Review All Key Topics 53

  Complete Tables and Lists from Memory 53

  Define Key Terms 54

Review Questions 54

End-of-Chapter Labs 54

  Lab 2.1 55

Chapter 3 Essential File Management Tools 57

Do I Know This Already Quiz 57

Foundation Topics 60

Working with the File System Hierarchy 60

  Defining the File System Hierarchy 60

  Understanding Mounts 61

Managing Files 66

  Working with Wildcards 67

  Managing and Working with Directories 67

  Working with Absolute and Relative Pathnames 68

  Listing Files and Directories 69

  Copying Files 70

  Moving Files 71

  Deleting Files 71

Using Links 73

  Understanding Hard Links 73

  Understanding Symbolic Links 74

  Creating Links 74

  Removing Links 75

Working with Archives and Compressed Files 76

  Managing Archives with tar 77

  Using Compression 78

Summary 80

Exam Preparation Tasks 80

  Review All Key Topics 80

  Complete Tables and Lists from Memory 81

  Define Key Terms 81

    Review Questions 81

End-of-Chapter Labs 82

  Lab 3.1 82

Chapter 4 Working with Text Files 85

“Do I Know This Already?” Quiz 85

Foundation Topics 88

Using Common Text File-Related Tools 88

  Doing More with Less 88

  Showing File Contents with cat 89

  Displaying the First or Last Lines of a File with head and tail 90

  Filtering Specific Columns with cut 91

  Sorting File Contents and Output with sort 91

  Counting Lines, Words, and Characters with wc 93

A Primer to Using Regular Expressions 93

  Using Line Anchors 94

  Using Escaping in Regular Expressions 95

  Using Wildcards and Multipliers 95

Using grep to Analyze Text 96

Working with Other Useful Text Processing Utilities 97

Summary 99

Exam Preparation Tasks 99

  Review All Key Topics 99

  Complete Tables and Lists from Memory 99

  Define Key Terms 100

Review Questions 100

End-of-Chapter Labs 100

  Lab 4.1 100

Chapter 5 Connecting to Red Hat Enterprise Linux 7 103

“Do I Know This Already?” Quiz 103

Foundation Topics 106

Working on Local Consoles 106

  Logging In to a Local Console 106

  Switching Between Terminals in a Graphical Environment 107

  Working with Multiple Terminals in a Nongraphical Environment 108

  Understanding Pseudo Terminal Devices 109

  Booting, Rebooting, and Shutting Down Systems 110

Using SSH and Related Utilities 112

  Accessing Remote Systems Using SSH 112

  Using Graphical Applications in an SSH Environment 114

  Securely Transferring Files Between Systems 115

  Configuring Key-Based Authentication for SSH 116

  Using Passphrases or Not? 117

  Using the screen Command 118

Summary 119

Exam Preparation Tasks 120

  Review All Key Topics 120

  Define Key Terms 120

Review Questions 120

End-of-Chapter Labs 121

  Lab 5.1 121

Chapter 6 User and Group Management 123

“Do I Know This Already?” Quiz 123

Foundation Topics 126

Different User Types 126

  Users on Linux 126

  Working as Root 126

  Using su 127

  sudo 128

  PolicyKit 128

Managing User Accounts 129

  System and Normal Accounts 129

  Creating Users 132

  Managing User Properties 134

  Configuration Files for User Management Defaults 134

  Managing Password Properties 135

  Creating a User Environment 136

Creating and Managing Group Accounts 137

  Understanding Linux Groups 137

  Creating Groups 138

  Managing Group Properties 139

Logging In Through an External Authentication Service 140

  Understanding LDAP 140

  Making the Authentication Platform Available 142

  Configuring RHEL 7 for LDAP Authentication 142

  Managing nslcd 143

  Managing sssd 144

Summary 146

Exam Preparation Tasks 146

  Review All Key Topics 146

  Complete Tables and Lists from Memory 147

  Define Key Terms 147

Review Questions 147

End-of-Chapter Labs 148

  Lab 6.1 148

  Lab 6.2 148

Chapter 7 Configuring Permissions 151

“Do I Know This Already?” Quiz 151

Foundation Topics 155

Managing File Ownership 155

  Displaying Ownership 155

  Changing User Ownership 156

  Changing Group Ownership 156

  Understanding Default Ownership 157

Managing Basic Permissions 158

  Understanding Read, Write, and Execute Permissions 158

  Applying Read, Write, and Execute Permissions 159

Managing Advanced Permissions 161

  Understanding Advanced Permissions 161

  Applying Advanced Permissions 164

Managing ACLs 165

  Understanding ACLs 166

  Preparing Your File System for ACLs 166

  Changing and Viewing ACL Settings with setfacl and getfacl 166

  Working with Default ACLs 168

Setting Default Permissions with umask 169

Working with User Extended Attributes 170

Summary 172

Exam Preparation Tasks 172

  Review All Key Topics 172

  Define Key Terms 173

Review Questions 173

End-of-Chapter Labs 173

  Lab 7.1 173

Chapter 8 Configuring Networking 177

“Do I Know This Already?” Quiz 177

Foundation Topics 180

Networking Fundamentals 180

  IP Addresses 180

  IPv6 Addresses 181

  Network Masks 181

  Binary Notation 182

  MAC Addresses 183

  Protocol and Ports 183

Managing Network Addresses and Interfaces 183

Validating Network Configuration 184

  Validating Network Address Configuration 185

  Validating Routing 187

  Validating the Availability of Ports and Services 187

Configuring Network Configuration with nmtui and nmcli 189

  Configuring the Network with nmcli 189

  Configuring the Network with nmtui 193

Working on Network Configuration Files 194

  Setting Up Hostname and Name Resolution 196

  Hostnames 196

DNS Resolving 198

Summary 200

Exam Prep Tasks 200

  Review All Key Topics 200

  Complete Tables and Lists from Memory 201

  Define Key Terms 201

Review Questions 201

End-of-Chapter Labs 201

  Lab 8.1 202

Chapter 9 Managing Processes 205

“Do I Know This Already?” Quiz 205

Foundation Topics 208

Introduction to Process Management 208

Managing Shell Jobs 208

  Running Jobs in the Foreground and Background 208

  Managing Shell Jobs 209

  Managing Parent Child Relations 211

Using Common Command-Line Tools for Process Management 211

  Understanding Processes and Threads 211

  Using ps to Get Process Information 212

  Adjusting Process Priority with nice 214

  Sending Signals to Processes with kill, killall, and pkill 216

     Using top to Manage Processes 218

Summary 220

Exam Preparation Tasks 220

  Review All Key Topics 220

  Complete Tables and Lists from Memory 221

  Define Key Terms 221

Review Questions 221

End-of-Chapter Labs 222

 Lab 9.1 222

Chapter 10 Working with Virtual Machines 225

“Do I Know This Already?” Quiz 225

Foundation Topics 228

Understanding RHEL 7 Virtualization 228

  Understanding KVM Virtualization 228

  Understanding QEMU 228

  Red Hat Beyond KVM 229

  Understanding the Role of Libvirtd 229

Making Your Server a KVM Host 231

  Checking Host Requirements 231

  Installing the KVM Software 232

  Understanding KVM Host Networking 233

Managing Virtual Machines 234

  Installing Virtual Machines 234

  Using KVM Virtual Machines 240

  Accessing Virtual Machines from a Text-Only Console 241

  Managing Virtual Machine Properties 242

  Managing Virtual Machines from the Command Line 243

  Monitoring Virtual Machine Activity from Top 244

Summary 245

Exam Prep Tasks 245

  Review All Key Topics 245

  Define Key Terms 246

Review Questions 246

End-of-Chapter Labs 247

  Lab 10.1 247

Chapter 11 Managing Software 249

“Do I Know This Already?” Quiz 249

Foundation Topics 252

Managing Software Packages with yum 252

  Understanding the Role of Repositories 252

  Specifying Which Repository to Use 253

  Understanding Repository Security 256

  Creating Your Own Repository 259

  Using yum 260

  Using yum to Find Software Packages 261

  Getting More Information About Packages 262

  Installing and Removing Software Packages 263

  Showing Lists of Packages 265

  Updating Packages 267

  Working with yum Package Groups 268

  Using yum History 270

Managing Software Packages with rpm 271

  Understanding RPM Filenames 272

  Querying the RPM Database 273

  Querying RPM Package Files 273

  Using repoquery 275

Summary 276

Exam Preparation Tasks 276

  Review All Key Topics 276

  Complete Tables and Lists from Memory 277

  Define Key Terms 277

Review Questions 277

End-of-Chapter Labs 278

  Lab 11.1 278

Chapter 12 Scheduling Tasks 281

“Do I Know This Already?” Quiz 281

Configuring cron to Automate Recurring Tasks 284

  Managing the cron Service 284

  Understanding cron Timing 285

  Managing cron Configuration Files 286

  Understanding the Purpose of anacron 288

  Managing cron Security 289

Configuring at to Schedule Future Tasks 290

Summary 291

Exam Preparation Tasks 291

  Review All Key Topics 291

  Define Key Terms 292

Review Questions 292

End-of-Chapter Labs 293

  Lab 12.1 293

Chapter 13 Configuring Logging 295

“Do I Know This Already?” Quiz 295

Foundation Topics 298

Understanding System Logging 298

  Understanding the Role of rsyslogd and journald 298

  Reading Log Files 300

  Understanding Log File Contents 300

  Live Log File Monitoring 302

  Using logger 302

Configuring rsyslogd 303

  Understanding rsyslogd Configuration Files 303

 Understanding rsyslog.conf Sections 304

  Understanding Facilities, Priorities, and Log Destinations 304

Rotating Log Files 308

Working with journald 310

  Using journalctl to Find Events 310

  Preserving the systemd Journal 314

Summary 316

Exam Prep Tasks 316

  Review All Key Topics 316

  Define Key Terms 316

Review Questions 317

End-of-Chapter Labs 317

  Lab 13.1 317

Chapter 14 Managing Partitions 319

“Do I Know This Already?” Quiz 319

Understanding MBR and GPT Partitions 322

  Understanding the MBR Partitioning Scheme 322

  Understanding the Need for GPT Partitioning 323

  Understanding Storage Measurement Units 324

Managing Partitions and File Systems 324

  Creating MBR Partitions with fdisk 325

  Using Extended and Logical Partitions on MBR 329

  Creating GPT Partitions with gdisk 330

  Creating File Systems 334

  Changing File System Properties 336

  Adding Swap Partitions 338

  Adding Swap Files 339

Mounting File Systems 339

  Manually Mounting File Systems 340

  Using Device Names, UUIDs, or Disk Labels 340

  Automating File System Mounts Through /etc/fstab 341

Summary 344

Exam Preparation Tasks 344

  Review All Key Topics 344

  Complete Tables and Lists from Memory 345

  Define Key Terms 345

Review Questions 345

End-of-Chapter Labs 346

  Lab 14.1 346

  Lab 14.2 346

Chapter 15 Managing LVM Logical Volumes 349

“Do I Know This Already?” Quiz 349

Foundation Topics 352

Understanding LVM 352

  LVM Architecture 352

  LVM Features 353

Creating LVM Logical Volumes 354

  Creating the Physical Volumes 355

  Creating the Volume Groups 359

  Creating the Logical Volumes and File Systems 360

  Understanding LVM Device Naming 361

Resizing LVM Logical Volumes 363

  Resizing Volume Groups 363

  Resizing Logical Volumes and File Systems 364

Summary 366

Exam Preparation Tasks 366

  Review All Key Topics 366

  Define Key Terms 366

Review Questions 366

End-of-Chapter Labs 367

  Lab 15.1 367

Chapter 16 Basic Kernel Management 369

“Do I Know This Already?” Quiz 369

Foundation Topics 372

Understanding the Role of the Linux Kernel 372

  Understanding the use of Kernel Threads and Drivers 372

  Analyzing What the Kernel Is Doing 374

Working with Kernel Modules 375

  Understanding Hardware Initialization 376

  Managing Kernel Modules 378

  Checking Driver Availability for Hardware Devices 381

  Managing Kernel Module Parameters 383

Upgrading the Linux Kernel 384

Summary 384

Exam Preparation Tasks 384

  Review All Key Topics 384

  Define Key Terms 385

Review Questions 385

End-of-Chapter Labs 386

  Lab 16.1 386

Chapter 17 Configuring a Basic Apache Server 389

“Do I Know This Already?” Quiz 389

Foundation Topics 392

Configuring a Basic Apache Server 392

  Installing the Required Software 392

  Identifying the Main Configuration File 392

Creating Web Server Content 395

Understanding Apache Configuration Files 397

Creating Apache Virtual Hosts 398

Summary 400

Exam Preparation Tasks 401

  Review All Key Topics 401

  Define Key Terms 401

Review Questions 401

End-of-Chapter Labs 402

  Lab 17.1 402

Chapter 18 Managing and Understanding the Boot Procedure 405

“Do I Know This Already?” Quiz 405

Foundation Topics 408

Working with Systemd 408

  Understanding Systemd 408

  Managing Units Through Systemd 413

Working with GRUB 2 420

  Understanding GRUB 2 420

  Modifying Default GRUB 2 Boot Options 423

Summary 424

Exam Prep Tasks 424

  Review All Key Topics 424

  Complete Tables and Lists from Memory 425

  Define Key Terms 425

Review Questions 425

End-of-Chapter Labs 426

  Lab 18.1 426

  Lab 18.2 426

Chapter 19 Troubleshooting the Boot Procedure 429

“Do I Know This Already?” Quiz 429

Foundation Topics 432

Understanding the RHEL 7 Boot Procedure 432

Passing Kernel Boot Arguments 434

  Accessing the Boot Prompt 434

  Starting a Troubleshooting Target 435

Using a Rescue Disk 436

  Restoring System Access Using a Rescue Disk 436

  Reinstalling GRUB Using a Rescue Disk 439

  Re-Creating the Initramfs Using a Rescue Disk 439

Fixing Common Issues 441

  Reinstalling GRUB 2 441

  Fixing the Initramfs 442

  Recovering from File System Issues 442

  Resetting the Root Password 443

Recovering Access to a Virtual Machine 444

Summary 446

Exam Prep Tasks 446

  Review All Key Topics 446

  Complete Tables and Lists from Memory 446

  Define Key Terms 447

Review Questions 447

End-of-Chapter Labs 448

  Lab 19.1 448

Chapter 20 Using Kickstart 451

“Do I Know This Already?” Quiz 451

Foundation Topics 454

Setting Up an Installation Server 454

  Configuring a Network Server as Installation Server 454

Setting Up a TFTP and DHCP Server for PXE Boot 455

  Installing the TFTP Server 456

  Configuring DHCP for PXE Boot 457

  Creating the TFTP PXE Server Content 458

Creating a Kickstart File 462

  Using a Kickstart File to Perform an Automated Installation 462

  Modifying the Kickstart File with system-config-kickstart 464

  Making Manual Modifications to the Kickstart File 467

Summary 469

Exam Preparation Tasks 470

  Review All Key Topics 470

  Define Key Terms 470

Review Questions 470

End-of-Chapter Labs 471

  Lab 20.1 471

Chapter 21 Managing SELinux 473

“Do I Know This Already?” Quiz 474

Foundation Topics 477

Understanding SELinux Working and Modes 477

Understanding Context Settings and the Policy 481

  Monitoring Current Context Labels 481

  Setting Context Types 483

  Finding the Context Type You Need 486

Restoring Default File Contexts 487

Using Boolean Settings to Modify SELinux Settings 489

Diagnosing and Addressing SELinux Policy Violations 491

  Making SELinux Analyzing Easier 492

Summary 494

Exam Prep Tasks 494

  Review All Key Topics 494

  Complete Tables and Lists from Memory 495

  Define Key Terms 495

Review Questions 495

End-of-Chapter Labs 496

  Lab 21.1 496

Chapter 22 Configuring a Firewall 499

“Do I Know This Already?” Quiz 499

Foundation Topics 502

Understanding Linux Firewalling 502

  Understanding Previous Solutions 502

  Understanding Firewalld 502

  Understanding Firewalld Zones 503

  Understanding Firewalld Services 504

    Working with Firewalld 505

  Working with Firewall-cmd 506

  Working with Firewall-config 508

Summary 511

Exam Prep Tasks 511

Key Topics 511

  Define Key Terms 512

  Complete Tables and Lists from Memory 512

Review Questions 512

End-of-Chapter Labs 513

Chapter 23 Configuring Remote Mounts and FTP 515

“Do I Know This Already?” Quiz 515

Foundation Topics 519

Mounting NFS Shares 519

  Understanding NFS Security Options 519

  Understanding Kerberos Requirements 520

  RHEL 7 NFS Support 521

  Mounting the NFS Share 521

Mounting SMB File Systems 522

  Discovering SMB Shares 523

  Mounting SMB Shares 525

  Authenticating to SMB Shares 525

  Accessing Samba Shares Through the Graphical Interface 526

Mounting Remote File Systems Through fstab 528

  Mounting NFS Shares Through fstab 528

  Mounting SMB Shares Through fstab 529

Using Automount to Mount Remote File Systems 530

  Understanding Automount 530

  Configuring Automount for NFS 531

  Using Wildcards in Automount 532

  Using Automount to Mount SMB Shares 533

Configuring an FTP Server 533

Summary 535

Exam Preparation Tasks 535

  Review All Key Topics 535

  Complete Tables and Lists from Memory 536

  Define Key Terms 536

Review Questions 536

End-of-Chapter Labs 537

  Lab 23.1 537

Chapter 24 Configuring Time Services 539

“Do I Know This Already?” Quiz 539

Foundation Topics 542

Understanding Local Time 542

Using Network Time Protocol 543

Managing Time on Red Hat Enterprise Linux 543

  Using date 544

  Using hwclock 544

  Using timedatectl 545

  Managing Time Zone Settings 548

Using Graphical Tools to Manage Time 550

Summary 551

Exam Prep Tasks 551

  Review All Key Topics 551

  Complete Tables and Lists from Memory 551

  Define Key Terms 552

Review Questions 552

End-of-Chapter Labs 552

  Lab 24.1 552

Part 2 RHCE 555

Chapter 25 Configuring External Authentication and Authorization 557

“Do I Know This Already?” Quiz 557

Foundation Topics 560

Understanding Remote Authentication 560

Understanding Kerberos Basics 561

 Understanding Kerberos Authentication 561

  Understanding Kerberos Principals 563

Configuring LDAP Authentication with Kerberos Authorization 564

  Using nslcd or sssd as the Authentication Backend Service 568

  Setting Up External Authentication 569

  Using an IPA Server or Active Directory 572

Summary 572

Exam Preparation Tasks 573

  Review All Key Topics 573

  Complete Tables and Lists from Memory 573

  Define Key Terms 573

Review Questions 573

End-of-Chapter Labs 574

  Lab 25.1 574

Chapter 26 Configuring an iSCSI SAN 577

“Do I Know This Already” Quiz 578

Foundation Topics 581

Understanding iSCSI 581

  Comparing SAN Solutions 581

  Software Versus Hardware iSCSI SAN 582

  iSCSI SAN Architecture 582

  iSCSI SAN Terminology 583

Setting Up the iSCSI Target 585

  Opening the Firewall 594

Setting Up the iSCSI Initiator 596

  Setting the iSCSI Initiatorname 596

  Performing the Discovery 596

Making the Connection 598

  Making iSCSI Connections Persistent 600

Troubleshooting iSCSI 602

Summary 603

Exam Preparation Tasks 603

  Review All Key Topics 603

  Complete Tables and Lists from Memory 603

     Define Key Terms 604

Review Questions 604

End-of-Chapter Labs 604

  Lab 26.1 604

  Lab 26.2 605

  Lab 26.3 605

Chapter 27 System Performance Reporting 607

“Do I Know This Already?” Quiz 607

Foundation Topics 610

Understanding top Performance Data 610

  Understanding Load Average 610

  CPU Performance Data 611

  Memory Usage 612

  Understanding Swap Usage 613

  Process Memory Usage 615

  Customizing top Display 615

Using iostat, vmstat, and pidstat 616

  Using iostat 617

  Using vmstat 618

  Using pidstat 620

Configuring sar 621

Summary 622

Exam Preparation Tasks 622

  Review All Key Topics 622

  Complete Tables and Lists from Memory 623

  Define Key Terms 623

Review Questions 623

End-of-Chapter Labs 624

Chapter 28 System Optimization Basics 627

“Do I Know This Already?” Quiz 627

Foundation Topics 630

Understanding System Optimization Basics 630

Understanding the /proc File System 631

  Using /proc to Analyze Performance 631

  Using /proc/sys to Tune Linux Performance 633

Using sysctl to Automate System Optimization Parameters 635

Summary 637

Exam Preparation Tasks 638

  Review All Key Topics 638

  Complete Tables and Lists from Memory 638

  Define Key Terms 638

Review Questions 639

End-of-Chapter Labs 639

  Lab 28.1 639

Chapter 29 Configuring Advanced Log Features 641

“Do I Know This Already?” Quiz 641

Foundation Topics 644

Understanding rsyslogd Modules 644

  Understanding the Need for Modules 644

  Using Modules in rsyslog Configuration 645

Connecting journald to rsyslog 646

Configuring Remote Logging 648

  Understanding the Need for Remote Log Servers 648

  Configuring Remote Logging 649

Summary 651

Exam Preparation Tasks 651

  Review All Key Topics 651

  Complete Tables and Lists from Memory 651

  Define Key Terms 651

Review Questions 652

End-of-Chapter Labs 652

  Lab 29.1 652

Chapter 30 Configuring Routing and Advanced Networking 655

“Do I Know This Already?” Quiz 655

Foundation Topics 658

Configuring Aggregated Network Interfaces 658

  Using Bonding 658

  Using Teaming 663

  Configuring Network Teams 663

  Looking Behind the Teaming Configuration 666

  Troubleshooting Network Teaming 671

Configuring IPv6 Addresses 673

  Understanding IPv6 Addresses 673

  Managing IPv6 Address Configurations 675

  Troubleshooting IPv6 676

Routing IP Traffic 677

  Enabling Routing 677

  Configuring Custom Routes 678

Summary 679

Exam Preparation Tasks 679

  Review All Key Topics 679

  Complete Tables and Lists from Memory 680

  Define Key Terms 680

Review Questions 680

End-of-Chapter Labs 681

  Lab 30.1 681

Chapter 31 An Introduction to Bash Shell Scripting 683

“Do I Know This Already?” Quiz 683

Foundation Topics 686

Understanding Shell Scripting Core Elements 686

Using Variables and Input 687

  Using Positional Parameters 688

  Working with Variables 689

Using Conditional Loops 691

  Working with if then else 692

  Using || and && 693

  Applying for 693

  Understanding while and until 695

  Understanding case 696

  Bash Shell Script Debugging 697

Summary 698

Exam Preparation Tasks 698

  Review All Key Topics 698

  Define Key Terms 699

Review Questions 699

End-of-Chapter Labs 699

  Lab 31.1 699

Chapter 32 Advanced Firewall Configuration 701

“Do I Know This Already?” Quiz 701

Foundation Topics 705

Excluding Iptables Services 705

Creating Firewalld Services 706

Configuring Firewalld Rich Rules 708

  Rich Rule Syntax 708

  Ordering 709

  Managing Rich Rules 709

  Logging with Rich Rules 711

Configuring Network Address Translation 711

  Configuring Masquerading 712

  Configuring Port Forwarding 713

Summary 715

Exam Preparation Tasks 716

  Review All Key Topics 716

  Complete Tables and Lists from Memory 716

  Define Key Terms 716

Review Questions 716

End-of-Chapter Labs 717

  Lab 32.1 717

Chapter 33 Managing Advanced Apache Services 719

“Do I Know This Already?” Quiz 719

Foundation Topics 723

Revising Apache Basics 723

  Essential Apache Parameters 723

  Revising Apache SELinux-Related Settings 725

  Configuring Write Access to the DocumentRoot 726

Configuring TLS Security 727

  Understanding TLS Security 728

  Configuring Apache for Using TLS Certificates 729

Deploying CGI Applications 731

  Using Common Gateway Interface 731

  Serving Dynamic PHP Content 732

  Using Dynamic Python Content 733

  Connecting to Databases 733

Configuring Private Directories 735

Summary 736

Exam Preparation Tasks 737

  Review All Key Topics 737

  Complete Tables and Lists from Memory 737

  Define Key Terms 737

Review Questions 737

End-of-Chapter Labs 738

  Lab 33.1 738

Chapter 34 Configuring DNS 741

“Do I Know This Already?” Quiz 741

Foundation Topics 744

Understanding DNS 744

  The DNS Hierarchy 744

  DNS Terminology 745

  Understanding DNS Lookups 745

  Understanding Resource Records 747

Setting Up a Cache-Only DNS Server 749

  Understanding the Need for DNSSEC 749

  Configuring the Unbound Caching Name Server 749

  Configuring Trust Anchors 751

Troubleshooting DNS Issues 752

  Dumping and Changing the Unbound Cache 753

  Using dig 753

  Analyzing Client Issues 755

Summary 755

Exam Preparation Tasks 755

  Review All Key Topics 755

  Complete Tables and Lists from Memory 756

  Define Key Terms 756

End-of-Chapter Labs 757

  Lab 34.1 757

Chapter 35 Configuring a MariaDB Database 759

“Do I Know This Already?” Quiz 759

Foundation Topics 762

MariaDB Base Configuration 762

Performing Simple Database Administration Tasks 768

  Managing Users 771

MariaDB Backup and Restore 773

Summary 776

Exam Preparation Tasks 777

  Review All Key Topics 777

  Complete Tables and Lists from Memory 777

  Define Key Terms 777

Review Questions 777

End-of-Chapter Labs 778

  Lab 35.1 778

Chapter 36 Configuring NFS 781

“Do I Know This Already?” Quiz 781

Foundation Topics 785

Setting Up the Basic NFSv4 Server 785

  Configuring the NFSv4 Server 785

  Accessing NFS Shares 787

  Testing Client Access with showmount 787

  Making NFS Mounts Persistent 788

  Configuring the Firewall for NFSv4 788

  Configuring SELinux for NFSv4 788

Configuring NFS Kerberos Authentication 791

  Understanding NFSv4 SELinux Transparency 795

Summary 796

Exam Prep Tasks 796

  Review All Key Topics 796

  Define Key Terms 797

Review Questions 797

End-of-Chapter Labs 798

  Lab 36.1 798

Chapter 37 Configuring Samba File Services 801

“Do I Know This Already?” Quiz 801

Foundation Topics 804

Setting Up SMB File Sharing 804

  Installing Samba 804

  Preparing Shared Directories on Linux 804

  Configuring /etc/samba/smb.conf 805

  Using Samba Users 808

Securing Samba 810

  Samba-Related SELinux Parameters 810

  Samba Firewalling 811

  Setting Up Kerberized Samba Shares 813

Accessing SMB Shares 815

  Discovering Samba Shares 815

  Mounting Samba Shares 816

  Performing a Multiuser Samba Mount 817

  Mounting Samba Shares Through automount 819

Summary 820

Exam Preparation Tasks 820

  Review All Key Topics 820

  Complete Tables and Lists from Memory 821

  Define Key Terms 821

Review Questions 821

End-of-Chapter Labs 822

  Lab 37.1 822

Chapter 38 Setting Up an SMTP Server 825

Do I Know This Already Quiz 825

Foundation Topics 828

Understanding Email Basics 828

  Understanding Roles in Mail Handling 828

  The Email Transmission Process 829

  Mail Server Solutions on RHEL 7 830

Configuring Postfix Parameters 832

  Understanding Essential Parameters 833

  Configuring Postfix to Relay Mail 835

Verifying a Working Mail Configuration 838

Summary 840

Exam Preparation Tasks 840

  Review All Key Topics 840

  Complete Tables and Lists from Memory 841

  Define Key Terms 841

Review Questions 841

End-of-Chapter Labs 842

  Lab 38.1 842

Chapter 39 Configuring SSH 845

“Do I Know This Already?” Quiz 845

Foundation Topics 848

Hardening the SSH Server 848

  Limiting Root Access 848

  Configuring Alternative Ports 849

  Modifying SELinux to Allow for Port Changes 849

  Limiting User Access 850

Using Other Useful sshd Options 851

  Session Options 852

  Connection Keepalive Options 852

Configuring Key-Based Authentication with Passphrases 853

Configuring SSH Tunnels 854

Summary 856

Exam Preparation Tasks 856

  Review All Key Topics 856

  Complete Tables and Lists from Memory 856

  Define Key Terms 856

Review Questions 857

End-of-Chapter Labs 857

  Lab 39.1 857

Chapter 40 Managing Time Synchronization 859

“Do I Know This Already?” Quiz 859

Foundation Topics 862

Understanding the Need for Synchronized Time 862

Setting Up Time Synchronization 862

  Understanding NTP 863

  Configuring chrony to Synchronize Time 864

Managing and Monitoring Time Synchronization with chronyc 866

Summary 871

Exam Preparation Tasks 871

  Review All Key Topics 871

  Complete Tables and Lists from Memory 872

  Define Key Terms 872

Review Questions 872

End-of-Chapter Labs 873

  Lab 40.1 873

Chapter 41 Final Preparation 875

Generic Tips 875

  Verifying Your Readiness 875

  Registering for the Exam 876

  On Exam Day 876

  During the Exam 877

  The Nondisclosure Agreement 878

Chapter 42 Theoretical Pre-Assessment Exams 881

RHCSA Theoretical Pre-Assessment Exam 881

RHCSA Practice Exam A 887

RHCSA Practice Exam B 891

RHCE Practice Exam A 895

RHCE Practice Exam B 899

9780789754059, TOC, 6/26/2015

 

Author

Sander van Vugt is an independent Linux trainer, author, and consultant living in the Netherlands. Sander is the author of the best-selling Red Hat Certified System Administrator (RHCSA) Complete Video Course and also of the Red Hat Certified Engineer (RHCE) Complete Video Course. He has also written numerous books about different Linux-related topics, and many articles for Linux publications around the world. Sander has been teaching Red Hat, SUSE, and LPI Linux classes since 1994. As a consultant, he specializes in Linux high-availability solutions and performance optimization. You can find more information about Sander on his website at http://www.sandervanvugt.com .

 

For more information about RHAT certification and additional resources, visit the author’s Red Hat Certification page at http://www.rhatcert.com/.