• Home
  • Subscribe
  • Contribute Us
    • Share Your Interview Experience
  • Contact Us
  • About
    • About CSEstack
    • Campus Ambassador
  • Forum & Discus
  • Tools for Geek
  • LeaderBoard
CSEstack

What do you want to Learn Today?

  • Programming
    • Tutorial- C/C++
    • Tutorial- Django
    • Tutorial- Git
    • Tutorial- HTML & CSS
    • Tutorial- Java
    • Tutorial- MySQL
    • Tutorial- Python
    • Competitive Coding Challenges
  • CSE Subject
    • (CD) Compiler Design
    • (CN) Computer Network
    • (COA) Computer Organization & Architecture
    • (DBMS) Database Management System
    • (DS) Data Structure
    • (OS) Operating System
    • (ToA) Theory of Automata
    • (WT) Web Technology
  • Interview Questions
    • Interview Questions- Company Wise
    • Interview Questions- Coding Round
    • Interview Questions- Python
    • Interview Questions- REST API
    • Interview Questions- Web Scraping
    • Interview Questions- HR Round
    • Aptitude Preparation Guide
  • GATE 2022
  • Linux
  • Trend
    • Full Stack Development
    • Artificial Intelligence (AI)
    • BigData
    • Cloud Computing
    • Machine Learning (ML)
  • Write for Us
    • Submit Article
    • Submit Source Code or Program
    • Share Your Interview Experience
  • Tools
    • IDE
    • CV Builder
    • Other Tools …
  • Jobs

[Shortcut] How to Search Text in Terminal Output on Ubuntu (Linux)?

Aniruddha Chaudhari/9249/0
Linux

Do you want to know how you can search any text in Ubuntu (Linux) terminal?

When you run any command, you get the output on the terminal. Especially if you are running any script in debug mode, a lot of logs get generated on the terminal.

If you want to search a particular text from the terminal output, it is not easy to scroll down complete terminal data and find that text.

If you are searching text manually,

  • We, humans, make mistakes to search the desired text with naked eyes and we miss to identify it.
  • If there are tones of output lines on the terminal, it becomes impossible and time consuming for searching the desired string manually.

Linux (Ubuntu) has a feature that makes your search very easy.

Key Shortcut to Search Text in Terminal Output on Ubuntu

Use the following key shortcut to search text in Ubuntu (Linux) terminal.

Ctrl+Shift+f

It pops up checkboxes with four searching options.

  • Match case
  • Match entire word only
  • Wrap-around
  • Match as a regular expression

Now you can search any string from the terminal output. You can perform a search using a regular expression, case sensitive/insensitive search, wrap-around text searching.

Steps:

  • Press key shortcut Ctrl+Shift+f.
  • Choose the checkbox for different searching options.
  • Write a text you want to search and enter.
  • Keep pressing n to move to the next search.

If you want to be more productive, make a habit of using basic Linux commands for daily use.

This is a simple feature you can use to search text in terminal output on Ubuntu. Keep this trick in mind. It will make your job very easy and saves you a lot of time.

linux
Aniruddha Chaudhari
I am complete Python Nut, love Linux and vim as an editor. I hold a Master of Computer Science from NIT Trichy. I dabble in C/C++, Java too. I keep sharing my coding knowledge and my own experience on CSEstack.org portal.

Your name can also be listed here. Got a tip? Submit it here to become an CSEstack author.

Leave a Reply Cancel reply

Make Your Linux Run Faster

Linux- Remove Old Kernels

Linux- Auto-Remove Unused Packages

Linux Commands

Linux- Most Useful Commands

Linux- LS command [Tool]

Linux- 7 Hostname Commands

Linux- Text Search in Terminal

Linux- File Permission [Chmod Calculator]

Linux- Check Free Memory in Ubuntu

Linux- Find Total Size of the Directory

Linux- Mount/Umount USB Drive

Linux- Change VNC Password

Linux- Get Serial Number (dmidecode)

Linux- Execute Shell Script

Linux Tools

5 Free Linux screenshot tools

Vim Editor Tricks

Vim- Setting Vim of Programming

Vim- 6 Commands to Edit File

Vim- Case-Sensitive Search

Vim- How to Create Function?

© 2022 – CSEstack.org. All Rights Reserved.

  • Home
  • Subscribe
  • Contribute Us
    • Share Your Interview Experience
  • Contact Us
  • About
    • About CSEstack
    • Campus Ambassador
  • Forum & Discus
  • Tools for Geek
  • LeaderBoard