Essential Tools
Not publishedof exam
Software Management
Not publishedof exam
Shell Scripting
Not publishedof exam
Running Systems
Not publishedof exam
Local Storage
Not publishedof exam
File Systems
Not publishedof exam
Deployment and Maintenance
Not publishedof exam
Basic Networking
Not publishedof exam
Users and Groups
Not publishedof exam
System Security
Not publishedof exam
Quick Facts
- Exam
- EX200
- Platform
- Red Hat Enterprise Linux 10
- Format
- Hands-on system administration
- Internet
- Not available
- Personal notes
- Not permitted
- Configuration
- Must survive reboot
- Domain weights
- Not published
Hard vs Symbolic Links
Hard link
- Shares inode
- Same filesystem
- Survives another name removal
Symbolic link
- Stores target pathname
- Can cross filesystems
- Can dangle if target disappears
Shared inode vs stored path
Shell and Text
- > file
- Overwrite stdout destination
- >> file
- Append standard output
- 2> file
- Redirect standard error
- cmd >out 2>&1
- Send both streams to out
- A | B
- Pipe stdout to next stdin
- grep -En PATTERN FILE
- Extended regex; show line numbers
- vim: :wq
- Write and quit
- man -k TOPIC
- Search manual descriptions
- info COMMAND
- Read installed Info documentation
- /usr/share/doc
- Installed package documentation
Files and Links
- cp -a SRC DEST
- Copy recursively; preserve attributes
- mv SRC DEST
- Move or rename
- mkdir -p PATH
- Create missing parent directories
- rm FILE
- Remove directory entry for file
- ln SRC LINK
- Create hard link
- ln -s TARGET LINK
- Create symbolic link
- tar -czf A.tar.gz DIR
- Create gzip-compressed archive
- tar -xjf A.tar.bz2
- Extract bzip2-compressed archive
- su - USER
- Start target user login shell
- ssh USER@HOST
- Start remote login
RPM vs Flatpak
RPM via DNF
- Uses RPM repositories
- Installs system packages
- DNF resolves package dependencies
Flatpak
- Uses Flatpak remotes
- Installs sandboxed apps
- User or system scope
Match tool to package format
RPM and Flatpak
- /etc/yum.repos.d/*.repo
- DNF repository definitions
- [REPOID] and baseurl=URL
- Set repository ID and locationIn .repo file
- enabled=1
- Enable configured repositoryIn .repo file
- dnf repolist
- List enabled RPM repositories
- dnf install NAME
- Install package from enabled repos
- dnf install ./APP.rpm
- Install local RPM; resolve dependencies
- dnf upgrade
- Upgrade installed RPM packages
- dnf remove NAME
- Remove RPM package
- rpm -q NAME
- Query installed RPM
- rpm -qf FILE
- Identify installed package owning file
- flatpak remote-add NAME URL
- Add Flatpak remote
- flatpak remotes
- List configured Flatpak remotes
- flatpak install REMOTE APPID
- Install Flatpak application
- flatpak uninstall APPID
- Remove Flatpak application
- flatpak list --app
- List installed Flatpak apps
- --user
- Select per-user Flatpak installationFlatpak
String vs Numeric Tests
String test
- [ "$a" = "$b" ]
- Quotes preserve empty operands
Numeric test
- [ "$a" -eq "$b" ]
- Compare integer values
Use operators for operand type
Shell Input Picker
- Keep each script argument intact→"$@"(Quote the expansion)
- Branch on command success→if COMMAND(Zero means success)
- Compare integer values→[ "$a" -gt "$b" ](Numeric greater-than)
- Capture output for later→result=$(command)(Not the exit status)
- Read a file linewise→while IFS= read -r line(Close with done < FILE)
Bash Script Basics
- #!/bin/bash
- Select Bash interpreter
- $1, $2
- First and second arguments
- $#
- Number of positional arguments
- "$@"
- Keep each argument separate
- $(command)
- Substitute output; trim trailing newlines
- if COMMAND; then …; fi
- Branch on zero exit status
- [ -f "$file" ]
- Test for regular file
- for arg in "$@"; do
- Loop over script argumentsClose with done
- read -r line
- Read without interpreting backslash escapes
- bash -n SCRIPT
- Check Bash syntax without executing
Start vs Enable
Start
- Activates unit now
- No enablement change
Enable
- Registers future activation
- Does not start without --now
Use enable --now for both
Boot and Processes
- systemctl reboot
- Reboot normally
- systemctl poweroff
- Power off normally
- systemctl isolate TARGET
- Switch targets now
- GRUB entry edit
- Change this boot only
- systemd.unit=rescue.target
- Select rescue for this bootOne-time GRUB edit
- rescue.target
- Maintenance shell with basic services
- ps -eo pid,comm,%cpu,%mem
- Show per-process CPU and memory
- top
- Watch live resource use
- kill -TERM PID
- Request process termination
- renice -n 10 -p PID
- Set nice value to 10
- tuned-adm profile NAME
- Select a tuning profile
- tuned-adm active
- Show active tuning profile
Journals and Transfer
- journalctl -u UNIT
- Filter entries by systemd unit
- journalctl -b -1
- Show previous boot journal
- /var/log/journal
- Persistent journal directory
- Storage=persistent
- Configure on-disk journal storagejournald.conf
- journalctl --flush
- Flush runtime journal to disk
- systemctl status UNIT
- Inspect unit state and logs
- scp FILE USER@HOST:PATH
- Copy file to remote host
Storage Layer Order
Prepare disks, pool space, carve volumes, format.
GPT, LVM, and Swap
- lsblk -f
- List devices and filesystem IDs
- parted DISK print
- Show disk partition table
- mklabel gpt
- Initialize GPT; replaces partition tableInside parted
- mkpart / rm
- Add or remove partition entriesInside parted
- pvcreate DEV
- Initialize LVM physical volume
- vgcreate VG PV
- Create volume group from PV
- vgextend VG PV
- Add PV capacity to VG
- lvcreate -L SIZE -n LV VG
- Allocate logical volume
- pvs, vgs, lvs
- Inspect each LVM layer
- lvremove LV
- Remove selected logical volume
- pvmove PV
- Evacuate allocated extents
- vgreduce VG PV
- Detach unused physical volume
- pvremove DEV
- Clear LVM physical volume metadata
- mkswap DEV
- Initialize designated swap area
- swapon DEV
- Activate swap now
- swapon --show
- Show active swap areas
- swap entry in /etc/fstab
- Activate swap at boot
XFS vs ext4 Growth
XFS
- xfs_growfs MOUNTPOINT
- Must be mounted
- Shrinking unsupported
ext4
- resize2fs DEV
- Online growth supported
- Shrink unmounted filesystem
Expand underlying device first
Mount and Grow Picker
- Mount only for this session→mount DEV DIR(Check with findmnt)
- Mount local filesystem at boot→UUID entry in fstab(Check with findmnt --verify)
- Mount NFS when accessed→autofs master and map(Access path before checking mount)
- Grow supported filesystem and LV→lvextend -r(Check lvs and df -h)
- Grow already-extended mounted XFS→xfs_growfs MOUNTPOINT(Use mounted path)
- Grow ext4 after device expansion→resize2fs DEV(Use block device)
Local Filesystems
- mkfs.xfs DEV
- Format device as XFS
- mkfs.ext4 DEV
- Format device as ext4
- mkfs.vfat DEV
- Format device as VFAT
- mount DEV DIR
- Attach filesystem now
- umount DIR
- Detach mounted filesystem
- blkid DEV
- Read filesystem UUID and label
- UUID=… or LABEL=…
- Stable fstab source fields
- findmnt --verify
- Check fstab entries
- lvextend -r -L +SIZE LV
- Grow LV and supported filesystem
- xfs_growfs MOUNTPOINT
- Grow mounted XFS
- resize2fs DEV
- Resize ext-family filesystem
NFS and autofs
- nfs-utils
- Install NFS client tools
- mount -t nfs HOST:/EXPORT DIR
- Mount NFS share now
- HOST:/EXPORT
- NFS source in fstab
- /etc/auto.master
- Maps parent paths to maps
- Indirect map key
- Subdirectory below master mountpoint
- systemctl enable --now autofs
- Start automount and enable boot
- findmnt --target DIR
- Verify filesystem serving path
Permissions
- ls -ld DIR
- Show directory permissions and owner
- chmod 640 FILE
- Owner rw; group r; other none
- chown USER:GROUP PATH
- Set owner and group
- chmod g+s DIR
- New entries inherit directory group
- chmod +t DIR
- Restrict deletion in shared directory
- getfacl PATH
- Inspect ACL and effective permissions
- setfacl -m u:USER:rw FILE
- Set named user ACL entry
Now vs Next Boot
Start for now; enable for future activation.
Scheduling Picker
- Run once at specified time→at TIME(Ensure atd is active)
- Run repeated per-user command→crontab -e(Ensure crond is active)
- Schedule a systemd service→.timer and .service units(Enable and start timer)
- Check next timer activation→systemctl list-timers(Inspect NEXT column)
- Sync host with NTP→chronyd(Verify with chronyc tracking)
Scheduling, Time, and Boot
- at TIME
- Queue one-time job via atd
- atq
- List queued at jobs
- crontab -e
- Edit recurring user jobs
- crond
- Runs cron schedules
- OnCalendar=
- Set calendar scheduleIn timer unit
- systemctl list-timers
- Show active timers and schedules
- systemctl daemon-reload
- Reload changed systemd unit files
- systemctl set-default TARGET
- Set next boot target
- /etc/chrony.conf
- Configure time sources
- chronyc sources -v
- Show NTP source selection
- grubby --info=ALL
- Inspect saved boot entries
- grubby --update-kernel=PATH --args=ARG
- Persist kernel argument for entry
- cat /proc/cmdline
- Verify running kernel arguments
Cron Field Order
Minute Hour Day Month Weekday.
Profile vs Live Interface
Saved profile
- nmcli con mod NAME
- Stores desired configuration
Live interface
- ip address shows runtime
- Activate profile to apply changes
Verify saved and active settings
Network Picker
- Assign persistent static addressing→nmcli con mod NAME(Set manual method and addresses)
- Apply edited connection profile→nmcli con up NAME(Confirm with ip -br address)
- Set DNS through NetworkManager→Profile DNS properties(Inspect active connection)
- Set one local name mapping→Edit /etc/hosts(Confirm with getent hosts)
- Start a network service at boot→systemctl enable UNIT(Check with is-enabled)
NetworkManager and Name Resolution
- nmcli connection show
- List saved connection profiles
- nmcli con mod NAME
- Edit profile properties
- nmcli con up NAME
- Activate saved profile
- ipv4.method / ipv6.method
- Select address configuration method
- ipv4.addresses / ipv6.addresses
- Set static addresses with prefix
- ipv4.gateway / ipv6.gateway
- Set profile default gateway
- ipv4.dns / ipv6.dns
- Set profile DNS servers
- connection.autoconnect yes
- Allow automatic profile activation
- ip -br address
- Show live interface addresses
- ip route / ip -6 route
- Show IPv4 or IPv6 routes
- hostnamectl set-hostname NAME
- Set persistent system hostname
- /etc/hosts
- Static hostname-to-address mappings
- getent hosts NAME
- Test system hostname lookup
Group Membership Flags
usermod -aG
- Append supplementary membership
- Keeps existing supplementary groups
usermod -G
- Replace supplementary group list
- Omitted groups are removed
Append unless replacement is intended
Accounts and Sudo
- useradd -m USER
- Create account and home
- userdel -r USER
- Remove account and home
- passwd USER
- Set account password
- chage -l USER
- List password aging settings
- chage -M DAYS USER
- Set maximum password age
- groupadd GROUP
- Create local group
- groupmod -n NEW OLD
- Rename local group
- groupdel GROUP
- Remove local group
- usermod -aG GROUP USER
- Append supplementary group
- id USER
- Show account and group IDs
- visudo
- Edit and syntax-check sudo policy
- sudo -l
- List permitted sudo commands
Port Access Checks
Listen, allow, label: three different checks.
Runtime vs Permanent Firewall
Runtime
- Effective immediately
- Lost when reloaded
Permanent
- Saved across reboot
- Reload to activate saved changes
Check correct zone in both
Access Troubleshooting Picker
- Check owner and mode→ls -ld PATH(Check parents for search permission)
- Rule might be in wrong zone→firewall-cmd --get-active-zones(Inspect zone and interface binding)
- Restore policy label on file→restorecon PATH(Check with ls -Z)
- Keep custom directory labeling→semanage fcontext then restorecon(Rule first; apply second)
- Service needs alternate labeled port→semanage port(Firewall rule is separate)
- Toggle permitted SELinux behavior→setsebool -P BOOL on(Confirm with getsebool)
Firewall and SSH Keys
- firewall-cmd --get-active-zones
- Identify live zones and bindings
- firewall-cmd --zone=ZONE --list-all
- Inspect runtime zone policy
- --add-service=NAME
- Allow predefined servicefirewall-cmd
- --add-port=PORT/tcp
- Allow specific TCP portfirewall-cmd
- firewall-cmd --reload
- Load permanent rules into runtime
- firewall-cmd --runtime-to-permanent
- Save all runtime firewall changes
- umask 027
- Mask group write and others
- ssh-keygen
- Generate an SSH keypair
- ssh-copy-id USER@HOST
- Install public key on server
- ~/.ssh/authorized_keys
- Allowed public keys for user
Enforcing vs Permissive
Enforcing
- Blocks policy violations
- Reports policy denials
Permissive
- Does not block violations
- Logs would-be denials
Mode change is not relabeling
SELinux Modes and Labels
- getenforce
- Show current SELinux mode
- setenforce 0 or 1
- Set permissive or enforcing now
- /etc/selinux/config
- Set persistent SELinux mode
- ls -Z / ps -eZ
- Show file or process contexts
- semanage fcontext -a -t TYPE REGEX
- Add persistent path-label rule
- restorecon -Rv DIR
- Apply policy labels recursively
- semanage port -l
- List SELinux port types
- semanage port -a
- Add SELinux port label-t TYPE -p tcp PORT
- getsebool -a
- List SELinux Boolean settings
- setsebool -P BOOL on
- Enable Boolean persistently
Common Traps
Redirection order matters
2>&1 >out: stderr uses old stdout ≠ >out 2>&1: both streams to out
Current mount is not persistent
mount attaches now ≠ fstab configures boot mounts
Volume growth is not filesystem growth
Larger logical volume ≠ Larger filesystem
Boot target vs live target
isolate changes current target ≠ set-default changes boot target
Firewall and SELinux differ
Firewall allows network traffic ≠ SELinux labels service ports
Context rule vs current label
semanage fcontext records mapping ≠ restorecon applies mapping
SSH public vs private key
Public key goes on server ≠ Private key stays with client
Last Minute
- 1.Check systemctl is-active and is-enabled
- 2.Validate fstab with findmnt --verify
- 3.Check swap with swapon --show
- 4.Check LV and filesystem sizes
- 5.Verify timer with systemctl list-timers
- 6.Check prior boot: journalctl -b -1
- 7.Check name resolution: getent hosts
- 8.Check runtime and permanent firewall rules
- 9.Verify file labels with ls -Z
- 10.Verify NTP with chronyc sources
- 11.Reboot; verify required configuration persists
Explore More Red Hat Certifications
Continue into nearby exams from the same family. Each card keeps practice questions, study guides, flashcards, videos, and articles in one place.
More From This Family
Videos and articles for deeper review.
