Editing Config Files (nano)
Concept & Overview
Imagine SSH-ing into a remote cloud server where you don't have a graphical desktop or cursor, and you need to quickly fix a line in a configuration file. In these scenarios, you must use a terminal text editor like nano.
- Running nano loads a simple, lightweight text editor directly inside your shell window.
- The shortcuts are always displayed at the bottom of the screen: press Ctrl+O to write out (save) your changes, and Ctrl+X to exit the editor.
server.conf in your home directory using nano server.conf, add a line reading port=8080, and then save and exit the editor.Command Syntax Reference
| Command / Syntax | Description |
|---|---|
nano server.conf | Open server.conf in the Nano text editor |
Verification Objectives
These conditions will be automatically verified when you run commands inside the interactive terminal simulator:
- ○Open the file "server.conf" in Nano
- ○Add configuration line "port=8080" and save
Ready to complete Quest 94?
Test your skills live in the browser terminal with an emulated Linux filesystem, real-time command evaluation, and instant step-by-step hints.