Run printf /srv/www/index.html | tee lab/path-report.txt.
printf /srv/www/index.html | tee lab/path-report.txt
Build a small report from path helper commands.
Files and pathsdirnamebasenametee
Click any instruction for the command details, the why, and the common mistake to avoid.
Run printf /srv/www/index.html | tee lab/path-report.txt.
printf /srv/www/index.html | tee lab/path-report.txt
Run dirname /srv/www/index.html.
dirname /srv/www/index.html
Run basename /srv/www/index.html.
basename /srv/www/index.html
Create a free account to sync completed lessons, XP, streaks, course status, and your next lesson across sessions.
Checking account status...
Progress sync is idle.
Progress sync stores completion IDs, scores, streaks, badges, and game settings. Terminal contents, editor snippets, lab scratch, email, and real names are never published on leaderboards or share cards.
Build a small report from path helper commands.
Run the commands in order and compare the outputs.
Junior operators build confidence by gathering evidence before changing systems.
tee <file>
Write piped text to a lab file and keep it on screen.
basename|dirname <path>
Split paths into file and directory parts.