LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

nano

simple text editor

TLDR

Open file
$ nano [file.txt]
copy
Open at specific line
$ nano +[10] [file.txt]
copy
Open read-only
$ nano -v [file.txt]
copy
Enable line numbers
$ nano -l [file.txt]
copy
Disable line wrapping
$ nano -w [file.txt]
copy
Open with backup
$ nano -B [file.txt]
copy
Set tab size
$ nano -T [4] [file.txt]
copy

SYNOPSIS

nano [options] [file]

DESCRIPTION

nano is a simple text editor. It provides an easy-to-use terminal editor.The tool shows shortcuts at bottom. Beginner-friendly alternative to vi/vim.

PARAMETERS

FILE

File to edit.
+ LINE
Start at line number.
-v
View mode (read-only).
-l
Show line numbers.
-w
Don't wrap long lines.
-B
Create backup files.
-T NUM
Tab size.
--help
Display help information.

INSTALL

sudo apt install nano
copy
sudo dnf install nano
copy
sudo pacman -S nano
copy
sudo apk add nano
copy
sudo zypper install nano
copy
brew install nano
copy
nix profile install nixpkgs#nano
copy

CAVEATS

Less powerful than vim/emacs. Ctrl-based shortcuts. Config in ~/.nanorc.

HISTORY

nano was created as a free replacement for the Pico editor, part of the GNU project since 2001.

SEE ALSO

vim(1), emacs(1), pico(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid