Run basename /etc/nginx/sites-available/learn.conf.
basename /etc/nginx/sites-available/learn.conf
Split paths into filenames and directories.
Terminal basicsbasenamedirnamepwd
Click any instruction for the command details, the why, and the common mistake to avoid.
Run basename /etc/nginx/sites-available/learn.conf.
basename /etc/nginx/sites-available/learn.conf
Run dirname /etc/nginx/sites-available/learn.conf.
dirname /etc/nginx/sites-available/learn.conf
Run pwd.
pwd
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.
Split paths into filenames and directories.
Run the commands in order and compare the outputs.
Junior operators build confidence by gathering evidence before changing systems.
pwd
Print the current working directory.
basename|dirname <path>
Split paths into file and directory parts.