Skip to main content

Posts

Showing posts with the label search file grep ubuntu linux

Search File with specific content in Ubuntu

The following command can be used to search any files that is under /home/myFolder and which has the content 'my search string'. The man page for the given command can be browsed for more detail information. grep -i -r -n 'my search string' /home/myFolder Where: -i=ignore case, -r=recursive, -n= give line number