Online Linux Terminal Logo
OnlineLinuxTerminal
Editors & ShellCLI Reference

$nano

Simple, user-friendly in-terminal text editor.

Syntax DefinitionPOSIX standard
nano [OPTIONS] [FILE...]
Linux Community2.4k Online

Chat with real Linux users, learn new commands & get free cheat sheet PDFs.

Try `nano` Live in Interactive Sandbox

Zero-install client simulation with real-time feedback.

Open in Fullscreen Workspace↗
bash — terminal

Overview & How nano Works

`nano` is a modeless, beginner-friendly command-line text editor for Unix-like systems. It displays keyboard shortcuts at the bottom of the screen, making editing configuration files accessible without learning complex modal commands.

Common Flags & Command Options

Flag / OptionDescription
-l, --linenumbersDisplay line numbers to the left of the text.
-m, --mouseEnable mouse support for cursor placement and selection.

Practical Real-World Examples

Example #1Open notes.txt in nano text editor
nano notes.txt

Opens the interactive text editor modal in browser.

Frequently Asked Questions

How do you save and exit in nano?

Press `Ctrl + O` then Enter to Save (Write Out), and `Ctrl + X` to Exit.