How do I find all files containing specific text on Linux

  • Posted on: 4 May 2018
  • By: jmu

This command will help us find all files which contain specific text on Linux:

grep -rnl "/var/path/samplefolder" -e "sampletext"

If you would like to know what that line looks like and get the line number, use the following command:

grep -rnw "/var/path/samplefolder" -e "sampletext"

-r is recursive

-n is line number

-l (lowercase L) returns the file name which contains the text you need 

-w gives the line which contains the whole matching word

 

Tags: 

How to install cups printer server on ubuntu - remote server

  • Posted on: 29 January 2018
  • By: jmu

This blog is about how to install Common UNIX Printing System (CUPS) on AWS remote server Ubuntu 14.04. At the end of this blog, I will point out some solutions about how to solve ERR_CONNECTION_TIMED_OUT & "bad request" error. 

Installation

sudo apt update
sudo apt install cups

 

Tags: 

Cursor cannot focus on the input field on iPhone (Fixed)

  • Posted on: 1 December 2017
  • By: jmu

Recently, we tried to build a form on a pop-up layer. But when we tested on the real phone, we found that the cursor cannot be focused inside of the input field on iPhone 6 (that's the only iPhone version we have currently). We were using some CSS code to fix this bug.

iPhone safari is not very stable once you use "position: fixed" and "input" at the same time.

Pages