mardi 31 mai 2011

locate vs whereis vs find

whereis: will search only particular paths to find binaries and or manpages. The manpages tells you where whereis looks.( work for opensuse)

locate: locate uses a database created by an updatedb to efficiently locate files. Works great, assuming your database is updated often enough to be reasonable upto date. Most boxes using locate have the updatedb occuring in cron.(work for ubuntu and fedora)

ces 2 snt utilisé pr trouvé les chemins d emplacmnt des logiciel ou package

find: find is perhaps one of the most powerful commands there is. For just locating a file/program of a particular name, it'll definitely be slower than locate or whereis becuase it will search each and every path recursively from it's start point. But for instance tell me how to use locate or where is to things like the following:

Aucun commentaire:

Enregistrer un commentaire

Nombre total de pages vues