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.