Run realpath scripts/deploy.sh.
realpath scripts/deploy.sh
Resolve script paths and report their directory and basename.
Shell scriptingrealpathbasenamedirname
Click any instruction for the command details, the why, and the common mistake to avoid.
Run realpath scripts/deploy.sh.
realpath scripts/deploy.sh
Run basename scripts/deploy.sh.
basename scripts/deploy.sh
Run dirname scripts/deploy.sh.
dirname scripts/deploy.sh
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 repeatable confidence with handling script paths without depending on the current directory.
Start with realpath scripts/deploy.sh, inspect the result, then continue in order.
Handling script paths without depending on the current directory helps operators explain what they know before they change anything.
realpath <path>
Resolve a path to its canonical simulated location.
basename|dirname <path>
Split paths into file and directory parts.