Challenges by Mister P

Focused, hands-on DevOps and server-side problems with hints, feedback, and automated solution checks.

Challenge

Persist a Custom Binary Directory in $PATH

A custom application has been installed to a non-standard location. Configure the laborant user's environment so the application's directory is permanently available in $PATH for all future login shells.

Challenge

Audit the Shell Environment: Detect a Shadowed Command

A system administrator must verify the shell environment is clean before performing privileged tasks. Practice detecting and resolving command aliases and shell function overrides that can silently hijack administrative commands.

Challenge

RHCSA Prep: Quoting and Escaping Special Characters in Shell Commands

Master Bash quoting forms — single quotes, double quotes, backslash escaping, and ANSI-C quoting — to correctly handle filenames and arguments containing spaces, glob characters, dollar signs, and newlines.

Challenge

Broken Man Pages: whatis Returns Nothing Appropriate

The man page database on this system is broken — whatis and apropos return "nothing appropriate" for every query. Diagnose the root cause and restore full functionality of the shell help tools.

Challenge

RHCSA Prep: The sudo Command Isn't What It Seems

The laborant user is reporting that something feels wrong when running administrative tasks. Commands invoked via sudo appear to succeed, but the results are unexpected — files end up in the wrong place and critical system binaries seem to behave differently than documented. Investigate the shell environment, diagnose the root cause, and fix it permanently.

Challenge

Fix the Broken $PATH: Custom Commands No Longer Found After Login

The laborant user's custom directory /opt/tools/bin was working fine last week. Now, after every login, the commands in that directory are not found — even though they worked in the previous session. Someone touched the shell profile and now the $PATH change doesn't survive a new login shell.

Challenge

RHCSA Prep: Fix the Broken Script That Processes Special-Character Filenames

A shell script that processes files with spaces and special characters in their names is producing "No such file or directory" errors even though the files exist. Diagnose the quoting bug and fix the script so it runs without errors.