CyberMonday Special Offer
+370 5 205 5502

How to Search in Nano Editor? [A Beginner's Tutorial]

This brief guide will explain you, search nano command [A Guide About how to search and case-sensitive search in Nano Editor].

14 Dec, 21 by Antoniy Yushkevych 3 min Read

List of content you will read in this article:

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. Before moving to know more about how to search nano command, we have explained what is 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

For Debian/Ubuntu platforms

$sudo apt install nano

For CentOS/Fedora platforms

$yum install nano

How to Find Text in Nano? [Search nano Command]

Ctrl-W (for "Where is...") can search for text in nano editor. 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.

How to Search in Nano Editor?

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.

How to find in Nano Editor?

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. 

People are also reading:

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