Special offer
+370 5 205 5502 sales@monovm.com

How to Search in Nano Editor

Vim and Emacs are two of the most powerful and widely used command-line editors. Creating and editing text files is a common task when operating on the command line. Both have a steep learning curve that novice users can find daunting. Nano is a basic editor for those who do not have command of Vim or Emacs.

31 May, 21 by Antoniy Yushkevych 2 min Read

A Brief Tutorial on How to Search in Nano Editor

Nano is the most basic text editor for Linux, which is based on the command line. It has all of the standard text editor features, such as syntax highlighting, several buffers, scan and substitutes with regular expression support, correcting typos, and UTF-8 encoding.


Nano Text Editor Installation Process

Nano is usually enabled by default in most Linux distributions, but use the following commands to install it if it isn't.

$sudo apt update

In the Debian/Ubuntu situation

$sudo apt install nano

In the CentOS/Fedora situation

$yum install nano


How to Find Text in Nano

Ctrl-W (for "Where is...") can look for text in nano. You'll be questioned about what you'd like to look for. Pass the message and then press Enter or Return. If a match is detected, the cursor will jump to the first instance of that match. If no match is made, the message "[ "search string" not found ]" will appear.

To conduct a search procedure in Nano editor, follow these basic steps:

  1. In nano, make changes to the file.
  2. Alternatively, press CTRL + W or F6.
  3. Enter a search pattern.
  4. To search, press Enter.
  5. To look for more events, click CTRL + W again and then join.

In nano, searching for a text pattern.


Nano Case Sensitive Search

In case of insensitivity, this is the default nano search text. In both cases, the search algorithm fits letters. You may also do a case-sensitive scan.

Follow these steps to run a case-specific search in nano:

  1. In Nano, make changes to the file.
  2. Alternatively, press CTRL + W or F6.
  3. To allow case-sensitive search, press ALT + C.
  4. Enter a search term.



So this is how you can easily search anything in nano without facing any troubles. We have tried to include every possible information about searching the text in nano. If this guide helped you, make sure you visit our website to learn more about the Linux operating system. 

Antoniy Yushkevych

Master of word when it comes to technology, internet and privacy. I'm also your usual guy that always aims for the best result and takes a skateboard to work. If you need me, you will find me at the office's Counter-Strike championships on Fridays or at a.yushkevych@monovm.com