Pinned topic Locate command
Can I use the "locate" command on AIX 5.3 like on Linux.
If yes what packages should I install and where can I find them.
enidvx 27000206758 PostsACCEPTED ANSWER
Re: Locate command2010-12-27T16:28:21Z in response to enidvxOk, I found that I can user either this: http://ftp.gnu.org/pub/gnu/findutils/ or this: http://gnome.bullfreeware.com/aixtoolbox/RPMS/ppc/findutils/
From the official site:
The tools supplied with this package are:
find - search for files in a directory hierarchy
locate - list files in databases that match a pattern
updatedb - update a file name database
xargs - build and execute command lines from standard input
garethr 060001EJD712 Posts
XR7N_Kai_Hambrecht 270005XR7N1 PostACCEPTED ANSWER
Re: Locate command2013-05-17T15:03:58Z in response to garethr
The findutils-4.1 package on the official AIX Toolbox for Linux has a buggy "find" command treating JFS(2) filesystems as NFS. So if you try to exclude NFS mount (e.g. " -not -fstype nfs") you would also exclude any JFS(2) filesystems :-(
nagger 100000MRSJ342 PostsACCEPTED ANSWER
Find and grep works for me2011-01-03T12:18:08Z in response to enidvxYou could get much the same effect with "find" and save the output to a file and then grep the output file.
It boils down to how often you forget where your files are :-)
I guess if your system has millions of rapidly created and deleted files it could be more efficient to automate.
For say a database with a few large files its probably boarder line, ta Nigel Griffiths