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

Optimize your Linux rig for top-notch writing

I'm a big fan of Scott Nesbitt's writing, which has a technological bent, but is usually more about working effectively, rather than how tools can make you effective, which is a key distinction. Scott's setup reflects his focus on production rather than tweaking. He has his work tools and everything else is pretty much white noise—which is why LXDE/Lubuntu probably makes a lot of sense for his workflow. It's simple and it stays out of his way. Scott also gets bonus points for moving his family to Linux. That's a tough move, but given that his wife stole his ZaReason laptop, the conversion seems to have taken. Read more

IBM meets demand for Linux with training resources

IBM HAS REAFFIRMED its commitment to Linux with the announcement of an extension to Power Systems Linux. Following on from the company's $1bn financial commitment to the Linux operating system last year, IBM will add Power Systems Linux to the Power Systems services already available for AIX and IBM iSeries servers at 54 IBM Innovation Centres and Client Centres. This will enable Linux systems to better use IBM's Power8 parallel processing and advanced virtualisation. Read more

How Red Hat can catch the developer train

Outside the operating system, according to AngelList data compiled by Leo Polovets, these developers go with MySQL, MongoDB, or PostgreSQL for their database; Chef or Puppet for configuration; and ElasticSearch or Solr for search. None of this technology is developed by Red Hat. Yet all of this technology is what the next generation of developers is using to build modern applications. Given that developers are the new kingmakers, Red Hat needs to get out in front of the developer freight train if it wants to remain relevant for the next 20 years, much less the next two. Read more

Shortlist of open source software used at NASA lab

The offer was too good to be true. Three whole weeks at the NASA Glenn Research Center and an invitation to come back. I could scarcely believe it when I read the email. I immediately forwarded it to my parents with an addition of around 200 exclamation points. They were all for it, so I responded to my contact, Herb Schilling, with a resounding “YES!” Read more