Skip to content

Root Fan

Linux & Oracle DBA Blog

  • Home
  • Contact
  • About
  • Index

Tag: files

Posted on August 7, 2020January 13, 2021

How to Find Text in Files on Linux

If you want to find specific text in a given directory recursively, the best way to do it would be with the grep command and a pattern.

Just like that:

grep -rnw '/path-to-search/' -e 'pattern'

-r or -R is recursive,
-n is line number, and
-w stands for match the whole word.
-l (lower-case L) can be added to just give the file name of matching files.

Continue reading “How to Find Text in Files on Linux”
Posted on November 15, 2018January 13, 2021

How to Find Files in Ubuntu Terminal

Here is a list of commands I use to find files in Ubuntu.

To find all files with .zip extension You can use this

find . -name "*.zip"

If you want to find all files with a pattern use this

find . -name "*pattern*"
Continue reading “How to Find Files in Ubuntu Terminal”

Unmissable Posts

  • How to Change Processes Parameter in Oracle 19c RAC
  • How to Fix Oracle RAC Resource Unknown State
  • How to Find Alert Log File Location in Oracle
  • Check All Apache Virtual Host Logs on Ubuntu
  • How to Find Files in Ubuntu Terminal

Recent Posts

  • How to Enable Archive Log Mode in Oracle 19c
  • How to Delete a Datafile in Oracle
  • How to Upgrade PHP on Ubuntu
  • How to Change Processes Parameter in Oracle 19c RAC
  • How to Kill a Session in Oracle RAC Database

Categories

  • Apache
  • Firewall
  • Linux
  • Oracle
  • Postfix
  • Security
  • Ubuntu

Unmissable Posts

  • How to Change Processes Parameter in Oracle 19c RAC
  • How to Fix Oracle RAC Resource Unknown State
  • How to Find Alert Log File Location in Oracle
  • Check All Apache Virtual Host Logs on Ubuntu
  • How to Find Files in Ubuntu Terminal

Categories

  • Apache
  • Firewall
  • Linux
  • Oracle
  • Postfix
  • Security
  • Ubuntu
  • Facebook
  • Twitter
  • Email
Privacy Policy Proudly powered by WordPress