How to Search Text using Nano Editor


If you are logged into a remote server and trying to look into a huge file using the Nano text editor for the Terminal, you can make use of the keyboard shortcut Control + W.

Let's take a look at it step-by-step with screenshots.


Step 1: Open the file using Nano

% nano configuration_file.xml

Step 2: Press Ctrl + W to enter Search Mode

Control and W key to enter search mode in Nano

Step 3: Press Enter to locate the searched word/text

Press Enter to look for the searched word

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap