Sep 232012
 

In a former article I’ve wrote about the command locate, an useful command to find quickly a file in your computer.
An alternative to locate is the command find : GNU find searches the directory tree rooted at each given file name by evaluating the given expression from left to right, according to the rules of precedence, until the outcome is known (the left hand side is false for and operations, true for or), at which point find use the defined action and moves on to the next file name.

find can use many options to compose an expression and as standard action it print in the standard output the file name that match the expression.

Continue reading »

flattr this!

Jul 122012
 

I just realized that I’ve never written anything about one of my favorite commands on the Linux shell: locate.
This command take as input the name (or part of it) and instantly it gives you all the locations where that file is located, an alternative to this could be to use the command find, but there is an huge difference in the time that takes find to search large file systems in comparison to a locate, this difference is given from the fact that locate uses his own database where it stores all the file names, while find scan the directory and looks for the file name you have given as input.
Continue reading »

flattr this!