Topic
  • 4 replies
  • Latest Post - ‏2013-05-17T15:03:58Z by XR7N_Kai_Hambrecht
enidvx
enidvx
8 Posts

Pinned topic Locate command

‏2010-12-27T08:57:07Z |
Hello to all,

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.

Thanks,
Enid
Updated on 2011-01-03T12:18:08Z at 2011-01-03T12:18:08Z by nagger
  • enidvx
    enidvx
    8 Posts

    Re: Locate command

    ‏2010-12-27T16:28:21Z  
    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

    Regards,
    Enid
  • garethr
    garethr
    12 Posts

    Re: Locate command

    ‏2010-12-30T16:50:30Z  
    • enidvx
    • ‏2010-12-27T16:28:21Z
    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

    Regards,
    Enid
    Slightly off topic, but for many other freeware and GNU packages compiled for AIX by IBM, look here:

    http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/download.html
  • nagger
    nagger
    342 Posts

    Find and grep works for me

    ‏2011-01-03T12:18:08Z  
    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
    XR7N_Kai_Hambrecht
    1 Post

    Re: Locate command

    ‏2013-05-17T15:03:58Z  
    • garethr
    • ‏2010-12-30T16:50:30Z
    Slightly off topic, but for many other freeware and GNU packages compiled for AIX by IBM, look here:

    http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/download.html

    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 :-(

    I would recommend at least findutils-4.2 or findutils-4.4 from BullFreeware ( http://www.bullfreeware.com/toolbox.php ) or from Michael Perzl's excellent AIX Site ( http://www.perzl.org/aix/ )