Run mkdir lab, then cp /etc/nginx/sites-available/learn.conf lab/learn.conf.
mkdir labcp /etc/nginx/sites-available/learn.conf lab/learn.conf
Copy a system config into your lab, edit it safely, and compare the result.
Nano and editingcpnanogrepcat
Click any instruction for the command details, the why, and the common mistake to avoid.
Run mkdir lab, then cp /etc/nginx/sites-available/learn.conf lab/learn.conf.
mkdir labcp /etc/nginx/sites-available/learn.conf lab/learn.conf
Run nano lab/learn.conf.
nano lab/learn.conf
Run grep server_name lab/learn.conf.
grep server_name lab/learn.conf
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.
Practice editing a copy instead of touching protected system config.
Copy /etc/nginx/sites-available/learn.conf into lab first.
Change control starts with preserving the original.
nano <file>
Open a simulated nano editor.
cat <file>
Print text file contents.
grep [-i] <text> <file>
Find literal text inside a file.
cp <src> <dst>
Copy a file.