Language Selection

English French German Italian Portuguese Spanish

The Beginner’s Guide to Nano, the Linux Command-Line Text Editor

Filed under
Software
HowTos

When getting used to the command-line, Linux novices are often put off by other, more advanced text editors such as vim and emacs. While they are excellent programs, they do have a bit of a learning curve. Enter Nano, an easy-to-use text editor that proves itself versatile and simple. Nano is installed by default in Ubuntu and many other Linux distros and works well in conjunction with sudo, which is why we love it so much.

Running Nano

You can run nano in two ways. To open nano with an empty buffer, just type in “nano” at the command prompt.

You can also use the following syntax:

nano /path/to/filename

Nano will follow the path and open that file if it exists. If it does not exist, it’ll start a new buffer with that filename in that directory.

Let’s take a look at the default nano screen.

rest here




More in Tux Machines

Today in Techrights

Gorgeous Live Voyager 16.04 Linux OS Comes Hot on the Heels of Ubuntu 16.04 LTS

The team of developers behind the Live Voyager desktop-oriented operating system have announced today, May 1, 2016, the release and immediate availability for download of Voyager 16.04 LTS. Read more

BlackArch Linux Now Provides over 1,400 Penetration Testing Tools, New ISO Lands

The BlackArch Linux devs have been preparing this for months, but now it is finally here, the new ISO image of the Arch Linux-based operating system designed for hackers and security professionals. Read more

If I needed to leave Android, I'd use Sailfish OS

Sailfish OS may be unknown to most people, but if Android was to disappear tomorrow, this would be the direction I'd head. Sailfish OS is an open source mobile operating system that offers speed and simplicity like no other. And, in my opinion, is the best alternative to Android. Read more