Edit a text file from the command shell

There is nothing pretty about the text editing tools in Linux. After all, it is a command shell environment; how pretty can it be? But if you are a minimalist at heart, you will feel right at home.

Two editors mostly dominate Developerland: nano and vim. The latter is the most powerful and fully featured. However, the vim command is not a good starting point for neophytes as it is more complex. Instead, our text editing tool of choice for the rest of this book will be nano. In this section, you will learn your way around the editor and then create and edit a text file.

How it works...

When you're using nano, take note of all the options at the bottom of the screen: Exit, Get Help, Read File, and so on. You ...

Get BeagleBone: Creative Projects for Hobbyists now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.