Linux – Find files with a text

Because of our being forgetful in nature, we often forget the files that we created. You can be happy only if we are still the way to the folder or directory where the missing files are saved, we remember too. If this is the case, there would never be a big deal. However, this is trully a big problem and even painful if not even remember where we saved the missing files in our computer. "Simple," I hear you … "find." Yes, we can find. But wait, you knowthe name of the file?

Forgot your password file and the file names are more common among us. I will never believe that someone out there has a photographic memory and has never experienced missing some of the files that you created earlier. Of course, we all lived through this terrible experience, especially if the file is missing, so precious to us.

In Windows, you can at this problem by simply using the search function to find or to address in the Start menu. Can you remember some of the elements orRecords in the file name? Use "find files with names" and unleash the power of the wildcard (*). For example, if you remember only the word "statistics" in the name of the file, then search for "* * Statistics and look for files with the word" statistics "in the name of the file. "I can not even a word in the file name", and again you say, dass Well, I do not think you can not even remember even a single word in the file contents. If you do not remember a word orRecords in the file name for you, then the file contents. In Windows or you can specify for files containing some texts that you have in your "find files containing text" field. Absolute addresses the problem of forgetting words in the file name.

However, if you are in Linux, it would be different and more complex than Windows especially if you are just a normal user depends on the GUI interface. Linux is running commands from aShell.

So if you are a regular user and that the files are still "missing" problem in Linux, do not worry, I'll show you the most common methods to solve this problem:

Find the file containing a string

grep-LIR "text to find" *

The option-l gives only the names of files that occurs when the text (instead of each line of text), the-i option ignores the case, and the-r descends into subdirectories.

Find Filescontaining the search terms on Ubuntu

To download files with keywords, is a powerful command called grep linux, which you can use to find rows in a file or list of files.

grep-in 'of the text to search' *

Lists files with text

It is used to search a directory recursively for files with a string-file names and line number. That's it for regular files a.

grep – with-filename – line-number`find-type f`

See Also : sanydslr.blogyai reviwedigitalcamera Fireplace Mantels Grooming

Tags: , , ,

Leave a Reply