RH134
Goal: Run commands more efficiently by using advanced features of the Bash shell, shell scripts, and various Red Hat Enterprise Linux utilities.
Objectives:
Run commands more efficiently by using advanced features of the Bash shell, shell scripts, and various Red Hat Enterprise Linux utilities.
Run repetitive tasks with for loops, evaluate exit codes from commands and scripts, run tests with operators, and create conditional structures with if statements.
Create regular expressions to match data, apply regular expressions to text files with the grep command, and use grep to search files and data from piped commands.
grep
command.Goal: Schedule tasks to execute at a specific time and date.
Objectives:
Set up a command to run once at a future time.
Schedule commands to run on a repeating schedule with a user's crontab file.
Schedule commands to run on a repeating schedule with the system crontab file and directories.
Enable and disable systemd timers, and configure a timer that manages temporary files.
systemd
timer units can execute both the deferred and recurring jobs.Goal: Locate and accurately interpret system event logs for troubleshooting purposes.
Objectives:
Describe the basic Red Hat Enterprise Linux logging architecture to record events.
Interpret events in the relevant syslog files to troubleshoot problems or to review system status.
Find and interpret entries in the system journal to troubleshoot problems or review system status.
Configure the system journal to preserve the record of events when a server is rebooted.
Maintain accurate time synchronization with Network Time Protocol (NTP) and configure the time zone to ensure correct time stamps for events that are recorded by the system journal and logs.
systemd-journald
and rsyslog
services capture and write log messages to the appropriate files./var/log
directory contains log files.systemd
journals are temporary and do not persist across a reboot.chronyd
service helps to synchronize time settings with a time source.Goal: Archive and copy files from one system to another.
Objectives:
Archive files and directories into a compressed file with tar, and extract the contents of an existing tar archive.
Transfer files to or from a remote system securely with SSH.
Efficiently and securely synchronize the contents of a local file or directory with a remote server copy.
tar
command creates an archive file from a set of files and directories. This command also extracts and lists files from an archive file.tar
command provides a set of compression methods to reduce archive size.SSH
service also provides the sftp
command to transfer files securely to and from a remote system that runs the SSH
server.rsync
command securely and efficiently synchronizes files between two directories, of which either one can be on a remote system.Goal: Improve system performance by setting tuning parameters and adjusting the scheduling priority of processes.
Objectives:
Optimize system performance by selecting a tuning profile that the tuned daemon manages.
Prioritize or deprioritize specific processes, with the nice and renice commands.
Active performance profile
Select a preferred performance profile
Priorities and nice values as reported by the top command
tuned
service automatically modifies device settings to meet specific system needs based on a predefined selected tuning profile.tuned
service.nice
value of a process.nice
command assigns a priority to a process when it starts.renice
command modifies the priority of a running process.Goal: Protect and manage server security by using SELinux.
Objectives:
Explain how SELinux protects resources, change the current SELinux mode of a system, and set the default SELinux mode of a system.
Manage the SELinux policy rules that determine the default context for files and directories with the semanage fcontext command, and apply the context defined by the SELinux policy to files and directories with the restorecon command.
Activate and deactivate SELinux policy rules with the setsebool command, manage the persistent value of SELinux Booleans with the semanage boolean -l command, and consult man pages that end with _selinux to find useful information about SELinux Booleans.
Use SELinux log analysis tools and display useful information during SELinux troubleshooting with the sealert command.
SELinux file context
SELinux decision-making flow
SELinux policy and errors in the web console
getenforce
and setenforce
commands to manage the SELinux mode of a system.semanage
command manages SELinux policy rules. The restorecon
command applies the context that the policy defines.sealert
command displays useful information to help with SELinux troubleshooting.Goal: Create and manage storage devices, partitions, file systems, and swap spaces from the command line.
Objectives:
Create storage partitions, format them with file systems, and mount them for use.
Create and manage swap spaces to supplement physical memory.
MBR partitioning of the /dev/vdb storage device
GPT partitioning of the /dev/vdb storage device
parted
command adds, modifies, and removes partitions on disks with the MBR or the GPT partitioning scheme.mkfs.xfs
command creates XFS file systems on disk partitions./etc/fstab
file contains devices that must be persistently mounted.mkswap
command initializes swap spaces.Goal: Create and manage logical volumes that contain file systems or swap spaces from the command line.
Objectives:
Describe logical volume manager components and concepts, and implement LVM storage and display LVM component information.
Analyze the multiple storage components that make up the layers of the storage stack.
Logical Volume Manager workflow
Storage stack
Stratis architecture
pvcreate
, vgreduce
, and lvextend
commands.Goal: Access network-attached storage with the NFS protocol.
Objectives:
Identify NFS export information, create a directory to use as a mount point, mount an NFS export with the mount command or by configuring the /etc/fstab file, and unmount an NFS export with the umount command.
Describe the benefits of using the automounter, and automount NFS exports by using direct and indirect maps.
Goal: Manage the boot process to control offered services and to troubleshoot and repair problems.
Objectives:
Describe the Red Hat Enterprise Linux boot process, set the default target when booting, and boot a system to a non-default target.
Log in to a system and change the root password when the current root password is lost.
Manually repair file-system configuration or corruption issues that stop the boot process.
Boot process for BIOS-based and UEFI-based systems
systemctl reboot
and systemctl poweroff
commands reboot and power down a system, respectively.systemctl isolate target-name.target
command switches to a new target at runtime.systemctl get-default
and systemctl set-default
commands can query and set the default target.rd.break
option on the kernel command line to interrupt the boot process before control is handed over from the initramfs
image. The root file system is mounted read-only under /sysroot
.Goal: Control network connections to services with the system firewall and SELinux rules.
Objectives:
Accept or reject network connections to system services with firewalld rules.
Verify that network ports have the correct SELinux type for services to bind to them.
The web console networking page
The web console firewall page
The web console add services menu
The web console add services menu options
The web console firewall overview
netfilter
framework enables kernel modules to inspect every packet that traverses the system, including all incoming, outgoing, or forwarded network packets.firewalld
service simplifies management by classifying all network traffic into zones. Each zone has its own list of ports and services. The public
zone is set as the default zone.firewalld
service ships with predefined services. You can list these services by using the firewall-cmd --get-services
command.ssh_port_t
label is associated with the 22/TCP
port. When a process wants to listen on a port, SELinux verifies whether the port's associated label is allowed to bind that port label.semanage
command to add, delete, and modify labels.Goal: Install Red Hat Enterprise Linux on servers and virtual machines.
Objectives:
Install Red Hat Enterprise Linux on a server.
Explain Kickstart concepts and architecture, create a Kickstart file with the Kickstart Generator website, modify an existing Kickstart file with a text editor and check its syntax with ksvalidator, publish a Kickstart file to the installer, and install Kickstart on the network.
Install a virtual machine on your Red Hat Enterprise Linux server with the web console.
Installation summary window
The Red Hat Customer Portal Kickstart Generator
Specifying the Kickstart file location during installation
KVM virtualization
Managing virtual machines in the web console
Creating a virtual machine in the web console
/root/anaconda-ks.cfg
.Virtualization Host
DNF package group provides the packages for a RHEL system to become a virtualization host.cockpit-machines
package adds the Virtual Machines menu to Cockpit.Goal: Obtain, run, and manage simple lightweight services as containers on a single Red Hat Enterprise Linux server.
Objectives:
Explain container concepts and the core technologies for building, storing, and running containers.
Pull container images from a registry and run containers by using Podman.
Authenticate to and explore the container images stored in remote container registries.
Manage the lifecycle of a container from creation to deletion.
Applications in containers versus on host operating system
The Red Hat Ecosystem Catalog
The Node.js 16 image based on RHEL 9
The Quay.io welcome page
Podman lifecycle commands
Podman query commands
RH134-RHEL9.3-en-1-20240717
Copyright © Red Hat, Inc.