BartDay
  • Economy
    • Business
    • Politics
  • Cryptocurrency
  • Investing
    • Banking
    • Forex
    • Financial Services
  • Markets
    • Capital Markets
    • Emerging Markets
  • People
    • Consumer & Retail
    • Health
    • Opinion
  • Environment
    • Energy
    • Industrials
    • Manufacturing
  • Technology
    • Learning
    • Auto & Transportation
    • Data
    • Science
    • Telecommunications
  • Featured
  • About
  • Economy
    • Business
    • Politics
  • Cryptocurrency
  • Investing
    • Banking
    • Forex
    • Financial Services
  • Markets
    • Capital Markets
    • Emerging Markets
  • People
    • Consumer & Retail
    • Health
    • Opinion
  • Environment
    • Energy
    • Industrials
    • Manufacturing
  • Technology
    • Learning
    • Auto & Transportation
    • Data
    • Science
    • Telecommunications
  • Featured
  • About
BartDay
BartDay
  • Economy
    • Business
    • Politics
  • Cryptocurrency
  • Investing
    • Banking
    • Forex
    • Financial Services
  • Markets
    • Capital Markets
    • Emerging Markets
  • People
    • Consumer & Retail
    • Health
    • Opinion
  • Environment
    • Energy
    • Industrials
    • Manufacturing
  • Technology
    • Learning
    • Auto & Transportation
    • Data
    • Science
    • Telecommunications
  • Featured
  • About

ABC’s of the Linux Nano Editor.

  • October 10, 2023
  • 2 minute read
Total
0
Shares
0
0
0
0

Nano is a text editor for Linux, a default in Ubuntu. It is a simple editor, unlike VI. It might not be as powerful, but for simple things like editing configuration files, it does the job well.

01. Nano stands for …

Nano is an acronym for “Nano’s ANOther editor”. Which is inspired by Pico.


Partner with bartday.com. Kindly head here.


From our partners:

CITI.IO :: Business. Institutions. Society. Global Political Economy.
CYBERPOGO.COM :: For the Arts, Sciences, and Technology.
DADAHACKS.COM :: Parenting For The Rest Of Us.
ZEDISTA.COM :: Entertainment. Sports. Culture. Escape.
TAKUMAKU.COM :: For The Hearth And Home.
ASTER.CLOUD :: From The Cloud And Beyond.
LIWAIWAI.COM :: Intelligence, Inside and Outside.
GLOBALCLOUDPLATFORMS.COM :: For The World's Computing Needs.
FIREGULAMAN.COM :: For The Fire In The Belly Of The Coder.
ASTERCASTER.COM :: Supra Astra. Beyond The Stars.
BARTDAY.COM :: Prosperity For Everyone.


02. How to install nano

Ubuntu and Debian

sudo apt install nano

CentOS and Fedora

sudo yum install nano

03. Basics

Opening nano

Can execute it without any parameters. This opens an editor in a buffer. You can interact with, but you would need to write to a file in order persist it in the disk. 

nano

Write to a file

After adding content you can save your work by using the shortcut `Ctrl + O` or `Command + O`. 

Indicate the name of the file. Remember that when you opened the editor? It will be written in the same directory where `nano` was executed. Press enter after setting the file name.

Exit the editor

To exit from the editor, use the shortcut `Ctrl + X` or `Command + X`

View the file created using the `ls` command. Or read it using `cat`.

Opening a file

If a file is not yet existing, it will create a new one.

nano another greetings.txt

04. Shortcuts

Help

Opens the complete list of shortcuts using `Ctrl + G` or `Command + G`

Search or `Ctrl + G` or `Command + G`

Useful when searching for configuration files.

Type the text to search and press Enter. Pressing enter multiple times, will skim through the file and find the next occurrence.

05. Opening a file with different options.

Show line numbers

nano /path/to/file -l

`l` or `–linenumbers`. Sometimes you already have a copy of a file in your local machine. For example a settings.json and you need to update this configuration quickly on your development environment. If you know the line number, it’s easier to find it. 

Having backups

nano /path/to/file -B

`-B` or `–backup` will save the previous version of the edited file with ‘~’ at the end. This is not like a versioning system, but it’s a good safeguard when dealing with configuration files.

Nano is an efficient editor and it does it job well. In most cases when you’re just visiting a server and making some tweaks, it will be sufficient.


Thank you ZedOptima for sponsoring this article.

John Francis

Related Topics
  • Linux
  • Nano
  • Text editor
You May Also Like
Cloud platforms among the clouds
Read More
  • 2 min
  • Learning
  • Technology

Best Cloud Platforms Offering Free Trials for Cloud Mastery

  • December 23, 2024
Crab
Read More
  • 2 min
  • Gears
  • Learning
  • Technology

The Best Friends for a Rustacean. Top Books in Learning Rust.

  • August 25, 2024
Read More
  • 2 min
  • Learning

What is a data visualisation?! A predictable pile of digits?

  • October 7, 2023
Read More
  • 2 min
  • Data
  • Learning

Resources to Take Your Charts From Bland to Beautiful

  • September 6, 2023
Dog with glasses using a tablet
Read More
  • 3 min
  • Learning

More Than Math – The Must-Have Non-Technical Skills for Data Pros

  • August 18, 2023
Laptop and spreadsheet
Read More
  • 1 min
  • Learning

Simple Things That Are Good To Know In Google Spreadsheets

  • August 13, 2023
People using on laptop
Read More
  • 2 min
  • Learning

Increase Productivity With These Simple Tips

  • August 12, 2023
generative-ai-google-deepmind-lISkvdgfLEk-unsplash
Read More
  • 2 min
  • Featured
  • Learning
  • Technology

How Generative AI Provides Opportunities For Jobs And Creativity

  • August 8, 2023
  • Confronting the AI/energy conundrum
    • July 5, 2025
  • One ‘big, beautiful’ reason why Republicans in Congress just can’t quit Donald Trump
    • July 4, 2025
  • Camping
    The Summer Adventures : Camping Essentials
    • June 27, 2025
  • Genome
    AlphaGenome: AI for better understanding the genome
    • June 25, 2025
  • Advanced audio dialog and generation with Gemini 2.5
    • June 15, 2025
about
Unleash Your Financial Potential With Us

BartDay is your all-in source of information for market insights, finance news, investing, trading, and more.

Data and information is provided “as is”. BartDay and any of its information service providers or third party sources is not liable for loss of revenues or profits and damages.

For comments, suggestions, or sponsorships, you may reach us at [email protected]
  • 1
    Confronting the AI/energy conundrum
    • July 5, 2025
  • 2
    One ‘big, beautiful’ reason why Republicans in Congress just can’t quit Donald Trump
    • July 4, 2025
  • Camping 3
    The Summer Adventures : Camping Essentials
    • June 27, 2025
  • Genome 4
    AlphaGenome: AI for better understanding the genome
    • June 25, 2025
  • 5
    Advanced audio dialog and generation with Gemini 2.5
    • June 15, 2025
BartDay
  • Economy
  • Cryptocurrency
  • Investing
  • Markets
  • People
  • Environment
  • Technology
  • Featured
  • About
Unleash Your Financial Potential With Us

Input your search keywords and press Enter.