This section covers the fundamental command-line tools required to navigate, manage, and troubleshoot a Red Hat Enterprise Linux system. Proficiency here is mandatory for speed and accuracy during the EX200 exam.
- Shell Access & Command Syntax: Log in, switch users, and use correct syntax.
- I/O Redirection: Use
>,>>,|,2>, and&>to manage data flow. - Text Analysis: Use
grepand Regular Expressions (regex) to filter logs and files. - Remote Access: Securely access systems using
sshand key-based auth. - Archiving & Compression: Use
tarwithgzip(z) andbzip2(j). - File Management:
mkdir,cp,mv,rm, and creating hard/soft links. - Permissions: Standard
ugo/rwxpermissions andumask. - System Documentation: Efficiently using
man,info, and/usr/share/doc.
| Task | Command |
|---|---|
| Create Soft Link | ln -s /path/to/original linkname |
| Create Hard Link | ln /path/to/original linkname |
| Recursive Copy | cp -rp /source /destination (p preserves permissions) |
- Search for a string (case insensitive):
grep -i "error" /var/log/messages - Search for lines starting with "root":
grep "^root" /etc/passwd - Search for lines ending with "nologin":
grep "nologin$" /etc/passwd
- Create Gzip Archive:
tar -cvzf archive.tar.gz /path/to/dir - Extract Bzip2 Archive:
tar -xvjf archive.tar.bz2 -C /target/dir
- Change Ownership:
chown user:group filename - Numeric Permissions:
chmod 755 filename(rwxr-xr-x) - Symbolic Permissions:
chmod g+w,o-r filename
- The Link Test: Create a file, create both a hard and soft link to it, delete the original file, and see which link still works.
- The Grep Challenge: Find all files in
/etcthat contain the word "network" and save the list to~/network_files.txt. - The Archive Drill: Archive the
/etc/sshdirectory into your home folder usingtarand verify the contents without extracting.
- Flatpak: In RHEL 10, this folder will also include
flatpak installand repository management commands. - Documentation: RHEL 10 places higher emphasis on finding info within the terminal since internet access is prohibited during the exam.