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 Posts
Re: Locate command2010-12-27T16:28:21ZThis is the accepted answer. This is the accepted answer.Ok, 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
Re: Locate command2010-12-30T16:50:30ZThis is the accepted answer. This is the accepted answer.
- enidvx 2700020675
nagger 100000MRSJ342 Posts
Find and grep works for me2011-01-03T12:18:08ZThis is the accepted answer. This is the accepted answer.You 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
XR7N_Kai_Hambrecht 270005XR7N1 Post
Re: Locate command2013-05-17T15:03:58ZThis is the accepted answer. This is the accepted answer.
- garethr 060001EJD7
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 :-(